File tree Expand file tree Collapse file tree 2 files changed +0
-37
lines changed Expand file tree Collapse file tree 2 files changed +0
-37
lines changed Original file line number Diff line number Diff line change 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-
191add_entrypoint_object(
202 ceil
213 SRCS
Original file line number Diff line number Diff line change 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-
201add_entrypoint_object(
212 ceil
223 SRCS
You can’t perform that action at this time.
0 commit comments