[HIP] define __CUDA_ARCH_=1 for amdgcn targets

Differential Revision: https://reviews.llvm.org/D45277

llvm-svn: 329420
This commit is contained in:
Yaxun Liu 2018-04-06 16:43:42 +00:00
parent f20aff565d
commit 8391387f7b
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}