Skip to content

Commit 2512c1d

Browse files
committed
Remove unnecessary linking of CUDA Runtime library
1 parent 519124f commit 2512c1d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/c++/library/CMakeLists.txt

+4-8
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,8 @@ if(TRITON_ENABLE_CC_GRPC)
291291
endif() # TRITON_ENABLE_GPU
292292

293293
if(TRITON_ENABLE_GPU)
294-
target_link_libraries(
295-
${_client_target}
296-
PUBLIC CUDA::cudart
297-
)
294+
target_include_directories(${_client_target}
295+
PUBLIC ${CUDAToolkit_INCLUDE_DIRS})
298296
endif() # TRITON_ENABLE_GPU
299297
endforeach()
300298

@@ -477,10 +475,8 @@ if(TRITON_ENABLE_CC_HTTP)
477475
endif() # TRITON_ENABLE_GPU
478476

479477
if(TRITON_ENABLE_GPU)
480-
target_link_libraries(
481-
${_client_target}
482-
PUBLIC CUDA::cudart
483-
)
478+
target_include_directories(${_client_target}
479+
PUBLIC ${CUDAToolkit_INCLUDE_DIRS})
484480
endif() # TRITON_ENABLE_GPU
485481

486482
if(${TRITON_ENABLE_ZLIB})

0 commit comments

Comments
 (0)