Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
q10 committed Nov 23, 2024
1 parent d7e0c40 commit e0f975f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmake/modules/GpuCppLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,15 @@ function(gpu_cpp_library)
${TORCH_INCLUDE_DIRS}
${NCCL_INCLUDE_DIRS})

# Remove `lib` from the output artifact name, i.e. `libfoo.so` -> `foo.so`
set_target_properties(${lib_name}
PROPERTIES PREFIX "")

set_target_properties(${lib_name} PROPERTIES
# Remove `lib` from the output artifact name, i.e. `libfoo.so` -> `foo.so`
PREFIX ""
# Enforce -fPIC for STATIC library option, since they are to be
# integrated into other libraries down the line
POSITION_INDEPENDENT_CODE ON)



# Link to PyTorch
target_link_libraries(${lib_name}
Expand Down

0 comments on commit e0f975f

Please sign in to comment.