2020-05-22 12:14:38 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2021-03-03 12:38:54 +00:00
|
|
|
HWLOC_VERSION="2.4.1"
|
2020-05-22 12:14:38 +00:00
|
|
|
|
|
|
|
mkdir -p deps
|
|
|
|
mkdir -p deps/include
|
|
|
|
mkdir -p deps/lib
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
|
|
|
|
2020-12-13 15:56:00 +00:00
|
|
|
wget https://download.open-mpi.org/release/hwloc/v2.4/hwloc-${HWLOC_VERSION}.tar.gz -O hwloc-${HWLOC_VERSION}.tar.gz
|
2020-08-21 02:14:22 +00:00
|
|
|
tar -xzf hwloc-${HWLOC_VERSION}.tar.gz
|
2020-05-22 12:14:38 +00:00
|
|
|
|
|
|
|
cd hwloc-${HWLOC_VERSION}
|
|
|
|
./configure --disable-shared --enable-static --disable-io --disable-libudev --disable-libxml2
|
2020-08-23 08:46:56 +00:00
|
|
|
make -j$(nproc || sysctl -n hw.ncpu || sysctl -n hw.logicalcpu)
|
|
|
|
cp -fr include ../../deps
|
2020-05-22 12:14:38 +00:00
|
|
|
cp hwloc/.libs/libhwloc.a ../../deps/lib
|
|
|
|
cd ..
|