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

Resolve compilation issues with new DPC++ 2025.0 compiler #1907

Merged
merged 8 commits into from
Jul 6, 2024

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 3, 2024

DPC++ 2025.0 compiler introduces a number of non-backward compatible changes. And these changes broke build for dpnp.

That PR adopts dpnp towards affected DPC++ 2025.0 changes:

  • CL/sycl.hpp is deprecated, and so use sycl/sycl.hpp
  • need to explicitly include header where needed, because it is not a part of SYCL headers by default
  • need to use multi_ptr instead of raw-pointers for SYCL math functions overloads

The applied code changes implemented in a favor to work with DPC++ 2024.2 as well.

The changes has to be ported to dev-milestone branch once the PR is merged. It's required to unblock the internal CI flow where DPC++ 2025.0 compiler is only available for now.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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?
  • If this PR is a work in progress, are you filing the PR as a draft?

@antonwolfy antonwolfy self-assigned this Jul 3, 2024
Copy link
Contributor

github-actions bot commented Jul 3, 2024

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

@antonwolfy antonwolfy marked this pull request as ready for review July 4, 2024 19:05
@antonwolfy antonwolfy merged commit e6cf9d7 into master Jul 6, 2024
38 of 44 checks passed
@antonwolfy antonwolfy deleted the resolve-build-errors branch July 6, 2024 19:46
github-actions bot added a commit that referenced this pull request Jul 6, 2024
* CL/sycl.hpp is deprecated, use sycl/sycl.hpp

* Explicitly include complex header

* Use explicit type casting in a function from sycl namespace

* Use proper sycl namespace

* Use multi_ptr instead of raw pointer in sycl::modf

* Applied pre-commit hook for clang-format e6cf9d7
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.

2 participants