OSDN Git Service

[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)
commit4059d374ce981827223ab6b1dae7af4ec5f8e74a
treeec3b9a725776ae21210aad76c04d909f26419d62
parent013a4d7319bbf0225b75cccaa3ee1a4f5f8ec9f8
[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/llvm/trunk@312734 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTX.td
test/CodeGen/NVPTX/sm-version-70.ll [new file with mode: 0644]