| 80 | } |
| 81 | |
| 82 | void 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 | |
| 96 | FFTBinaryLookup::CacheEntry::CacheEntry(const std::string & filename) |
| 97 | : m_filename(filename), m_successful_creation(false) |