MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / create_kernel

Method create_kernel

encoder/basisu_opencl.cpp:276–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 }
275
276 cl_kernel create_kernel(const char* pName)
277 {
278 if (!m_program)
279 return nullptr;
280
281 cl_serializer serializer(this);
282
283 cl_int ret;
284 cl_kernel kernel = clCreateKernel(m_program, pName, &ret);
285 if (ret != CL_SUCCESS)
286 {
287 ocl_error_printf("ocl::create_kernel: clCreateKernel() failed!\n");
288 return nullptr;
289 }
290
291 return kernel;
292 }
293
294 bool destroy_kernel(cl_kernel k)
295 {

Callers 1

opencl_create_contextFunction · 0.80

Calls 1

ocl_error_printfFunction · 0.85

Tested by

no test coverage detected