Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify github organizations for triton core, backend, common, third-party, etc. #6668

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
20 changes: 18 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ set(TRITON_COMMON_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/
set(TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo")
set(TRITON_BACKEND_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/backend repo")

# Git Repos
set(TRITON_THIRD_PARTY_GIT_REPO "https://github.com/triton-inference-server/third_party.git" CACHE STRING
"Git repository for third_party library.")
set(TRITON_COMMON_GIT_REPO "https://github.com/triton-inference-server/common.git" CACHE STRING
"Git repository for common library.")
set(TRITON_CORE_GIT_REPO "https://github.com/triton-inference-server/core.git" CACHE STRING
"Git repository for core library.")
set(TRITON_BACKEND_GIT_REPO "https://github.com/triton-inference-server/backend.git" CACHE STRING
"Git repository for backend library.")



# Third-party location
set(TRITON_THIRD_PARTY_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/third-party" CACHE STRING "Location of third-party build")
set(TRITON_THIRD_PARTY_SRC_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/third-party-src" CACHE STRING "Location of third-party source")
Expand Down Expand Up @@ -114,12 +126,12 @@ include(FetchContent)

FetchContent_Declare(
repo-core
GIT_REPOSITORY ${TRITON_REPO_ORGANIZATION}/core.git
GIT_REPOSITORY ${TRITON_CORE_GIT_REPO}
GIT_TAG ${TRITON_CORE_REPO_TAG}
)
FetchContent_Declare(
repo-third-party
GIT_REPOSITORY ${TRITON_REPO_ORGANIZATION}/third_party.git
GIT_REPOSITORY ${TRITON_THIRD_PARTY_GIT_REPO}
GIT_TAG ${TRITON_THIRD_PARTY_REPO_TAG}
)

Expand Down Expand Up @@ -240,9 +252,13 @@ ExternalProject_Add(triton-server
-Dopentelemetry-cpp_DIR:PATH=${_FINDPACKAGE_OPENTELEMETRY_CONFIG_DIR}
-DTRITON_REPO_ORGANIZATION:STRING=${TRITON_REPO_ORGANIZATION}
-DTRITON_IGPU_BUILD:BOOL=${TRITON_IGPU_BUILD}
-DTRITON_THIRD_PARTY_GIT_REPO:STRING=${TRITON_THIRD_PARTY_GIT_REPO}
-DTRITON_THIRD_PARTY_REPO_TAG:STRING=${TRITON_THIRD_PARTY_REPO_TAG}
-DTRITON_COMMON_GIT_REPO:STRING=${TRITON_COMMON_GIT_REPO}
-DTRITON_COMMON_REPO_TAG:STRING=${TRITON_COMMON_REPO_TAG}
-DTRITON_CORE_GIT_REPO:STRING=${TRITON_CORE_GIT_REPO}
-DTRITON_CORE_REPO_TAG:STRING=${TRITON_CORE_REPO_TAG}
-DTRITON_BACKEND_GIT_REPO:STRING=${TRITON_BACKEND_GIT_REPO}
-DTRITON_BACKEND_REPO_TAG:STRING=${TRITON_BACKEND_REPO_TAG}
-DTRITON_EXTRA_LIB_PATHS:PATH=${TRITON_EXTRA_LIB_PATHS}
-DTRITON_ENABLE_ASAN:BOOL=${TRITON_ENABLE_ASAN}
Expand Down
Loading