[PATCH] D61474: [CUDA][Clang][Bugfix] Add missing CUDA 9.2 case
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 2 18:48:10 PDT 2019
gtbercea created this revision.
gtbercea added reviewers: tra, ABataev, caomhin.
Herald added subscribers: cfe-commits, jdoerfert.
Herald added a project: clang.
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.
Repository:
rC Clang
https://reviews.llvm.org/D61474
Files:
lib/Driver/ToolChains/Cuda.cpp
Index: lib/Driver/ToolChains/Cuda.cpp
===================================================================
--- lib/Driver/ToolChains/Cuda.cpp
+++ lib/Driver/ToolChains/Cuda.cpp
@@ -656,6 +656,9 @@
case CudaVersion::CUDA_100:
PtxFeature = "+ptx63";
break;
+ case CudaVersion::CUDA_92:
+ PtxFeature = "+ptx61";
+ break;
case CudaVersion::CUDA_91:
PtxFeature = "+ptx61";
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61474.197908.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190503/3c5b0c43/attachment-0001.bin>
More information about the cfe-commits
mailing list