Skip to content

Fix logic managing dll search path and path when initializing dpctl #2130

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ndgrigorian
Copy link
Collaborator

This PR refactors some logic in dpctl managing the DLL search path, also adding the dpctl __init__.py directory to the PATH, matching the logic in dpnp, in an attempt to fix dpctl being imported from virtual environments failing to see devices or find SYCL dlls

  • 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?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

Copy link

github-actions bot commented Aug 5, 2025

Copy link

github-actions bot commented Aug 5, 2025

Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_93 ran successfully.
Passed: 1115
Failed: 6
Skipped: 119

@coveralls
Copy link
Collaborator

coveralls commented Aug 5, 2025

Coverage Status

coverage: 85.902% (+0.02%) from 85.878%
when pulling 2680eb8 on fix-dpctl-import-from-venv-windows
into 3381d14 on master.

@ndgrigorian ndgrigorian marked this pull request as ready for review August 5, 2025 21:22
antonwolfy
antonwolfy previously approved these changes Aug 5, 2025
Copy link
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ndgrigorian for resolving the issue

Copy link

github-actions bot commented Aug 5, 2025

Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_93 ran successfully.
Passed: 1115
Failed: 6
Skipped: 119

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.

3 participants