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

Function sync

src/backend/oneapi/platform.cpp:414–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void sync(int device) {
415 int currDevice = getActiveDeviceId();
416 setDevice(device);
417 getQueue().wait();
418 setDevice(currDevice);
419}
420
421void addDeviceContext(sycl::device& dev, sycl::context& ctx, sycl::queue& que) {
422 DeviceManager& devMngr = DeviceManager::getInstance();

Callers

nothing calls this directly

Calls 4

getActiveDeviceIdFunction · 0.70
setDeviceFunction · 0.70
getQueueFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected