LLVM accepts them since r233575.
Differential Revision: http://reviews.llvm.org/D20405
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270084
91177308-0d34-0410-b5e6-
96231b3b80d8
GK_SM30,
GK_SM35,
GK_SM37,
+ GK_SM50,
+ GK_SM52,
+ GK_SM53,
} GPU;
public:
case GK_SM37:
CUDAArchCode = "370";
break;
+ case GK_SM50:
+ CUDAArchCode = "500";
+ break;
+ case GK_SM52:
+ CUDAArchCode = "520";
+ break;
+ case GK_SM53:
+ CUDAArchCode = "530";
+ break;
default:
llvm_unreachable("Unhandled target CPU");
}
.Case("sm_30", GK_SM30)
.Case("sm_35", GK_SM35)
.Case("sm_37", GK_SM37)
+ .Case("sm_50", GK_SM50)
+ .Case("sm_52", GK_SM52)
+ .Case("sm_53", GK_SM53)
.Default(GK_NONE);
return GPU != GK_NONE;
} else if (GpuArch == "compute_35") {
CudaLibDeviceMap["sm_35"] = FilePath;
CudaLibDeviceMap["sm_37"] = FilePath;
+ } else if (GpuArch == "compute_50") {
+ CudaLibDeviceMap["sm_50"] = FilePath;
+ CudaLibDeviceMap["sm_52"] = FilePath;
+ CudaLibDeviceMap["sm_53"] = FilePath;
}
}
// RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_30 -O3 -S -o %t %s -emit-llvm
// RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_35 -O3 -S -o %t %s -emit-llvm
// RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_37 -O3 -S -o %t %s -emit-llvm
+// RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_50 -O3 -S -o %t %s -emit-llvm
+// RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_52 -O3 -S -o %t %s -emit-llvm
+// RUN: %clang_cc1 -triple nvptx-unknown-unknown -target-cpu sm_53 -O3 -S -o %t %s -emit-llvm
// Make sure clang accepts all supported architectures.