[libc-commits] [PATCH] D142776: [libc] Add code for detecting NVIDIA GPUs as well

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jan 27 11:44:20 PST 2023


jhuber6 added inline comments.


================
Comment at: libc/cmake/modules/prepare_libc_gpu_build.cmake:53
+                 "architecture ${LIBC_GPU_TARGET_ARCHITECTURE} ")
+  return()
+endif()
----------------
sivachandra wrote:
> How can one pick between AMD or Nvidia GPUs?
I wasn't sure if it warranted a special case right now. Since this is a contingency for a system with both an Nvidia and AMD GPU installed, which is uncommon but not unheard of. Right now I wasn't sure how much effort it would be to support testing multiple builds at the same time, so I figured it would be easier to just stick with one for now.

I could maybe make an override flag. Maybe that would also be useful for ensuring the tests get built even without a GPU installed (as would be the case if someone build LLVM on a cluster's home node and then switched to a compute node).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142776/new/

https://reviews.llvm.org/D142776



More information about the libc-commits mailing list