Author: gbercea Date: Fri May 3 10:59:18 2019 New Revision: 359910 URL: http://llvm.org/viewvc/llvm-project?rev=359910&view=rev Log: [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 Modified: cfe/trunk/lib/Driver/ToolChains/Cuda.cpp Modified: cfe/trunk/lib/Driver/ToolChains/Cuda.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Cuda.cpp?rev=359910&r1=359909&r2=359910&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/Cuda.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains/Cuda.cpp Fri May 3 10:59:18 2019 @@ -656,6 +656,9 @@ void CudaToolChain::addClangTargetOption case CudaVersion::CUDA_100: PtxFeature = "+ptx63"; break; + case CudaVersion::CUDA_92: + PtxFeature = "+ptx61"; + break; case CudaVersion::CUDA_91: PtxFeature = "+ptx61"; break; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits