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

Method getDefault

include/CL/opencl.hpp:2394–2403  ·  view source on GitHub ↗

! \brief Returns the first device on the default context. * * \see Context::getDefault() */

Source from the content-addressed store, hash-verified

2392 * \see Context::getDefault()
2393 */
2394 static Device getDefault(
2395 cl_int *errResult = nullptr)
2396 {
2397 std::call_once(default_initialized_, makeDefault);
2398 detail::errHandler(default_error_);
2399 if (errResult != nullptr) {
2400 *errResult = default_error_;
2401 }
2402 return default_;
2403 }
2404
2405 /**
2406 * Modify the default device to be used by

Callers

nothing calls this directly

Calls 1

errHandlerFunction · 0.85

Tested by

no test coverage detected