REDACTED-rig/scripts/build.hwloc.sh
hilga007 69bdc2f3b1
update hwloc to latest stable
update hwloc from 2.5.0 to 2.6.0
2022-02-20 20:42:25 -08:00

19 lines
536 B
Bash
Executable file

#!/bin/bash -e
HWLOC_VERSION="2.6.0"
mkdir -p deps
mkdir -p deps/include
mkdir -p deps/lib
mkdir -p build && cd build
wget https://download.open-mpi.org/release/hwloc/v2.6/hwloc-${HWLOC_VERSION}.tar.gz -O hwloc-${HWLOC_VERSION}.tar.gz
tar -xzf hwloc-${HWLOC_VERSION}.tar.gz
cd hwloc-${HWLOC_VERSION}
./configure --disable-shared --enable-static --disable-io --disable-libudev --disable-libxml2
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
cp -fr include ../../deps
cp hwloc/.libs/libhwloc.a ../../deps/lib
cd ..