Skip to content

[Usability] put the requested device selector string in the exception message #891

Closed

Description

@ogrisel

At the moment, when a third party library forges an invalid device selector string from some application context (e.g. an environment variable), the user will face the following exception:

  File "dpctl/_sycl_device.pyx", line 293, in dpctl._sycl_device.SyclDevice.__cinit__
dpctl._sycl_device.SyclDeviceCreationError: Could not create a SyclDevice with the selector string

In order to make it easier to find the cause of the problem it would be nice to recall the requested selector string in the error message itself.

Activity

  1. added a commit that references this issue on Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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