fix for Intel mpi_init error in github actions

This commit is contained in:
edoapra 2024-08-08 10:41:43 -07:00
parent 3178697dc6
commit a398fa3cff
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA
2 changed files with 6 additions and 1 deletions

View file

@ -186,7 +186,7 @@ if [[ "$os" == "Linux" ]]; then
fi
if [[ "$FC" == "ifort" ]] || [[ "$FC" == "ifx" ]]; then
$MYSUDO apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-mkl intel-oneapi-compiler-dpcpp-cpp
$MYSUDO apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-mkl intel-oneapi-compiler-dpcpp-cpp libfabric-bin libnuma1
if [[ "$?" != 0 ]]; then
df -h
echo "intel-oneapi-compiler-fortran install failed: exit code " "${?}"

View file

@ -58,6 +58,11 @@ if [[ "$FC" == "ifort" ]] || [[ "$FC" == "ifx" ]] ; then
IONEAPI_ROOT=~/apps/oneapi
else
IONEAPI_ROOT=/opt/intel/oneapi
# fix runtime mpi_init error
# export FI_LOG_LEVEL=TRACE
export FI_PROVIDER=shm
echo "*** output of fi_info ***"
echo $(fi_info -l) || true
fi
# source "$IONEAPI_ROOT"/compiler/latest/env/vars.sh
source "$IONEAPI_ROOT"/setvars.sh --force