Compile ArrayFire

Install dependencies.

apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends \
  libfreeimage-dev cmake-curses-gui \
  libopenblas-dev libfftw3-dev liblapacke-dev \
  libglfw3-dev libfontconfig1-dev libglm-dev xorg-dev
48.3s
Build ArrayFire (Bash)
conda install -c defaults -c intel mkl-devel
conda clean -qtipy
ldconfig
33.5s
Build ArrayFire (Bash)

Pull and install libboost compiled here.

cd /usr/local
wget -q -O boost.tar.gz \
  https://nextjournal.com/data/QmP9rGmYcqzJK4ihTdhSJRJHmVmmgF2YssgUpxAxRLunBw
tar -zxf boost.tar.gz
rm boost.tar.gz
ldconfig
2.6s
Build ArrayFire (Bash)

Clone arrayfire repo.

rm -rf arrayfire
git clone --recursive https://github.com/arrayfire/arrayfire
#cd arrayfire
#git checkout a4485443684cc9ddbcbcaeb35b9024317904c518
35.3s
Build ArrayFire (Bash)

Configure.

cd arrayfire
rm -rf build
mkdir -p build && cd build
cmake .. \
  -DCMAKE_INSTALL_PREFIX="/tmp/arrayfire" \
  -DCMAKE_BUILD_TYPE=Release \
  -DMKL_INCLUDE_DIR="/opt/conda/include" \
  -DMKL_Core_LINK_LIBRARY="/opt/conda/lib"
14.1s
Build ArrayFire (Bash)

Build.

cd arrayfire/build
make -j5 # or number of threads of your choosing
5854.0s
Build ArrayFire (Bash)

Install.

cd arrayfire/build
make install
5875.5s
Build ArrayFire (Bash)

Save compiled library to an archive. Latest build: 1 Feb 2020.

cd /tmp/arrayfire
tar -zcf /results/arrayfire-dev-njinst.tar.gz *
37.3s
Build ArrayFire (Bash)
arrayfire-dev-njinst.tar.gz
du -hsx /
3.1s
Build ArrayFire (Bash)

Runtimes (1)