MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / sync

Function sync

src/backend/opencl/platform.cpp:523–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523void sync(int device) {
524 int currDevice = getActiveDeviceId();
525 setDevice(device);
526 getQueue().finish();
527 setDevice(currDevice);
528}
529
530void addDeviceContext(cl_device_id dev, cl_context ctx, cl_command_queue que) {
531 DeviceManager& devMngr = DeviceManager::getInstance();

Callers

nothing calls this directly

Calls 3

getActiveDeviceIdFunction · 0.70
setDeviceFunction · 0.70
getQueueFunction · 0.50

Tested by

no test coverage detected