Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions ci/.build-project
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,19 @@ cmd "source ci/openmpi.env"
cmd "echo 'localhost slots=2' > /etc/openmpi/openmpi-default-hostfile"
if [[ "$vars" =~ \"-DBLAS_PREFERENCE_LIST=IntelMKL ]]; then
cmd "make -C /home/ValeevGroup install/intel-mkl"
# DevOps installs MKL 2020.3 which requires non-OneAPI TBB ... although MKL bundles TBB
# the systemwide TBB package is found first (the MKL's TBB does not bundle
# headers anyway, so it's almost useless for us)
# unfortunately the default, libtbb-dev, package on ubuntu 22.04 is OneAPI, get rid of it and use
# libtbb2-dev instead
cmd "source /opt/intel/oneapi/mkl/latest/env/vars.sh"
cmd "echo MKLROOT=\$MKLROOT"
# DevOps installs OneAPI MKL which requires OneAPI TBB ... although MKL bundles TBB
# the systemwide TBB package is found first + the MKL's TBB does not bundle
# so we can't discover it properly anyway
# unfortunately the default, libtbb-dev, package on ubuntu 20.04 is pre-OneAPI, so let's
# get rid of it + install "full" OneAPI TBB
if [[ "$vars" =~ \"-DIntelMKL_THREAD_LAYER=tbb ]]; then
cmd "(apt show libtbb2-dev && apt install -y libtbb2-dev) || echo \"no need to install libtbb2-dev\""
cmd "(apt show libtbb2 && apt remove -y libtbb2) || echo \"no need to install libtbb2\""
fi
cmd "source /opt/intel/mkl/bin/mklvars.sh intel64"
cmd "echo MKLROOT=\$MKLROOT"
cmd "apt-get -yq install intel-oneapi-tbb-devel"
cmd "source /opt/intel/oneapi/tbb/latest/env/vars.sh"
cmd "echo TBBROOT=\$TBBROOT"
fi
if [[ "$vars" =~ \"-D([a-zA-Z]+_)?ENABLE_CUDA=(ON|TRUE|1|YES)\" ]]; then
cmd "make -C /home/ValeevGroup install/cuda"
Expand Down