You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][Driver] Fix regression that enabled Cuda-mode in cc1 and defined __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.
0 commit comments