Micah P. Dombrowski / Feb 01 2020
Compile ArrayFire
Install dependencies.
apt-get -qq updateDEBIAN_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-dev48.3s
Build ArrayFire (Bash)
conda install -c defaults -c intel mkl-develconda clean -qtipyldconfig33.5s
Build ArrayFire (Bash)
Pull and install libboost compiled here.
cd /usr/localwget -q -O boost.tar.gz \  https://nextjournal.com/data/QmP9rGmYcqzJK4ihTdhSJRJHmVmmgF2YssgUpxAxRLunBwtar -zxf boost.tar.gzrm boost.tar.gzldconfig2.6s
Build ArrayFire (Bash)
Clone arrayfire repo.
rm -rf arrayfiregit clone --recursive https://github.com/arrayfire/arrayfire#cd arrayfire#git checkout a4485443684cc9ddbcbcaeb35b9024317904c51835.3s
Build ArrayFire (Bash)
Configure.
cd arrayfirerm -rf buildmkdir -p build && cd buildcmake .. \  -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/buildmake -j5 # or number of threads of your choosing5854.0s
Build ArrayFire (Bash)
Install.
cd arrayfire/buildmake install5875.5s
Build ArrayFire (Bash)
Save compiled library to an archive. Latest build: 1 Feb 2020.
cd /tmp/arrayfiretar -zcf /results/arrayfire-dev-njinst.tar.gz *37.3s
Build ArrayFire (Bash)
du -hsx /3.1s
Build ArrayFire (Bash)