MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / set_context

Method set_context

src/core/CL/CLCompileContext.cpp:231–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void CLCompileContext::set_context(cl::Context context)
232{
233 _context = std::move(context);
234 if (_context.get() != nullptr)
235 {
236 const auto cl_devices = _context.getInfo<CL_CONTEXT_DEVICES>();
237
238 if (!cl_devices.empty())
239 {
240 _device = CLDevice(cl_devices[0]);
241 }
242 }
243}
244
245std::string CLCompileContext::generate_build_options(const StringSet &build_options_set,
246 const std::string &kernel_path) const

Callers

nothing calls this directly

Calls 3

CLDeviceClass · 0.85
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected