[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)
commit066494d8c1a10890e8b281edcc12c5c122208ba6
tree77b8fef35aedf8596eb9a4c7906371d218f76114
parent5ff01cdc59027ed3d298dd650786ab4d30b21d81
[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

llvm-svn: 316611
12 files changed:
clang/include/clang/Basic/Cuda.h
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Basic/Cuda.cpp
clang/lib/Driver/ToolChains/Cuda.cpp
clang/lib/Driver/ToolChains/Cuda.h
clang/test/Driver/Inputs/CUDA_90/usr/local/cuda/bin/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/CUDA_90/usr/local/cuda/include/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/CUDA_90/usr/local/cuda/lib/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/CUDA_90/usr/local/cuda/lib64/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/CUDA_90/usr/local/cuda/nvvm/libdevice/libdevice.10.bc [new file with mode: 0644]
clang/test/Driver/Inputs/CUDA_90/usr/local/cuda/version.txt [new file with mode: 0644]
clang/test/Driver/cuda-bad-arch.cu