这是indexloc提供的服务,不要输入任何密码
Skip to content

PR #27904: [XLA:GPU][oneAPI] Enable Clang compiler as the host compiler #97333

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 1 commit into from
Jul 24, 2025

Conversation

copybara-service[bot]
Copy link

PR #27904: [XLA:GPU][oneAPI] Enable Clang compiler as the host compiler

Imported from GitHub PR openxla/xla#27904

This PR configures CLANG as the host compiler while using ICPX for device-side compilation. By default, GCC is selected as the host compiler, but enabling the --config=icpx_clang flag will switch the host compiler to CLANG.
Copybara import of the project:

--
9e4190e4c627e853ddd9dbcde936f733101c1211 by mraunak mayank.kumar.raunak@intel.com:

Create ci_build_xla.sh

Build with Clang

bdc183da860a31f1be2f6dd3858a8ac44a53f9d2 by mraunak mayank.kumar.raunak@intel.com:

Update configure.py

1a874cf69fd84d69b26ac4e37843887ac8291bb8 by mraunak mayank.kumar.raunak@intel.com:

Add Clang as host compiler for oneAPI

342b1d67645f6fedc9ad48ea699fe558e273530b by mraunak mayank.kumar.raunak@intel.com:

Update sycl_configure.bzl

2f38e0d154977ecac50bdb220060789a0f835c22 by mraunak mayank.kumar.raunak@intel.com:

Update BUILD.sycl.tpl

7df8e577fea5861b2b28cc18906b289b4e9ac5df by mraunak mayank.kumar.raunak@intel.com:

Update ci_build_xla.sh

bef3a5ca6faf1378636de287996a70ce8177cb95 by mraunak mayank.kumar.raunak@intel.com:

Update sycl_configure.bzl

a960ff7855f5dcefebd0913d7b7712e579028cac by mraunak mayank.kumar.raunak@intel.com:

Update tensorflow.bazelrc

2d60209a0333204c5abb907501abff4d0af21271 by mraunak mayank.kumar.raunak@intel.com:

Update ci_test_xla.sh

8a5db012f9f1e664711c3fbb90c7215f21effd2d by mraunak mayank.kumar.raunak@intel.com:

Address the comments

735f4591654ee377f808001959cd566b4b6a0544 by mraunak mayank.kumar.raunak@intel.com:

Address the comments

e7c412d19b25804c4fa4fb0b65329146c983a6e3 by mraunak mayank.kumar.raunak@intel.com:

Address the comment

b456c8f8dca013bb730a733b1f988646a0a744bb by mraunak mayank.kumar.raunak@intel.com:

Update tensorflow.bazelrc

cedc8586494f789e5ec92aef30e64e866a6b022d by mraunak mayank.kumar.raunak@intel.com:

Apply patch to PR

--
d2dc3846a7fdd55f35fc66f314ad56265e963c59 by mraunak mayank.kumar.raunak@intel.com:

fix the test failure

--
33a3ca34306b6047881f499aa76fc69b4f5003a6 by mraunak mayank.kumar.raunak@intel.com:

Resolve merge conflicts

329b71e7c72e1df001f9d104c25f44032739cc02 by mraunak mayank.kumar.raunak@intel.com:

Update sycl_configure.bzl

Merging this change closes #27904

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#27904 from Intel-tensorflow:mraunak/Hermetic_CLANG 329b71e7c72e1df001f9d104c25f44032739cc02

@copybara-service copybara-service bot force-pushed the exported_pr_785731495 branch from 52639e3 to 5b380c9 Compare July 24, 2025 18:27
Imported from GitHub PR openxla/xla#27904

This PR configures CLANG as the host compiler while using ICPX for device-side compilation. By default, GCC is selected as the host compiler, but enabling the --config=icpx_clang flag will switch the host compiler to CLANG.
Copybara import of the project:

--
9e4190e4c627e853ddd9dbcde936f733101c1211 by mraunak <mayank.kumar.raunak@intel.com>:

Create ci_build_xla.sh

Build with Clang
--
bdc183da860a31f1be2f6dd3858a8ac44a53f9d2 by mraunak <mayank.kumar.raunak@intel.com>:

Update configure.py
--
1a874cf69fd84d69b26ac4e37843887ac8291bb8 by mraunak <mayank.kumar.raunak@intel.com>:

Add Clang as host compiler for oneAPI
--
342b1d67645f6fedc9ad48ea699fe558e273530b by mraunak <mayank.kumar.raunak@intel.com>:

Update sycl_configure.bzl
--
2f38e0d154977ecac50bdb220060789a0f835c22 by mraunak <mayank.kumar.raunak@intel.com>:

Update BUILD.sycl.tpl
--
7df8e577fea5861b2b28cc18906b289b4e9ac5df by mraunak <mayank.kumar.raunak@intel.com>:

Update ci_build_xla.sh
--
bef3a5ca6faf1378636de287996a70ce8177cb95 by mraunak <mayank.kumar.raunak@intel.com>:

Update sycl_configure.bzl
--
a960ff7855f5dcefebd0913d7b7712e579028cac by mraunak <mayank.kumar.raunak@intel.com>:

Update tensorflow.bazelrc
--
2d60209a0333204c5abb907501abff4d0af21271 by mraunak <mayank.kumar.raunak@intel.com>:

Update ci_test_xla.sh
--
8a5db012f9f1e664711c3fbb90c7215f21effd2d by mraunak <mayank.kumar.raunak@intel.com>:

Address the comments
--
735f4591654ee377f808001959cd566b4b6a0544 by mraunak <mayank.kumar.raunak@intel.com>:

Address the comments
--
e7c412d19b25804c4fa4fb0b65329146c983a6e3 by mraunak <mayank.kumar.raunak@intel.com>:

Address the comment
--
b456c8f8dca013bb730a733b1f988646a0a744bb by mraunak <mayank.kumar.raunak@intel.com>:

Update tensorflow.bazelrc
--
cedc8586494f789e5ec92aef30e64e866a6b022d by mraunak <mayank.kumar.raunak@intel.com>:

Apply patch to PR

--
d2dc3846a7fdd55f35fc66f314ad56265e963c59 by mraunak <mayank.kumar.raunak@intel.com>:

fix the test failure

--
33a3ca34306b6047881f499aa76fc69b4f5003a6 by mraunak <mayank.kumar.raunak@intel.com>:

Resolve merge conflicts
--
329b71e7c72e1df001f9d104c25f44032739cc02 by mraunak <mayank.kumar.raunak@intel.com>:

Update sycl_configure.bzl

Merging this change closes #27904

PiperOrigin-RevId: 786786366
@copybara-service copybara-service bot force-pushed the exported_pr_785731495 branch from 5b380c9 to 71166cd Compare July 24, 2025 19:41
@copybara-service copybara-service bot merged commit 71166cd into master Jul 24, 2025
@copybara-service copybara-service bot deleted the exported_pr_785731495 branch July 24, 2025 19:41
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.

saved_model.load gives KeyError in 2.0.0 Same model loads fine in 1.13
1 participant