Skip to content

Commit

Permalink
[libc][NFC] Clean up GPU utilities directory after rework (#83692)
Browse files Browse the repository at this point in the history
Summary:
This CMake can be cleaned up now that the AMDGPU and NVPTX builds do not
share a CMake invocation.
  • Loading branch information
jhuber6 authored Mar 4, 2024
1 parent c996023 commit 32e2294
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions libc/src/__support/GPU/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
if(NOT LIBC_TARGET_OS_IS_GPU)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
return()
endif()

foreach(target nvptx amdgpu generic)
add_subdirectory(${target})
list(APPEND target_gpu_utils libc.src.__support.GPU.${target}.${target}_utils)
endforeach()
add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
set(target_gpu_utils libc.src.__support.GPU.${LIBC_TARGET_ARCHITECTURE}.${LIBC_TARGET_ARCHITECTURE}_utils)

add_header_library(
utils
Expand Down

0 comments on commit 32e2294

Please sign in to comment.