Skip to content

Commit

Permalink
update the cppbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkyang-nvi committed Sep 11, 2023
1 parent 8ea9101 commit f7f7a26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tritonserver/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ if [[ ! -f "/opt/tritonserver/include/triton/developer_tools/generic_server_wrap
git clone --single-branch --depth=1 -b ${TOOLS_BRANCH_TAG} ${TOOLS_BRANCH}
cd developer_tools/server
mkdir build && cd build
apt update && apt install -y gpg wget && \
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \
gpg --dearmor - | \
tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \
. /etc/os-release && \
echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $UBUNTU_CODENAME main" | \
tee /etc/apt/sources.list.d/kitware.list >/dev/null && \
apt-get update && \
apt-get install -y --no-install-recommends cmake cmake-data rapidjson-dev && \
cmake --version
cmake -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/install -DTRITON_BUILD_TEST=ON -DTRITON_ENABLE_EXAMPLES=ON -DTRITON_CORE_REPO_TAG=${TRITON_CORE_REPO_TAG} -DTRITON_BUILD_STATIC_LIBRARY=OFF ..
make -j"$(grep -c ^processor /proc/cpuinfo)" install
# Copy dynamic library to triton home
Expand Down

0 comments on commit f7f7a26

Please sign in to comment.