[Libomptarget] Replace Nvidia arch lookup with 'nvptx-arch'
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 17 Jan 2023 14:55:55 +0000 (08:55 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 17 Jan 2023 18:38:34 +0000 (12:38 -0600)
commit83af411ca7c1572c79e4a515bf17a035837aae48
treeb73a95d279600f36efcc2db87cdb1ece714691b8
parent7ef075a6d7a2bccbeedb9b5a1689e8545d5753e9
[Libomptarget] Replace Nvidia arch lookup with 'nvptx-arch'

This method to look up the CUDA architecture is deprecated in newer
versions of CMake. We also have our own way to query this information
that we control now via the `nvptx-arch` program, which should always be
present in LLVM builds with clang going forward. This is currently only
used for testing so I think we should be okay with the dependency.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D141933
openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
openmp/libomptarget/test/lit.cfg