We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c996023 commit 32e2294Copy full SHA for 32e2294
libc/src/__support/GPU/CMakeLists.txt
@@ -1,11 +1,9 @@
1
-if(NOT LIBC_TARGET_OS_IS_GPU)
+if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
2
return()
3
endif()
4
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()
+add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
+set(target_gpu_utils libc.src.__support.GPU.${LIBC_TARGET_ARCHITECTURE}.${LIBC_TARGET_ARCHITECTURE}_utils)
9
10
add_header_library(
11
utils
0 commit comments