Skip to content

Commit

Permalink
Revert "Remove unnecessary linking of CUDA Runtime library (#798)"
Browse files Browse the repository at this point in the history
This reverts commit 51a5e91.
  • Loading branch information
fpetrini15 authored Oct 25, 2024
1 parent 51a5e91 commit 4321c37
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/c++/library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,10 @@ if(TRITON_ENABLE_CC_GRPC)
endif() # TRITON_ENABLE_GPU

if(TRITON_ENABLE_GPU)
target_include_directories(${_client_target}
PUBLIC ${CUDAToolkit_INCLUDE_DIRS})
target_link_libraries(
${_client_target}
PUBLIC CUDA::cudart
)
endif() # TRITON_ENABLE_GPU
endforeach()

Expand Down Expand Up @@ -475,8 +477,10 @@ if(TRITON_ENABLE_CC_HTTP)
endif() # TRITON_ENABLE_GPU

if(TRITON_ENABLE_GPU)
target_include_directories(${_client_target}
PUBLIC ${CUDAToolkit_INCLUDE_DIRS})
target_link_libraries(
${_client_target}
PUBLIC CUDA::cudart
)
endif() # TRITON_ENABLE_GPU

if(${TRITON_ENABLE_ZLIB})
Expand Down

0 comments on commit 4321c37

Please sign in to comment.