Skip to content

Commit 32e2294

Browse files
authored
[libc][NFC] Clean up GPU utilities directory after rework (#83692)
Summary: This CMake can be cleaned up now that the AMDGPU and NVPTX builds do not share a CMake invocation.
1 parent c996023 commit 32e2294

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libc/src/__support/GPU/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
if(NOT LIBC_TARGET_OS_IS_GPU)
1+
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
22
return()
33
endif()
44

5-
foreach(target nvptx amdgpu generic)
6-
add_subdirectory(${target})
7-
list(APPEND target_gpu_utils libc.src.__support.GPU.${target}.${target}_utils)
8-
endforeach()
5+
add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
6+
set(target_gpu_utils libc.src.__support.GPU.${LIBC_TARGET_ARCHITECTURE}.${LIBC_TARGET_ARCHITECTURE}_utils)
97

108
add_header_library(
119
utils

0 commit comments

Comments
 (0)