MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / found

Method found

src/library/fft_binary_lookup.cpp:428–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428bool FFTBinaryLookup::found()
429{
430 // if we could not create the directory, it is useless to
431 if (! this->m_cache_enabled)
432 {
433 return false; // not found
434 }
435
436 this->finalizeVariant(); // serialize variant and cumpute checksum on it
437 // also compute the tree to search from the cache entry (this->m_cache_entry_name, cache path ??)
438
439 if (tryLoadCacheFile())
440 {
441 cl_int err = buildFromBinary(this->m_binary,
442 this->m_header.binary_size);
443
444 // return false if the buildFromBinary failed, true else
445 return err==CL_SUCCESS;
446 }
447
448 return false;
449}
450
451static cl_int getSingleBinaryFromProgram(cl_program program,
452 std::vector<unsigned char*> & binary)

Callers 1

compileKernelsMethod · 0.80

Calls 1

finalizeVariantMethod · 0.95

Tested by

no test coverage detected