]> granicus.if.org Git - clang/commit
[CUDA] Added rudimentary support for CUDA-9 and sm_70.
authorArtem Belevich <tra@google.com>
Thu, 7 Sep 2017 18:14:32 +0000 (18:14 +0000)
committerArtem Belevich <tra@google.com>
Thu, 7 Sep 2017 18:14:32 +0000 (18:14 +0000)
commit6d4cb407f117d080e04cf6b8ca200ee01c7b502f
treef1c5487cceedd6e0475d2fd7593fd5f05523fe35
parent82bebd88990fdf6c635b85522c366f1a3c535e24
[CUDA] Added rudimentary support for CUDA-9 and sm_70.

For now CUDA-9 is not included in the list of CUDA versions clang
searches for, so the path to CUDA-9 must be explicitly passed
via --cuda-path=.

On LLVM side NVPTX added sm_70 GPU type which bumps required
PTX version to 6.0, but otherwise is equivalent to sm_62 at the moment.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312734 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Cuda.h
lib/Basic/Cuda.cpp
lib/Basic/Targets/NVPTX.cpp
lib/Driver/ToolChains/Cuda.cpp
lib/Headers/__clang_cuda_runtime_wrapper.h
test/Driver/cuda-arch-translation.cu