Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,26 @@ endif() # TRITON_ENABLE_NVTX
#
configure_file(src/libtriton_pytorch.ldscript libtriton_pytorch.ldscript COPYONLY)

set(PT_LIBS
"libc10.so"
"libc10_cuda.so"
"libtorch.so"
"libtorch_cpu.so"
"libtorch_cuda.so"
"libtorch_cuda_linalg.so"
"libtorch_global_deps.so"
"libjpeg.so.62"
)
if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le")
set(PT_LIBS
"libc10.so"
"libc10_cuda.so"
"libtorch.so"
"libtorch_cpu.so"
"libtorch_cuda.so"
"libtorch_cuda_linalg.so"
"libtorch_global_deps.so"
"libjpeg.so.62"
)
else()
set(PT_LIBS
"libc10.so"
"libtorch.so"
"libtorch_cpu.so"
"libtorch_global_deps.so"
"libjpeg.so.62"
)
endif()

if (${TRITON_PYTORCH_ENABLE_TORCHVISION})
set(PT_LIBS
Expand Down