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] Move driver related __CUDA_ARCH__ test to Driver folder from Preprocessor (#15521)
This PR moves the driver invocation test that checks `__CUDA_ARCH__`
does not get defined and ensures that it doesn't require the
`libspirv-nvptx64-nvidia-cuda` bitcode files by passing
`-fno-sycl-libspirv` to the `%clangxx` command.
Link to the comment in related PR that reported this issue:
#15441 (comment)
Additionally, an extra test is added to check that the
`-fcuda-is-device` option is not supplied in the CC1 invocation
targeting `nvptx64-nvidia-cuda`, which enables
`LangOptions.CudaIsDevice` and was the cause of defining the
`__CUDA_ARCH__` macro.
0 commit comments