Skip to content

dpctl should better query SYCL run-times for actually available backends.  #139

Closed
@oleksandr-pavlyk

Description

@oleksandr-pavlyk

On a machine without CUDA card, seeting SYCL_BE=PI_CUDA is equivalent to telling SYCL to only expose default host backend.

SYCL_BE=PI_CUDA python -c "import dpctl; dpctl.dump()" shows 4 platforms available, and yet attempting to set it throws errors whose handling is to be improved:

(idp) [16:48:01 linbox work]$ SYCL_BE=PI_CUDA python -c "import dpctl; dpctl.set_default_queue('opencl', 'cpu', 0)"
active queue vector is corrupted.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "dpctl/sycl_core.pyx", line 721, in dpctl._sycl_core._SyclRTManager.set_default_queue
AttributeError: 'dpctl._sycl_core._SyclRTManager' object has no attribute '_raise_queue_creation_error'

@diptorupd @PokhodenkoSA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions