[XLA:GPU][oneAPI] Add oneAPI BUILD template and update redist versions for 2026.0#271
[XLA:GPU][oneAPI] Add oneAPI BUILD template and update redist versions for 2026.0#271neudinger wants to merge 3 commits into
Conversation
|
@ybaturina this is an interesting one that you will likely need to reason about at some point. oneAPI 2026 changed the way they redist which is now via an installer with license agreement required... Is there any plan to support up to date oneAPI ? |
|
Hi, |
I will consult with Intel about it. |
|
Hi @neudinger thank you for the PR
Avoid adding or changing the following entries in XLA’s .bazelrc: common:sycl_hermetic --repo_env=ONEAPI_VERSION=2026.0 For local testing or CI overrides, pass the values directly in the Bazel command instead. For example: bazel build |
Hi @mraunak thanks you for your comment. I updated the pr to fit your requirement. |
|
Hi @neudinger, thank you for the changes. Just one minor request for now: For this line: https://github.com/neudinger/rules_ml_toolchain/blob/oneapi-2026/gpu/sycl/dist_repo.bzl#L53 Let’s revert it to 2025.1, since we are still using 2025.1 as the default version. For users who want to run with 2026.0, we can ask them to pass the following flags explicitly: --config=sycl_hermetic We are aware of the following warning/error with 2026.0: error: unknown warning option '-Wno-implicit-float-size-conversion' [-Werror,-Wunknown-warning-option] We can remove the workaround once we make 2026.0 the default. Please rebase your branch on the latest main, point XLA to this toolchain branch, and run the tests inside Docker using the following script to ensure everything is working correctly: |
Add :
@oneapi; oneCCL is expected to be built separately for GPU. See [XLA:GPU][oneAPI] Add support for oneCCL bazel build openxla/xla#42595.Context:
To update ZML to fully support the latest intel GPU and the lattest oneAPI toolkit, we need to update the XLA project with oneAPI 2026 therefore XLA project need rules_ml_toolchain with oneAPI 2026.
Redistributable source:
For oneAPI 2026.0 this PR uses:
https://d3q76yfpnzmnjx.cloudfront.net/intel-oneapi-base-toolkit-2026.0.0.tar.gz
Validation:
bazel build \ --config=sycl_hermetic \ --repo_env=ONEAPI_VERSION=2026.0 \ --repo_env=OS=ubuntu_24.10 \ @oneapi//:all @oneapi//:headers @oneapi//:libs @level_zero//:all @zero_loader//:allNotes:
@oneapi//:cclis intentionally no longer declared.@oneapi//:headersno longer exports oneCCL headers.