PR #28257: [XLA:GPU] Update ONEAPI crosstool compiler wrapper #97149
+239
−20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR #28257: [XLA:GPU] Update ONEAPI crosstool compiler wrapper
Imported from GitHub PR openxla/xla#28257
This PR updates the Crosstool wrapper compiler template to:
Invoke the ICPX (oneAPI C++ Compiler) compiler for device-side code.
Use the host compiler (e.g., Clang or GCC) for host-side code.
Key Changes
Configures the wrapper to efficiently delegate between device and host compilers.
Adds necessary compilation and linking flags for both device-side and host-side builds to ensure proper integration with DPC++.
Copybara import of the project:
--
2de4c6f99752710284154bfc15932c712fdf4c06 by mraunak mayank.kumar.raunak@intel.com:
Update crosstool_wrapper_driver_sycl.tpl
e1f175a67d1ba8d9613ab2b9454041edd88f9f11 by mraunak mayank.kumar.raunak@intel.com:
Update sycl_configure.bzl
ae9cf8219a557851fb513f346234c7082f4d9d1a by mraunak mayank.kumar.raunak@intel.com:
Update sycl_cc_toolchain_config.bzl.tpl
7b013c39e94670446975157e2714bbc11b6e66c2 by mraunak mayank.kumar.raunak@intel.com:
Update BUILD.sycl.tpl
93e8a2a65dd80a22b668f3b600128d6b00fff94e by mraunak mayank.kumar.raunak@intel.com:
Create ar_driver.tpl
2da8b2a30f326a307dee93648fb92623e1cbb19f by mraunak mayank.kumar.raunak@intel.com:
Update sycl_configure.bzl
e30ee27286a8f011908fe4d72d7028d961e0e5a5 by mraunak mayank.kumar.raunak@intel.com:
Update sycl_configure.bzl
b702b8059f4bf7a99c41b24a7653ee819fc20ab0 by mraunak mayank.kumar.raunak@intel.com:
Update sycl_configure.bzl
af90e0b8b1d48f589284d8aabf5d2bf5a37fbdb4 by mraunak mayank.kumar.raunak@intel.com:
Rename ar_driver.tpl to ar_driver_sycl.tpl
a511d4a17af0e576d2854a023a0e2f00ef58a6b1 by mraunak mayank.kumar.raunak@intel.com:
Fix the linking error
11a49a03dcb8c5e0fcd481a02ef089e82e25f433 by mraunak mayank.kumar.raunak@intel.com:
Addressed the comment
abcc2dbae290e3b9e33ea070bdb141216a980b3a by mraunak mayank.kumar.raunak@intel.com:
Update crosstool_wrapper_driver_sycl.tpl
b18a666a7e1fe0d2e2b48e4419648326192e9f7a by mraunak mayank.kumar.raunak@intel.com:
Update sycl_cc_toolchain_config.bzl.tpl
b56289528dcc3b348b39caaa9f82d9f776901804 by mraunak mayank.kumar.raunak@intel.com:
Update ar_driver_sycl.tpl
93eb65be6249699795c5871d68cd0649141af4d4 by mraunak mayank.kumar.raunak@intel.com:
Addressed the comment
Merging this change closes #28257
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#28257 from Intel-tensorflow:mraunak/compiler/refactor 93eb65be6249699795c5871d68cd0649141af4d4