aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2022-12-20 13:06:40 -0600
committerJoseph Huber <jhuber6@vols.utk.edu>2022-12-20 13:37:11 -0600
commitae20ff7526212598f4bbe193575560e435ab2707 (patch)
tree21cdba99818b0df3c5bb001092ed38be34b36dc4 /llvm/lib/Support/VirtualFileSystem.cpp
parent7f9dc7bf8535048a54ef1bfd50bd5541cfbba1c2 (diff)
downloadllvm-ae20ff7526212598f4bbe193575560e435ab2707.zip
llvm-ae20ff7526212598f4bbe193575560e435ab2707.tar.gz
llvm-ae20ff7526212598f4bbe193575560e435ab2707.tar.bz2
[libc] Add check for locally installed GPUs
We need to know which, if any, GPUs the user has on their system if we want to be able to test the `libc` source code for the GPU. This patch adds a basic check using the `amdgpu-arch` utility which is provided by `clang`. Checking for NVIDIA GPUs will be done later as this is a little problematic right now. CMake provides a method that we use for Clang but it will soon be deprecated, the replacement requires a newer CMake version that we will have in the LLVM 17 branch in the future. CUDA also provides `__nvcc_device_query` but it's very new so I'm not sure if we should rely on it. I may introduce a new tool to do it similar to `amdgpu-arch`. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D140422
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions