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

Method setDefault

include/CL/opencl.hpp:2412–2417  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

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 *

Callers

nothing calls this directly

Calls 1

errHandlerFunction · 0.85

Tested by

no test coverage detected