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

Replace ImportError with logging.warning if dpctl version is not met#925

Merged
diptorupd merged 1 commit into
mainfrom
soften-dpctl-version-check
Feb 21, 2023
Merged

Replace ImportError with logging.warning if dpctl version is not met#925
diptorupd merged 1 commit into
mainfrom
soften-dpctl-version-check

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

If dpctl was built from source without .git folder present, dpctl.__version__ is 0+unknown and dpctl_version computation in numba_dpex/dpctl_support.py broke down.

Introduced function to safely infer dpctl_version, and modified config.py to issue soft logging.warning about unmet dpctl version instead of raising hard ImportError.

  • Have you provided a meaningful PR description?
  • 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?

@oleksandr-pavlyk
oleksandr-pavlyk force-pushed the soften-dpctl-version-check branch from 378e022 to c010afc Compare February 21, 2023 21:23
@diptorupd

Copy link
Copy Markdown
Contributor

Merge based on public CI.

@diptorupd
diptorupd merged commit 63b8796 into main Feb 21, 2023
@diptorupd
diptorupd deleted the soften-dpctl-version-check branch February 21, 2023 22:14
github-actions Bot added a commit that referenced this pull request Feb 21, 2023
Replace ImportError with logging.warning if dpctl version is not met 63b8796
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.

2 participants