Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
pskiran1 committed Jul 2, 2024
1 parent 5458094 commit 19c3054
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,6 @@ message(STATUS "TRT_VERSION envvar is $ENV{TRT_VERSION}")
#
if("$ENV{TRT_VERSION}" VERSION_LESS 10)
set(SOURCE_DIR "src_trt8")
else()
set(SOURCE_DIR "src")
endif()


#
# Shared library implementing the Triton Backend API
#
configure_file(${SOURCE_DIR}/libtriton_tensorrt.ldscript libtriton_tensorrt.ldscript COPYONLY)

if("$ENV{TRT_VERSION}" VERSION_LESS 10)
add_library(
triton-tensorrt-backend SHARED
${SOURCE_DIR}/tensorrt.cc
Expand All @@ -159,6 +148,7 @@ if("$ENV{TRT_VERSION}" VERSION_LESS 10)
${SOURCE_DIR}/io_binding_info.h
)
else()
set(SOURCE_DIR "src")
add_library(
triton-tensorrt-backend SHARED
${SOURCE_DIR}/tensorrt.cc
Expand Down Expand Up @@ -188,6 +178,11 @@ else()
)
endif()

#
# Shared library implementing the Triton Backend API
#
configure_file(${SOURCE_DIR}/libtriton_tensorrt.ldscript libtriton_tensorrt.ldscript COPYONLY)

add_library(
TritonTensorRTBackend::triton-tensorrt-backend ALIAS triton-tensorrt-backend
)
Expand Down

0 comments on commit 19c3054

Please sign in to comment.