Skip to content

Commit 08b2d0a

Browse files
committed
260407.013611.CST [skip ci] for nvfortran, run only the examples, not the extensive tests, as it is buggy and will be replaced by an LLVM-based compiler in the future
1 parent 37951c9 commit 08b2d0a

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/stress_test_fortran.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-15-intel]
29-
compiler: [g, v, s, f, x, d, m, r]
29+
compiler: [g, s, f, x, d, m, r] # vtest is excluded because nvfortran is buggy and will be replaced by an LLVM-based compiler in the future.
3030
solver: [newuoa, cobyla, lincoa, bobyqa, uobyqa]
3131
testdim: [large]
3232
exclude:
@@ -48,8 +48,6 @@ jobs:
4848
compiler: m
4949

5050
# Test only g and f on macOS, as other compilers are not available
51-
- os: macos-latest
52-
compiler: v
5351
- os: macos-latest
5452
compiler: s
5553
- os: macos-latest
@@ -60,8 +58,6 @@ jobs:
6058
compiler: m
6159
- os: macos-latest
6260
compiler: r
63-
- os: macos-15-intel
64-
compiler: v
6561
- os: macos-15-intel
6662
compiler: s
6763
- os: macos-15-intel

.github/workflows/test_nvfortran.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,8 @@ jobs:
2929
matrix:
3030
os: [ubuntu-latest, ubuntu-24.04-arm]
3131
solver: [newuoa, cobyla, lincoa, bobyqa, uobyqa]
32-
fflags: [-O1, -O2, -O3, -g, -fast]
33-
testdim: [small, big]
34-
35-
exclude: # nvfortran 26.3 encounters errors with the randomization in `rand.f90` and `noise.f90`.
36-
- solver: newuoa
37-
fflags: -O2
38-
- solver: bobyqa
39-
fflags: -O1
32+
#fflags: [-O1, -O2, -O3, -g, -fast]
33+
#testdim: [small, big]
4034

4135
steps:
4236

@@ -87,12 +81,21 @@ jobs:
8781
with:
8882
timelimit: 320m
8983
command: |
90-
export FFLAGS=${{ matrix.fflags }}
91-
export TESTDIM=${{ matrix.testdim }}
92-
IK=i$(( 2**(1 + $(date +%-d) % 3) ))
93-
echo "IK=${IK}"
94-
echo "IK=${IK}" >> "$GITHUB_ENV"
95-
cd "$ROOT_DIR"/fortran/tests && make vtest_${IK}.${{ matrix.solver }}
84+
########################################################################################
85+
# Zaikun 20260406: Starting from today, for nvfortran we will only run the examples,
86+
# not the extensive tests. nvfortran was quite useful as a reference for debugging the
87+
# early versions of PRIMA, but in the past years our work concerning nvfortran has been
88+
# mostly debugging the compiler itself (especially concerning empty arrays). In addition,
89+
# nvfortran will likely be replaced with a LLVM-based compiler in the future. See
90+
# https://forums.developer.nvidia.com/t/bug-of-nvfortran-25-7-with-empty-arrays/342404/2
91+
# https://forums.developer.nvidia.com/t/bug-of-nvfortran-24-3-0-fort1-terminated-by-signal-11/289026/6
92+
# export FFLAGS=${{ matrix.fflags }}
93+
# export TESTDIM=${{ matrix.testdim }}
94+
# IK=i$(( 2**(1 + $(date +%-d) % 3) ))
95+
# echo "IK=${IK}"
96+
# echo "IK=${IK}" >> "$GITHUB_ENV"
97+
# cd "$ROOT_DIR"/fortran/tests && make vtest_${IK}.${{ matrix.solver }}
98+
########################################################################################
9699
cd "$ROOT_DIR"/fortran/examples/${{ matrix.solver }}
97100
export EXAMPLE_NUM=1 && make clean && make vtest
98101
export EXAMPLE_NUM=2 && make clean && make vtest
@@ -101,7 +104,8 @@ jobs:
101104
uses: actions/upload-artifact@v7
102105
if: always() # Always run even if the workflow is canceled manually or due to overtime.
103106
with:
104-
name: ${{ matrix.os }}-${{ matrix.solver }}-${{ env.IK }}-${{ matrix.fflags }}-${{ matrix.testdim }}
107+
#name: ${{ matrix.os }}-${{ matrix.solver }}-${{ env.IK }}-${{ matrix.fflags }}-${{ matrix.testdim }}
108+
name: ${{ matrix.os }}-${{ matrix.solver }}
105109
path: ${{ env.TEST_DIR }}/prima/fortran/tests/test.${{ matrix.solver }}/log/*.log
106110

107111
- name: Remove the test data

0 commit comments

Comments
 (0)