Replies: 3 comments
|
Dpctl uses the dpcpp SYCL runtime, so the count of devices correlate to what the SYCL runtime exposes. For example, you can have a Nvidia GPU on your system, but it will not be counted as a device unless you specially build dpcpp and dpctl with Nvidia support (ref #1124). If you do not want to use dpctl, then you can use |
0 replies
|
Converting the issue to a discussion. |
0 replies
|
You can do $ python -m dpctl -s | wc -l
4or $ sycl-ls | wc -l
4 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a question about get device count of Intel GPUs.
By using dpctl, I can easily get count with
len(dpctl.get_devices("level_zero", "gpu"))However, using this API should import dpctl,
If I don't want to import dpctl, how can I get the device count?
Like Nvidia GPU detection: by check the driver list in folder
/proc/driver/nvidia/gpusThanks.
All reactions