| 127 | } |
| 128 | |
| 129 | BinaryLookup::BinaryLookup(cl_context ctxt, cl_device_id device, const std::string & kernel_name) |
| 130 | : m_context(ctxt), m_device(device), m_program(NULL), m_binary(0), m_signature(0), m_cache_enabled(cache_enabled) |
| 131 | { |
| 132 | // initialize the entry name |
| 133 | this->m_cache_entry_name = kernel_name; |
| 134 | |
| 135 | if (this->m_cache_enabled) |
| 136 | { |
| 137 | // retrieve device informations to compute the path of the cache |
| 138 | cl_int err = this->retrieveDeviceAndDriverInfo(); |
| 139 | |
| 140 | if (err != CL_SUCCESS) |
| 141 | { |
| 142 | cache_enabled = false; |
| 143 | this->m_cache_enabled = false; |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | BinaryLookup::~BinaryLookup() |
| 149 | { |
nothing calls this directly
no test coverage detected