Skip to content

Commit

Permalink
Remove unnecessary linking of CUDA Runtime library
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkotila committed Oct 24, 2024
1 parent 519124f commit 2512c1d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/c++/library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,8 @@ if(TRITON_ENABLE_CC_GRPC)
endif() # TRITON_ENABLE_GPU

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

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

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

if(${TRITON_ENABLE_ZLIB})
Expand Down

0 comments on commit 2512c1d

Please sign in to comment.