Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information