[CUDA] Print an error if you try to compile with < sm_30 on CUDA 9.
authorJustin Lebar <jlebar@google.com>
Wed, 25 Oct 2017 21:32:06 +0000 (21:32 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 25 Oct 2017 21:32:06 +0000 (21:32 +0000)
commitae2ecba319e91dbefe5096943ca96afe4d7572a7
tree49e6a8060b8dbe1749123b9d086d7a604f9a9615
parent516d04abee63e7db72f97c5c8c269b7928245e07
[CUDA] Print an error if you try to compile with < sm_30 on CUDA 9.

Summary:
CUDA 9's minimum sm is sm_30.

Ideally we should also make sm_30 the default when compiling with CUDA
9, but that seems harder than it should be.

Subscribers: sanjoy

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316611 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Basic/Cuda.h
include/clang/Basic/DiagnosticDriverKinds.td
lib/Basic/Cuda.cpp
lib/Driver/ToolChains/Cuda.cpp
lib/Driver/ToolChains/Cuda.h
test/Driver/Inputs/CUDA_90/usr/local/cuda/bin/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_90/usr/local/cuda/include/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_90/usr/local/cuda/lib/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_90/usr/local/cuda/lib64/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_90/usr/local/cuda/nvvm/libdevice/libdevice.10.bc [new file with mode: 0644]
test/Driver/Inputs/CUDA_90/usr/local/cuda/version.txt [new file with mode: 0644]
test/Driver/cuda-bad-arch.cu