Replies: 3 comments 2 replies
-
In SYCL there's no global state that would correspond to the "current device". You can obtain a device from a queue with |
Beta Was this translation helpful? Give feedback.
-
The Cuda function returns the device ID as an integer. Do you mean users need to search the devices for the device returned from "queue::get_device()" and then determine the ID of the device ? |
Beta Was this translation helpful? Give feedback.
-
Please see the codes:
|
Beta Was this translation helpful? Give feedback.
-
Is there a SYCL function equivalent to cudaGetDevice(device) ? Thanks.
The function returns which device is currently being used.
Parameters
device
Description
Returns in *device the current device for the calling host thread.
Beta Was this translation helpful? Give feedback.
All reactions