mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 06:25:21 -04:00
fix slow ifort on mac
This commit is contained in:
parent
764ae58379
commit
778a5760b8
2 changed files with 24 additions and 0 deletions
|
|
@ -1,4 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
if [[ -z "$TRAVIS_BUILD_DIR" ]] ; then
|
||||
TRAVIS_BUILD_DIR=$(pwd)
|
||||
fi
|
||||
os=`uname`
|
||||
dist="ubuntu"
|
||||
arch=`uname -m`
|
||||
|
|
@ -52,6 +55,9 @@ echo DISTR is "$DISTR"
|
|||
"$IONEAPI_ROOT"/installer "$IONEAPI_ROOT"/vtune_profiler "$IONEAPI_ROOT"/tbb || true
|
||||
fi
|
||||
source "$IONEAPI_ROOT"/setvars.sh --force || true
|
||||
#fix slow ifort https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/slow-execution-of-ifort-icpc-on-MacOSX-catalina/m-p/1203190
|
||||
$TRAVIS_BUILD_DIR/travis/fix_xcodebuild.sh
|
||||
cp xcodebuild "$IONEAPI_ROOT"/compiler/latest/mac/bin/intel64/.
|
||||
export I_MPI_F90="$FC"
|
||||
ls -lrta $IONEAPI_ROOT ||true
|
||||
rm -f *dmg || true
|
||||
|
|
|
|||
18
travis/fix_xcodebuild.sh
Executable file
18
travis/fix_xcodebuild.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
rm -f xcodebuild
|
||||
INTEL_OSXSDK_VER=`xcodebuild -sdk macosx -version | grep SDKVersion`
|
||||
INTEL_OSXSDK_PATH=`xcodebuild -sdk macosx -version Path`
|
||||
echo $INTEL_OSXSDK_PATH
|
||||
cat > xcodebuild <<EOF
|
||||
#!/bin/bash
|
||||
#https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/slow-execution-of-ifort-icpc-on-MacOSX-catalina/m-p/1203190
|
||||
INTEL_OSXSDK_VER="$INTEL_OSXSDK_VER"
|
||||
INTEL_OSXSDK_PATH="$INTEL_OSXSDK_PATH"
|
||||
case "\$4" in
|
||||
"")
|
||||
echo \$INTEL_OSXSDK_VER;;
|
||||
*)
|
||||
echo \$INTEL_OSXSDK_PATH;;
|
||||
esac
|
||||
EOF
|
||||
chmod +x xcodebuild
|
||||
Loading…
Add table
Add a link
Reference in a new issue