MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / get_kernel

Method get_kernel

src/runtime/ocl/ocl_code_object.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169result ocl_executable_object::get_kernel(std::string_view name, cl::Kernel& out) const {
170 if(!_build_status.is_success())
171 return _build_status;
172 auto it = _kernel_handles.find(name);
173 if(it == _kernel_handles.end())
174 return make_error(__acpp_here(),
175 error_info{"ocl_executable_object: Unknown kernel name"});
176 out = it->second;
177 return make_success();
178}
179
180}
181}

Calls 5

make_errorFunction · 0.85
make_successFunction · 0.85
is_successMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected