Skip to content

Commit 3b77edb

Browse files
authored
Check usage of marketplace action (#7)
* correct passsing of include_mkl in example * don't source intel set vars * run setvars, set MKLLIB
1 parent d712ae0 commit 3b77edb

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/actions/test-mkl/action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ runs:
2020
run: |
2121
if [[ "${{ inputs.compiler }}" =~ "intel" ]] && [[ "${{ inputs.install_mkl }}" == "true" ]] && ([[ "${{ inputs.version }}" != "2021.5" ]] && [[ "$runner.os" != "macOS" ]]); then
2222
if [ "$RUNNER_OS" == "macOS" ]; then
23+
# required for macOS 11, intel-classic 2021.1-2021.10
24+
# required for macOS 12, intel-classic 2021.1, 2021.4, 2021.6, 2021.10
25+
# for all others, setting DYLD path through environment works correctly
2326
export DYLD_LIBRARY_PATH="${{ env.MKLLIB }}:$DYLD_LIBRARY_PATH"
2427
fi
2528
linking="-L${{ env.MKLLIB }} -lmkl_intel_lp64 -lmkl_sequential -lmkl_core"

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Test
33
# Push and pull request run in assert mode.
44
# Schedule and dispatch run in report mode.
55
on:
6-
# push:
7-
# paths-ignore:
8-
# - '**.md'
6+
push:
7+
paths-ignore:
8+
- '**.md'
99
pull_request:
1010
branches:
1111
- main

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- {compiler: gcc, version: 13}
3636
- {compiler: intel, version: '2023.2'}
3737
- {compiler: intel-classic, version: '2021.10'}
38-
- {compiler: intel-classic, version: '2021.10', install_mkl: 'true'}
38+
- {compiler: intel-classic, version: '2021.10'}
3939
- {compiler: nvidia-hpc, version: '23.11'}
4040
include:
4141
- os: ubuntu-latest
@@ -49,11 +49,13 @@ jobs:
4949
toolchain: {compiler: nvidia-hpc, version: '23.11'}
5050

5151
steps:
52-
- uses: fortran-lang/setup-fortran@v1
52+
- uses: ssciwr/setup-fortran@v0.1
5353
id: setup-fortran
5454
with:
5555
compiler: ${{ matrix.toolchain.compiler }}
5656
version: ${{ matrix.toolchain.version }}
57+
install_mkl: "true"
58+
5759

5860
- run: |
5961
${{ env.FC }} ... # environment vars FC, CC, and CXX are set

setup-fortran.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ LIBRARY_PATH=$LIBRARY_PATH
183183
INFOPATH=$INFOPATH
184184
MANPATH=$MANPATH
185185
MKLLIB=$MKLLIB
186+
MKLROOT=$MKLROOT
186187
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
187188
ONEAPI_ROOT=$ONEAPI_ROOT
188189
CLASSPATH=$CLASSPATH
@@ -402,6 +403,7 @@ install_intel_apt()
402403
fi
403404
if $install_mkl; then
404405
export MKLLIB="$ONEAPI_ROOT/mkl/latest/lib/intel64"
406+
export MKLROOT="$ONEAPI_ROOT/mkl/latest"
405407
fi
406408
export_intel_vars
407409
}
@@ -510,6 +512,7 @@ install_intel_dmg()
510512

511513
if $install_mkl; then
512514
export MKLLIB="$ONEAPI_ROOT/mkl/latest/lib"
515+
export MKLROOT="$ONEAPI_ROOT/mkl/latest"
513516
export DYLD_LIBRARY_PATH="$MKLLIB":$DYLD_LIBRARY_PATH
514517
fi
515518

@@ -684,4 +687,4 @@ install_nvidiahpc()
684687
exit 1
685688
;;
686689
esac
687-
}
690+
}

0 commit comments

Comments
 (0)