Skip to content

Commit 0e2103a

Browse files
committed
[libc][NFC] Remove unused CMake for gpu math
1 parent b1d2d7c commit 0e2103a

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

libc/src/math/amdgpu/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Math functions not yet available in the libc project, or those not yet tuned
2-
# for GPU workloads are provided as wrappers over vendor libraries. If we find
3-
# them ahead of time we will import them statically. Otherwise, we will keep
4-
# them as external references and expect them to be resolved by the user when
5-
# they compile. In the future,we will use implementations from the 'libc'
6-
# project and not provide these wrappers.
7-
find_package(AMDDeviceLibs QUIET HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm)
8-
if(AMDDeviceLibs_FOUND)
9-
message(STATUS "Found the ROCm device library. Implementations falling back "
10-
"to the vendor libraries will be resolved statically.")
11-
get_target_property(ocml_path ocml IMPORTED_LOCATION)
12-
set(bitcode_link_flags
13-
"SHELL:-Xclang -mlink-builtin-bitcode -Xclang ${ocml_path}")
14-
else()
15-
message(STATUS "Could not find the ROCm device library. Unimplemented "
16-
"functions will be an external reference to the vendor libraries.")
17-
endif()
18-
191
add_entrypoint_object(
202
ceil
213
SRCS

libc/src/math/nvptx/CMakeLists.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
# Math functions not yet available in the libc project, or those not yet tuned
2-
# for GPU workloads are provided as wrappers over vendor libraries. If we find
3-
# them ahead of time we will import them statically. Otherwise, we will keep
4-
# them as external references and expect them to be resolved by the user when
5-
# they compile. In the future,we will use implementations from the 'libc'
6-
# project and not provide these wrappers.
7-
if(CUDAToolkit_FOUND)
8-
set(libdevice_path ${CUDAToolkit_BIN_DIR}/../nvvm/libdevice/libdevice.10.bc)
9-
if (EXISTS ${libdevice_path})
10-
message(STATUS "Found the CUDA device library. Implementations falling back "
11-
"to the vendor libraries will be resolved statically.")
12-
set(bitcode_link_flags
13-
"SHELL:-Xclang -mlink-builtin-bitcode -Xclang ${libdevice_path}")
14-
endif()
15-
else()
16-
message(STATUS "Could not find the CUDA device library. Unimplemented "
17-
"functions will be an external reference to the vendor libraries.")
18-
endif()
19-
201
add_entrypoint_object(
212
ceil
223
SRCS

0 commit comments

Comments
 (0)