[PATCH] D147582: [libc] Forward CUDA options to the runtimes invocation of `libc`
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 4 17:51:07 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7032f6d9503f: [libc] Forward CUDA options to the runtimes invocation of `libc` (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147582/new/
https://reviews.llvm.org/D147582
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -183,6 +183,10 @@
if(canon_name STREQUAL "LIBC")
list(APPEND prefixes "LLVM_LIBC")
list(APPEND prefixes "LIBC_")
+ # The `libc` project may require '-DCUDAToolkit_ROOT' in GPU mode.
+ if(LIBC_GPU_BUILD OR LIBC_GPU_ARCHITECTURES)
+ list(APPEND prefixes "CUDA")
+ endif()
endif()
string(FIND ${projName} "lib" LIB_IDX)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147582.510980.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230405/d03eb376/attachment.bin>
More information about the llvm-commits
mailing list