MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / BinaryLookup

Method BinaryLookup

src/library/blas/generic/binary_lookup.cc:129–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129BinaryLookup::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
148BinaryLookup::~BinaryLookup()
149{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected