MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / findModule

Function findModule

src/backend/common/kernel_cache.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55Module findModule(const int device, const size_t& key) {
56 shared_lock<shared_timed_mutex> readLock(getCacheMutex(device));
57 auto& cache = getCache(device);
58 auto iter = cache.find(key);
59 if (iter != cache.end()) { return iter->second; }
60 return Module{};
61}
62
63Kernel getKernel(const string& kernelName, span<const common::Source> sources,
64 span<const TemplateArg> targs, span<const string> options,

Callers 3

getKernelFunction · 0.85
getKernelFunction · 0.85
getKernelFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected