mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
* Update TensorRT-LLM --------- Co-authored-by: Shixiaowei02 <39303645+Shixiaowei02@users.noreply.github.com>
16 lines
510 B
Bash
16 lines
510 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
ARCH=$(uname -m)
|
|
CMAKE_VERSION="3.24.4"
|
|
|
|
PARSED_CMAKE_VERSION=$(echo $CMAKE_VERSION | sed 's/\.[0-9]*$//')
|
|
CMAKE_FILE_NAME="cmake-${CMAKE_VERSION}-linux-${ARCH}"
|
|
RELEASE_URL_CMAKE=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_FILE_NAME}.tar.gz
|
|
wget --no-verbose ${RELEASE_URL_CMAKE} -P /tmp
|
|
tar -xf /tmp/${CMAKE_FILE_NAME}.tar.gz -C /usr/local/
|
|
ln -s /usr/local/${CMAKE_FILE_NAME} /usr/local/cmake
|
|
|
|
echo 'export PATH=/usr/local/cmake/bin:$PATH' >> "${ENV}"
|