Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

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

Merged
diptorupd merged 2 commits into
mainfrom
fix/dpctl_compatibility
Jan 7, 2023
Merged

Bump dpctl version requirement to 0.14 and fix issue caused by API change#858
diptorupd merged 2 commits into
mainfrom
fix/dpctl_compatibility

Conversation

@diptorupd

Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant