[PATCH] D53472: Add gfx904 and gfx906 to GPU Arch
Yaxun Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 19:07:45 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL344996: Add gfx904 and gfx906 to GPU Arch (authored by yaxunl, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D53472?vs=170311&id=170560#toc
Repository:
rL LLVM
https://reviews.llvm.org/D53472
Files:
cfe/trunk/include/clang/Basic/Cuda.h
cfe/trunk/lib/Basic/Cuda.cpp
cfe/trunk/lib/Basic/Targets/NVPTX.cpp
Index: cfe/trunk/lib/Basic/Targets/NVPTX.cpp
===================================================================
--- cfe/trunk/lib/Basic/Targets/NVPTX.cpp
+++ cfe/trunk/lib/Basic/Targets/NVPTX.cpp
@@ -188,6 +188,8 @@
case CudaArch::GFX810:
case CudaArch::GFX900:
case CudaArch::GFX902:
+ case CudaArch::GFX904:
+ case CudaArch::GFX906:
case CudaArch::LAST:
break;
case CudaArch::UNKNOWN:
Index: cfe/trunk/lib/Basic/Cuda.cpp
===================================================================
--- cfe/trunk/lib/Basic/Cuda.cpp
+++ cfe/trunk/lib/Basic/Cuda.cpp
@@ -90,6 +90,10 @@
return "gfx900";
case CudaArch::GFX902: // TBA
return "gfx902";
+ case CudaArch::GFX904: // TBA
+ return "gfx904";
+ case CudaArch::GFX906: // TBA
+ return "gfx906";
}
llvm_unreachable("invalid enum");
}
@@ -124,6 +128,8 @@
.Case("gfx810", CudaArch::GFX810)
.Case("gfx900", CudaArch::GFX900)
.Case("gfx902", CudaArch::GFX902)
+ .Case("gfx904", CudaArch::GFX904)
+ .Case("gfx906", CudaArch::GFX906)
.Default(CudaArch::UNKNOWN);
}
@@ -233,6 +239,8 @@
case CudaArch::GFX810:
case CudaArch::GFX900:
case CudaArch::GFX902:
+ case CudaArch::GFX904:
+ case CudaArch::GFX906:
return CudaVirtualArch::COMPUTE_AMDGCN;
}
llvm_unreachable("invalid enum");
@@ -277,6 +285,8 @@
case CudaArch::GFX810:
case CudaArch::GFX900:
case CudaArch::GFX902:
+ case CudaArch::GFX904:
+ case CudaArch::GFX906:
return CudaVersion::CUDA_70;
}
llvm_unreachable("invalid enum");
Index: cfe/trunk/include/clang/Basic/Cuda.h
===================================================================
--- cfe/trunk/include/clang/Basic/Cuda.h
+++ cfe/trunk/include/clang/Basic/Cuda.h
@@ -62,6 +62,8 @@
GFX810,
GFX900,
GFX902,
+ GFX904,
+ GFX906,
LAST,
};
const char *CudaArchToString(CudaArch A);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53472.170560.patch
Type: text/x-patch
Size: 1915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181023/179ad070/attachment.bin>
More information about the llvm-commits
mailing list