Skip to content

Commit 47034e1

Browse files
committed
Minor tweaks and removal of non-working toolchains
1 parent 3533440 commit 47034e1

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/testing.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,23 @@ jobs:
2626
python-version: [3.12]
2727
build: [opt]
2828
toolchain:
29-
- {compiler: gcc, version: 14}
30-
- {compiler: intel, version: '2025.0'}
31-
- {compiler: intel-classic, version: '2021.10'}
29+
- {compiler: gcc, version: 10}
30+
- {compiler: gcc, version: 15}
31+
# - {compiler: intel, version: '2025.0'}
32+
# - {compiler: intel-classic, version: '2021.10'}
3233
# - {compiler: nvidia-hpc, version: '25.1'} # does not build python
3334
# - {compiler: lfortran, version: '0.45.0'} # lfortran not yet supported
3435
# - {compiler: flang, version: '20.1.0'} # flang not yet supported
3536
include:
3637
- os: ubuntu-latest
3738
build: debug
38-
toolchain: {compiler: intel, version: '2025.0'}
39+
toolchain: {compiler: gcc, version: 14}
3940
- os: macos-latest
4041
build: debug
4142
toolchain: {compiler: gcc, version: 15}
4243
exclude:
43-
- os: macos-latest
44-
toolchain: {compiler: intel, version: '2025.0'}
44+
- os: ubuntu-latest
45+
toolchain: {compiler: gcc, version: 15}
4546

4647
steps:
4748
- name: Set up Python ${{ matrix.python-version }}
@@ -143,6 +144,17 @@ jobs:
143144
echo "Unknown build type: ${{ matrix.build }}"
144145
exit 1
145146
fi
147+
elif [ "${{ matrix.toolchain.compiler }}" = "lfortran" ]; then
148+
if [ "${{ matrix.build }}" = "debug" ]; then
149+
export FFLAGS=""
150+
export OMP_NUM_THREADS=1
151+
elif [ "${{ matrix.build }}" = "opt" ]; then
152+
export FFLAGS="--fast --openmp"
153+
export OMP_NUM_THREADS=2
154+
else
155+
echo "Unknown build type: ${{ matrix.build }}"
156+
exit 1
157+
fi
146158
else
147159
echo "Unknown compiler: ${{ matrix.toolchain.compiler }}"
148160
exit 1
@@ -159,3 +171,7 @@ jobs:
159171
name: test_results
160172
path: ${{ env.CLAW }}/amrclaw/*_output
161173
if-no-files-found: ignore
174+
175+
176+
# lfortran
177+
# optimized = --openmp

0 commit comments

Comments
 (0)