[libc] [llvm] [libc] Build the GPU during the projects setup like libc-hdrgen (PR #84667)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 06:57:20 PDT 2024


================
@@ -56,11 +37,10 @@ elseif(TARGET nvptx-loader AND LIBC_TARGET_ARCHITECTURE_IS_NVPTX)
   )
 endif()
 
-if(TARGET libc.utils.gpu.loader)
-  get_target_property(gpu_loader_tgt libc.utils.gpu.loader "TARGET")
+foreach(gpu_loader_tgt amdhsa-loader nvptx-loader)
   if(gpu_loader_tgt)
----------------
jhuber6 wrote:

No, they can only be built if the user had HSA or CUDA installed on their machine in a location it could find.

https://github.com/llvm/llvm-project/pull/84667


More information about the llvm-commits mailing list