OSDN Git Service

[OpenMP][NVPTX] Fixed a compilation error in deviceRTLs caused by unsupported feature...
authorShilei Tian <tianshilei1992@gmail.com>
Tue, 23 Feb 2021 18:20:13 +0000 (13:20 -0500)
committerTom Stellard <tstellar@redhat.com>
Wed, 3 Mar 2021 04:00:48 +0000 (20:00 -0800)
commitc637d4d136fd476d4a7418f5ecb76b80bcb6f8fc
tree1432ad98b2a015b7f73530ee01754166450a255a
parent98f06b16a313ece593f5711778d7da9037f3a2ef
[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 f6c2984a090e78947f75e096d43b476bf2ae73eb)
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt