You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO Handle possible need for recompiling cached kernels
186
186
throwException("OpenCL exception caught when trying to get kernel argument information: " + std::string(e.what()) + "(" + getCLErrorString(e.err()) + "). You might need to recompile your OpenCL code, delete the cache.");
187
187
}
188
+
m_initialized = true;
188
189
}
189
190
190
191
cl::Kernel Kernel::getHandle() const {
192
+
if(!m_initialized)
193
+
throwException("Kernel object has not been initialized. Did you forgot = getKernel()?");
throwException("Kernel object has not been initialized. Did you forgot = getKernel()?");
277
286
if(index >= getNumberOfArgs() || index < 0)
278
287
throwException("Kernel does not have an argument with index " + std::to_string(index) + ", number of arguments is: " + std::to_string(getNumberOfArgs()));
0 commit comments