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

Function clfftInitBinaryCache

src/library/fft_binary_lookup.cpp:82–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void clfftInitBinaryCache()
83{
84 const char * path = getenv("CLFFT_CACHE_PATH");
85 if (path)
86 {
87 cache_path = std::string(path) + sep();
88 cache_enabled = true;
89 }
90 else
91 {
92 cache_path = "";
93 }
94}
95
96FFTBinaryLookup::CacheEntry::CacheEntry(const std::string & filename)
97 : m_filename(filename), m_successful_creation(false)

Callers 1

clfftSetupFunction · 0.85

Calls 1

sepFunction · 0.85

Tested by

no test coverage detected