[libc-commits] [libc] 32e2294 - [libc][NFC] Clean up GPU utilities directory after rework (#83692)
via libc-commits
libc-commits at lists.llvm.org
Mon Mar 4 10:23:56 PST 2024
Author: Joseph Huber
Date: 2024-03-04T12:23:52-06:00
New Revision: 32e2294b8abba6b70356aa37b65acf155506d457
URL: https://github.com/llvm/llvm-project/commit/32e2294b8abba6b70356aa37b65acf155506d457
DIFF: https://github.com/llvm/llvm-project/commit/32e2294b8abba6b70356aa37b65acf155506d457.diff
LOG: [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.
Added:
Modified:
libc/src/__support/GPU/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/__support/GPU/CMakeLists.txt b/libc/src/__support/GPU/CMakeLists.txt
index d7ebd3cab7abe5..c181b2ed43c839 100644
--- a/libc/src/__support/GPU/CMakeLists.txt
+++ b/libc/src/__support/GPU/CMakeLists.txt
@@ -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
More information about the libc-commits
mailing list