! \brief Returns the first device on the default context. * * \see Context::getDefault() */
| 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 |
nothing calls this directly
no test coverage detected