* Modify the default device to be used by * subsequent operations. * Will only set the default if no default was previously created. * @return updated default device. * Should be compared to the passed value to ensure that it was updated. */
| 2410 | * Should be compared to the passed value to ensure that it was updated. |
| 2411 | */ |
| 2412 | static Device setDefault(const Device &default_device) |
| 2413 | { |
| 2414 | std::call_once(default_initialized_, makeDefaultProvided, std::cref(default_device)); |
| 2415 | detail::errHandler(default_error_); |
| 2416 | return default_; |
| 2417 | } |
| 2418 | |
| 2419 | /*! \brief Assignment operator from cl_device_id. |
| 2420 | * |
nothing calls this directly
no test coverage detected