]> granicus.if.org Git - clang/commit
[CUDA] Check that our CUDA install supports the requested architectures.
authorJustin Lebar <jlebar@google.com>
Thu, 7 Jul 2016 18:17:52 +0000 (18:17 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 7 Jul 2016 18:17:52 +0000 (18:17 +0000)
commit29ff255b9e0a9cbc2cb4ae8d9d52845ce3d80cc5
treeca2e614613ca6feb173ec6794e5a38dd8ed5d1d0
parent834d27d45e7e5366d7edcd8fdee8fb7f9be8d4fe
[CUDA] Check that our CUDA install supports the requested architectures.

Summary:
Raise an error if you're using a CUDA installation that's too old for
the requested architectures.  In practice, this means that you need a
CUDA 8 install to compile for sm_6*.

Reviewers: tra

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D21869

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274781 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Driver/Options.td
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
lib/Driver/Tools.cpp
test/Driver/Inputs/CUDA_80/usr/local/cuda/bin/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_80/usr/local/cuda/include/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_80/usr/local/cuda/lib/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_80/usr/local/cuda/lib64/.keep [new file with mode: 0644]
test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_20.10.bc [new file with mode: 0644]
test/Driver/Inputs/CUDA_80/usr/local/cuda/nvvm/libdevice/libdevice.compute_35.10.bc [new file with mode: 0644]
test/Driver/Inputs/CUDA_80/usr/local/cuda/version.txt [new file with mode: 0644]
test/Driver/cuda-version-check.cu [new file with mode: 0644]