Skip to content

dpctl.has_gpu_devices() returns False even when GPU devices are present  #601

Closed

Description

@oleksandr-pavlyk
In [1]: import dpctl

In [2]: dpctl.has_gpu_devices()
Out[2]: False

In [3]: dpctl.lsplatform()
Intel(R) OpenCL OpenCL 3.0 LINUX
Intel(R) OpenCL HD Graphics OpenCL 3.0
Intel(R) Level-Zero 1.1
SYCL host platform 1.2

In [4]: dpctl.get_devices()
Out[4]:
[<dpctl.SyclDevice [backend_type.opencl, device_type.cpu,  Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz] at 0x7f1dbd1619f0>,
 <dpctl.SyclDevice [backend_type.opencl, device_type.gpu,  Intel(R) UHD Graphics [0x9bca]] at 0x7f1dbcc201b0>,
 <dpctl.SyclDevice [backend_type.level_zero, device_type.gpu,  Intel(R) UHD Graphics [0x9bca]] at 0x7f1dbcc20e30>]

In [5]: dpctl.has_gpu_devices()
Out[5]: False

In [6]: dpctl.has_cpu_devices()
Out[6]: False

In [7]: dpctl.has_accelerator_devices()
Out[7]: False

Activity

  1. changed the title [-]`dpctl.get_gpu_devices` is not working[/-] [+]`dpctl.has_gpu_devices` is not working[/+] on Sep 28, 2021
  2. changed the title [-]`dpctl.has_gpu_devices` is not working[/-] [+]`dpctl.has_gpu_devices()` returns False even when GPU devices are present [/+] on Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions