Skip to content

Commit ac604b2

Browse files
authored
[libc] Switch to using the generic <gpuintrin.h> implementations (#121810)
Summary: This patch switches the GPU utility helpers to wrapping around the gpuintrin.h ones with a C++ flavor.
1 parent a15fedc commit ac604b2

File tree

10 files changed

+90
-479
lines changed

10 files changed

+90
-479
lines changed

libc/src/__support/GPU/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
1+
# These utilities are GPU only.
2+
if(NOT LIBC_TARGET_OS_IS_GPU)
23
return()
34
endif()
45

5-
add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
6-
set(target_gpu_utils libc.src.__support.GPU.${LIBC_TARGET_ARCHITECTURE}.${LIBC_TARGET_ARCHITECTURE}_utils)
7-
86
add_header_library(
97
utils
108
HDRS
119
utils.h
12-
DEPENDS
13-
${target_gpu_utils}
1410
)
1511

1612
add_object_library(
@@ -21,6 +17,6 @@ add_object_library(
2117
allocator.h
2218
DEPENDS
2319
libc.src.__support.common
24-
libc.src.__support.GPU.utils
2520
libc.src.__support.RPC.rpc_client
21+
.utils
2622
)

libc/src/__support/GPU/amdgpu/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

libc/src/__support/GPU/amdgpu/utils.h

Lines changed: 0 additions & 183 deletions
This file was deleted.

libc/src/__support/GPU/generic/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

libc/src/__support/GPU/generic/utils.h

Lines changed: 0 additions & 84 deletions
This file was deleted.

libc/src/__support/GPU/nvptx/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)