Skip to content

Commit

Permalink
Add MKL_INCLUDE_DIRS argument to IDG
Browse files Browse the repository at this point in the history
  • Loading branch information
Frits Sweijen committed Nov 19, 2023
1 parent 1f9268d commit 265df72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singularity/Singularity.intel_mkl
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ EOF
sed -i '1i #include <array>' $INSTALLDIR/idg/src/idg-lib/src/CUDA/common/routines/Beam.cpp
sed -i '1i #include <array>' $INSTALLDIR/idg/src/idg-lib/src/CUDA/Generic/routines/Imaging.cpp
if [ $HAS_CUDA = true ] && [ $HAS_MKL = true ]; then
cmake3 -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/idg -DBUILD_WITH_MKL=ON -DBUILD_LIB_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DTARGET_CPU=$MARCH ..
cmake3 -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/idg -DBUILD_WITH_MKL=ON -DMKL_INCLUDE_DIRS=/opt/intel/oneapi/mkl/latest/include/ -DBUILD_LIB_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DTARGET_CPU=$MARCH ..
elif [ $HAS_CUDA = false ] && [ $HAS_MKL = true ]; then
cmake3 -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/idg -DBUILD_WITH_MKL=ON -DCMAKE_BUILD_TYPE=Release -DTARGET_CPU=$MARCH ..
cmake3 -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/idg -DBUILD_WITH_MKL=ON -DMKL_INCLUDE_DIRS=/opt/intel/oneapi/mkl/latest/include/ -DCMAKE_BUILD_TYPE=Release -DTARGET_CPU=$MARCH ..
elif [ $HAS_CUDA = true ] && [ $HAS_MKL = false ]; then
cmake3 -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/idg -DBUILD_WITH_MKL=OFF -DBUILD_LIB_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DTARGET_CPU=$MARCH ..
else
Expand Down

0 comments on commit 265df72

Please sign in to comment.