[PATCH] D47268: [CUDA] Fixed the list of GPUs supported by CUDA-9
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 23 09:31:53 PDT 2018
tra created this revision.
tra added reviewers: jlebar, klimek.
Herald added subscribers: bixia, sanjoy.
Removed sm_20 as it is not supported by CUDA-9.
Added sm_37.
https://reviews.llvm.org/D47268
Files:
clang/lib/Driver/ToolChains/Cuda.cpp
Index: clang/lib/Driver/ToolChains/Cuda.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Cuda.cpp
+++ clang/lib/Driver/ToolChains/Cuda.cpp
@@ -164,8 +164,8 @@
std::string FilePath = LibDevicePath + "/libdevice.10.bc";
if (FS.exists(FilePath)) {
for (const char *GpuArchName :
- {"sm_20", "sm_30", "sm_32", "sm_35", "sm_50", "sm_52", "sm_53",
- "sm_60", "sm_61", "sm_62", "sm_70", "sm_72"}) {
+ {"sm_30", "sm_32", "sm_35", "sm_37", "sm_50", "sm_52", "sm_53",
+ "sm_60", "sm_61", "sm_62", "sm_70", "sm_72"}) {
const CudaArch GpuArch = StringToCudaArch(GpuArchName);
if (Version >= MinVersionForCudaArch(GpuArch) &&
Version <= MaxVersionForCudaArch(GpuArch))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47268.148232.patch
Type: text/x-patch
Size: 826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180523/7b02a3ae/attachment.bin>
More information about the cfe-commits
mailing list