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

oneAPI 2025 / SYCL2020 Compatibility, main branch (2024.12.03.) #793

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

krasznaa
Copy link
Member

@krasznaa krasznaa commented Dec 3, 2024

Continuing to peel off mergeable parts from #773.

These updates make it possible to build the project using oneAPI 2025.0.0.

  • Had to switch to a custom version of Acts, since as described in fix: oneAPI 2025 Fixes, main branch (2024.12.04.) acts#3938, Acts v38.0.0 is not appropriate for oneAPI 2025 after all. 😦
    • @flg, you've been talking about building the project with oneAPI 2025. But I don't know how you managed, with the Acts problems present. 😕
  • Removed sycl_language_example.sycl instead of fixing it. Since it was not serving any purpose anyway.
  • Made a bunch of <CL/sycl.hpp> -> <sycl/sycl.hpp> and cl::sycl -> ::sycl changes in the code.
  • Updated the CI to use oneAPI 2025.0.0, and in general the latest Docker images that we currently have available.

@krasznaa krasznaa added cicd Changes related to the CI system build This relates to the build system sycl Changes related to SYCL labels Dec 3, 2024
Comment on lines +87 to +92
- name: Install dependencies
run: |
apt install -y zstd
curl --retry 5 --retry-delay 10 --output deps.tar.zst https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.v6.tar.zst
tar -xf deps.tar.zst -C /usr/local --strip-components=1
rm deps.tar.zst
Copy link
Member Author

Choose a reason for hiding this comment

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

@paulgessinger, I decided to download the tar file like this. I didn't quite understand why Acts is doing this in a much more complicated way... 🤔

@krasznaa krasznaa force-pushed the SYCL2020-main-20241203 branch from 20c62ab to c55cb2c Compare December 3, 2024 13:39
@flg
Copy link
Contributor

flg commented Dec 3, 2024

Here are the problems I had compiling traccc with oneAPI recent snapshot (I used 2024/11/24).

In acts: GlobalChiSquareFitter.hpp
4 lines required the addition of "<>" on template calls like this one:

auto propagationResult = m_propagator.template propagate<>(propagatorState);

IIUC this code has changed (not a template anymore) but traccc refer to an older version that still uses it.

In detray: bound_track_parameters.hpp
math::abs was changed by math::fabs
This has been changed in acts-project/detray#889

That's all I can remember.

stephenswat added a commit to acts-project/machines that referenced this pull request Dec 3, 2024
LLVM 19 adds the new (and very conveniently named)
`-Wmissing-template-arg-list-after-template-kw` warning flag which fires
a lot on the existing ACTS code. The new version of OneAPI is based on
this version of LLVM, which is causing us a bit of grief in e.g.
acts-project/traccc#793. In order to resolve
this issue I want to add an LLVM 19 build to ACTS.
stephenswat added a commit to acts-project/machines that referenced this pull request Dec 3, 2024
LLVM 19 adds the new (and very conveniently named)
`-Wmissing-template-arg-list-after-template-kw` warning flag which fires
a lot on the existing ACTS code. The new version of OneAPI is based on
this version of LLVM, which is causing us a bit of grief in e.g.
acts-project/traccc#793. In order to resolve
this issue I want to add an LLVM 19 build to ACTS.
stephenswat added a commit to acts-project/machines that referenced this pull request Dec 3, 2024
LLVM 19 adds the new (and very conveniently named)
`-Wmissing-template-arg-list-after-template-kw` warning flag which fires
a lot on the existing ACTS code. The new version of OneAPI is based on
this version of LLVM, which is causing us a bit of grief in e.g.
acts-project/traccc#793. In order to resolve
this issue I want to add an LLVM 19 build to ACTS.
Copy link
Contributor

@beomki-yeo beomki-yeo left a comment

Choose a reason for hiding this comment

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

Looks good to me

@krasznaa krasznaa force-pushed the SYCL2020-main-20241203 branch from c55cb2c to cbfbd81 Compare December 4, 2024 12:37
@krasznaa krasznaa enabled auto-merge (squash) December 4, 2024 12:39
@krasznaa krasznaa force-pushed the SYCL2020-main-20241203 branch from cbfbd81 to 8bda176 Compare December 4, 2024 13:47
Copy link

sonarqubecloud bot commented Dec 4, 2024

@krasznaa krasznaa merged commit 0625730 into acts-project:main Dec 4, 2024
21 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build This relates to the build system cicd Changes related to the CI system sycl Changes related to SYCL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants