Skip to content

Commit

Permalink
[libc] Switch to using the generic <gpuintrin.h> implementations (#…
Browse files Browse the repository at this point in the history
…121810)

Summary:
This patch switches the GPU utility helpers to wrapping around the
gpuintrin.h ones with a C++ flavor.
  • Loading branch information
jhuber6 authored Jan 7, 2025
1 parent a15fedc commit ac604b2
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 479 deletions.
10 changes: 3 additions & 7 deletions libc/src/__support/GPU/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
# These utilities are GPU only.
if(NOT LIBC_TARGET_OS_IS_GPU)
return()
endif()

add_subdirectory(${LIBC_TARGET_ARCHITECTURE})
set(target_gpu_utils libc.src.__support.GPU.${LIBC_TARGET_ARCHITECTURE}.${LIBC_TARGET_ARCHITECTURE}_utils)

add_header_library(
utils
HDRS
utils.h
DEPENDS
${target_gpu_utils}
)

add_object_library(
Expand All @@ -21,6 +17,6 @@ add_object_library(
allocator.h
DEPENDS
libc.src.__support.common
libc.src.__support.GPU.utils
libc.src.__support.RPC.rpc_client
.utils
)
7 changes: 0 additions & 7 deletions libc/src/__support/GPU/amdgpu/CMakeLists.txt

This file was deleted.

183 changes: 0 additions & 183 deletions libc/src/__support/GPU/amdgpu/utils.h

This file was deleted.

7 changes: 0 additions & 7 deletions libc/src/__support/GPU/generic/CMakeLists.txt

This file was deleted.

84 changes: 0 additions & 84 deletions libc/src/__support/GPU/generic/utils.h

This file was deleted.

7 changes: 0 additions & 7 deletions libc/src/__support/GPU/nvptx/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit ac604b2

Please sign in to comment.