Closed
Description
While trying to compile my application with different nightlies at some point the compilation started to fail.
I found out that the reason is that __CUDA_ARCH__
is defined, while it wasn't before and I was wondering whether this is wanted or not.
How to reproduce:
clang++ -fsycl -std=c++17 dummy.cpp -dM -E -fsycl-targets=nvptx64-nvidia-cuda -fno-bundle-offload-arch --cuda-path=/usr/local/cuda -Wno-unknown-cuda-version -Wno-linker-warnings | grep CUDA_ARCH
dummy.cpp
is just:
#include <CL/sycl.hpp>
int main(){
return 0;
}
- until the
sycl-nightly/20221128
(clang version 16.0.0 (https://github.com/intel/llvm 85f2b97)) this command gives no output - since the
sycl-nightly/20221129
(clang version 16.0.0 (https://github.com/intel/llvm 142d9f5)) the output is:
#define __CUDA_ARCH__ 500
The commit that led to this change is this.
- OS: Linux
- CUDA version: 11.7