Skip to content

Install dpctl via pip manager in coverage and docs workflows #2383

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

Merged
merged 3 commits into from
Mar 25, 2025

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Mar 24, 2025

This PR resolves issue with coverage and docs GitHub workflows observing since 2025.1 release is published.

The reason of the proposed changes is that it isn't possible to install dpctl there as a conda package when the environment is created through installing of Intel OneAPI packages because the dpctl conda package has a runtime dependency on DPC++ RT one. Whereas the DPC++ RT package has been already installed by the apt command above and its version has been matched with the DPC++ compiler.
In case where we install the DPC++ compiler with the apt (including DPC++ RT) and install the DPC++ RT conda package while resolving dependencies, this can lead to a versioning error, i.e. compatibility issue as the DPC++ compiler only guarantees backwards compatibility, not forward compatibility (DPC++ RT may not run a binary built with a newer version of the DPC++ compiler).

Installing dpctl via the pip manager has no such limitation, as the package has no run dependency on the DPC++ RT pip package, so this is why the new step is proposed to be added to the workflows.

  • 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?

@antonwolfy antonwolfy self-assigned this Mar 24, 2025
@antonwolfy antonwolfy added the github_actions Pull requests that update GitHub Actions code label Mar 24, 2025
Copy link
Contributor

github-actions bot commented Mar 24, 2025

View rendered docs @ https://intelpython.github.io/dpnp/index.html

Copy link
Contributor

Array API standard conformance tests for dpnp=0.18.0dev0=py312he4f9c94_44 ran successfully.
Passed: 1005
Failed: 0
Skipped: 45

Copy link
Collaborator

@vtavana vtavana 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 @antonwolfy, for fixing it!

@antonwolfy antonwolfy merged commit 395c896 into master Mar 25, 2025
68 checks passed
@antonwolfy antonwolfy deleted the fix-coverage-docs-workflows branch March 25, 2025 06:26
github-actions bot added a commit that referenced this pull request Mar 25, 2025
This PR resolves issue with `coverage` and `docs` GitHub workflows
observing since 2025.1 release is published.

The reason of the proposed changes is that it isn't possible to install
dpctl there as a conda package when the environment is created through
installing of Intel OneAPI packages because the dpctl conda package has
a runtime dependency on DPC++ RT one. Whereas the DPC++ RT package has
been already installed by the apt command above and its version has been
matched with the DPC++ compiler.
In case where we install the DPC++ compiler with the apt (including
DPC++ RT) and install the DPC++ RT conda package while resolving
dependencies, this can lead to a versioning error, i.e. compatibility
issue as the DPC++ compiler only guarantees backwards compatibility, not
forward compatibility (DPC++ RT may not run a binary built with a newer
version of the DPC++ compiler).

Installing dpctl via the pip manager has no such limitation, as the
package has no run dependency on the DPC++ RT pip package, so this is
why the new step is proposed to be added to the workflows. 395c896
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants