Skip to content

Commit

Permalink
[OpenMP][NVPTX] Add the support for CUDA 11.2 and CUDA 11.1
Browse files Browse the repository at this point in the history
CUDA 11.2 and CUDA 11.1 are all available now.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D97004

(cherry picked from commit 89827fd)
  • Loading branch information
shiltian authored and tstellar committed Feb 20, 2021
1 parent a338d57 commit 2f74c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ add_custom_target(omptarget-nvptx-bc)

# This map is from clang/lib/Driver/ToolChains/Cuda.cpp.
# The last element is the default case.
set(cuda_version_list 110 102 101 100 92 91 90 80)
set(ptx_feature_list 70 65 64 63 61 61 60 42)
set(cuda_version_list 112 111 110 102 101 100 92 91 90 80)
set(ptx_feature_list 71 71 70 65 64 63 61 61 60 42)
# The following two lines of ugly code is not needed when the minimal CMake
# version requirement is 3.17+.
list(LENGTH cuda_version_list num_version_supported)
Expand Down

0 comments on commit 2f74c22

Please sign in to comment.