]> granicus.if.org Git - clang/commitdiff
[CUDA] Fixed the list of GPUs supported by CUDA-9.
authorArtem Belevich <tra@google.com>
Wed, 23 May 2018 16:45:23 +0000 (16:45 +0000)
committerArtem Belevich <tra@google.com>
Wed, 23 May 2018 16:45:23 +0000 (16:45 +0000)
Differential Revision: https://reviews.llvm.org/D47268

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333098 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Cuda.cpp

index 5916ad033c22acf14c4e9b028dccf5b4cc6c5625..d17c4c39532ad46e586140a76a7b3676b9bd4ceb 100644 (file)
@@ -164,8 +164,8 @@ CudaInstallationDetector::CudaInstallationDetector(
       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))