From db900e389acee68063fdc02292f5c48eafed5ff0 Mon Sep 17 00:00:00 2001 From: Gheorghe-Teodor Bercea Date: Fri, 3 May 2019 17:59:18 +0000 Subject: [PATCH] [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 llvm-svn: 359910 --- clang/lib/Driver/ToolChains/Cuda.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/Driver/ToolChains/Cuda.cpp b/clang/lib/Driver/ToolChains/Cuda.cpp index 65895e0..96f8c51 100644 --- a/clang/lib/Driver/ToolChains/Cuda.cpp +++ b/clang/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; -- 2.7.4