-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][Driver] Fix regression that enabled Cuda-mode in cc1 and defin…
…ed __CUDA_ARCH__ (#15441) The `CudaToolChain` set `-fcuda-is-device` unconditionally which made `InitializePredefinedMacros` (called from `clang::InitializePreprocessor`) to define `__CUDA_ARCH__` (default-init to 1). As such, the driver assumed Cuda mode while in also SYCL mode, but we don't properly support Cuda device-code compatibility and we want to avoid having the `__CUDA_ARCH__` macro defined altogether for SYCL offload.
- Loading branch information
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters