| 426 | } |
| 427 | |
| 428 | bool 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 | |
| 451 | static cl_int getSingleBinaryFromProgram(cl_program program, |
| 452 | std::vector<unsigned char*> & binary) |
no test coverage detected