Skip to content

Commit c637d4d

Browse files
shiltiantstellar
authored andcommitted
[OpenMP][NVPTX] Fixed a compilation error in deviceRTLs caused by unsupported feature in release verion of LLVM
`ptx71` is not supported in release version of LLVM yet. As a result, the support of CUDA 11.2 and CUDA 11.1 caused a compilation error as mentioned in D97004. Since the support in D97004 is just a WA for releease, and we'll not use it in the near future, using `ptx70` for CUDA 11 is feasible. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D97195 (cherry picked from commit f6c2984)
1 parent 98f06b1 commit c637d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ add_custom_target(omptarget-nvptx-bc)
153153
# This map is from clang/lib/Driver/ToolChains/Cuda.cpp.
154154
# The last element is the default case.
155155
set(cuda_version_list 112 111 110 102 101 100 92 91 90 80)
156-
set(ptx_feature_list 71 71 70 65 64 63 61 61 60 42)
156+
set(ptx_feature_list 70 70 70 65 64 63 61 61 60 42)
157157
# The following two lines of ugly code is not needed when the minimal CMake
158158
# version requirement is 3.17+.
159159
list(LENGTH cuda_version_list num_version_supported)

0 commit comments

Comments
 (0)