MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / OpenCLKernel

Method OpenCLKernel

core/src/core/opencl_kernel.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63// --------------------------------------------------------------------------------------------------------------------
64
65OpenCLKernel::OpenCLKernel(const OpenCLDevice& openCL,
66 const OpenCLProgram& program,
67 const char* name)
68{
69 auto status = CL_SUCCESS;
70 mKernel = clCreateKernel(program.program(), name, &status);
71 if (status != CL_SUCCESS)
72 {
73 gLog().message(MessageSeverity::Error, "Unable to create OpenCL kernel %s. [%d]", name, status);
74 throw Exception(Status::Initialization);
75 }
76}
77
78OpenCLKernel::~OpenCLKernel()
79{

Callers

nothing calls this directly

Calls 3

ExceptionClass · 0.85
programMethod · 0.80
messageMethod · 0.80

Tested by

no test coverage detected