mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
### Description Upgrade cmake version to 3.24 because I need to use a new feature that is only provided in that version and later. Starting from cmake 3.24, the [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html#module:FetchContent) module and the [find_package()](https://cmake.org/cmake/help/latest/command/find_package.html#command:find_package) command now support integration capabilities, which means calls to "FetchContent" can be implicitly redirected to "find_package", and vice versa. Users can use a cmake variable to control the behavior. So, we don't need to provide such a build option. We can delete our "onnxruntime_PREFER_SYSTEM_LIB" build option and let cmake handle it. And it would be easier for who wants to use vcpkg. ### Motivation and Context Provide a unified package management method, and get aligned with the community. This change is split from #13523 for easier review.
22 lines
997 B
Bash
Executable file
22 lines
997 B
Bash
Executable file
yum-config-manager --enable extras
|
|
yum -y install centos-release-scl-rh
|
|
# EPEL support (for yasm)
|
|
if ! rpm -q --quiet epel-release ; then
|
|
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
fi
|
|
yum install -y devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc aria2 python3-pip python3-wheel git python3-devel
|
|
ARCH=`uname -m`
|
|
if [ "$ARCH" = "aarch64" ]; then
|
|
aria2c -q -d /tmp -o cmake-3.24.3-linux-aarch64.tar.gz https://github.com/Kitware/CMake/releases/download/v3.24.3/cmake-3.24.3-linux-aarch64.tar.gz && tar -zxf /tmp/cmake-3.24.3-linux-aarch64.tar.gz --strip=1 -C /usr
|
|
else
|
|
aria2c -q -d /tmp https://github.com/Kitware/CMake/releases/download/v3.24.3/cmake-3.24.3.tar.gz
|
|
cd /tmp
|
|
mkdir cmake
|
|
cd cmake
|
|
tar --strip=1 -zxvf /tmp/cmake-3.24.3.tar.gz
|
|
./configure --prefix=/usr --parallel=$(nproc)
|
|
make -j$(nproc)
|
|
make install
|
|
fi
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install numpy
|