forked from OSchip/llvm-project
[HIP] define __CUDA_ARCH_=1 for amdgcn targets
Differential Revision: https://reviews.llvm.org/D45277 llvm-svn: 329420
This commit is contained in:
parent
f20aff565d
commit
8391387f7b
|
@ -158,7 +158,7 @@ void defineCudaArchMacro(CudaArch GPU, clang::MacroBuilder &Builder) {
|
|||
case CudaArch::GFX810:
|
||||
case CudaArch::GFX900:
|
||||
case CudaArch::GFX902:
|
||||
return "320";
|
||||
return "1";
|
||||
case CudaArch::UNKNOWN:
|
||||
llvm_unreachable("unhandled Cuda/HIP Arch");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue