summaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains/Cuda.cpp
diff options
context:
space:
mode:
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2019-05-03 17:59:18 +0000
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2019-05-03 17:59:18 +0000
commit964c2356512fb31b502b5d200a9f2716c93a3805 (patch)
tree1780eec7b242278151648fe444e1ddaaf135354d /lib/Driver/ToolChains/Cuda.cpp
parent3814a37959fc1491f75e62e6912aa5386630fbb0 (diff)
downloadclang-964c2356512fb31b502b5d200a9f2716c93a3805.tar.gz
[CUDA][Clang][Bugfix] Add missing CUDA 9.2 case
Summary: The bug was reported on the OpenMP-dev list: .../obj-release/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35: error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64 __MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32, This problem occurs when trying to compile a .cu file that requires a newer ptx version (>ptx60 in this case) than ptx42. Reviewers: tra, ABataev, caomhin Reviewed By: tra Subscribers: jdoerfert, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61474 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/Cuda.cpp')
-rw-r--r--lib/Driver/ToolChains/Cuda.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains/Cuda.cpp b/lib/Driver/ToolChains/Cuda.cpp
index 65895e0e8a..96f8c513bb 100644
--- a/lib/Driver/ToolChains/Cuda.cpp
+++ b/lib/Driver/ToolChains/Cuda.cpp
@@ -656,6 +656,9 @@ void CudaToolChain::addClangTargetOptions(
case CudaVersion::CUDA_100:
PtxFeature = "+ptx63";
break;
+ case CudaVersion::CUDA_92:
+ PtxFeature = "+ptx61";
+ break;
case CudaVersion::CUDA_91:
PtxFeature = "+ptx61";
break;