Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dpctl version requirement to 0.14 and fix issue caused by API change #858

Merged
merged 2 commits into from
Jan 7, 2023

Conversation

diptorupd
Copy link
Contributor

  • Have you provided a meaningful PR description?

There are API changes in dpctl 0.14.1dev1 to accommodate changes in dpcpp 2023.0. Specifically, dpctl.SyclDevice no longer has the is_host property. The change impacts the check inside numba_dpex.config._dpctl_has_non_host_device that was throwing an uncaught AttributeError.

The PR fixes the issue by using only dpctl.select_default_device(). Also the minimum dpctl version required was bumped to 0.14.

  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?

@diptorupd diptorupd merged commit a541db5 into main Jan 7, 2023
@diptorupd diptorupd deleted the fix/dpctl_compatibility branch January 7, 2023 05:32
github-actions bot added a commit that referenced this pull request Jan 7, 2023
Bump dpctl version requirement to 0.14 and fix issue caused by API change a541db5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant