Skip to content

Commit

Permalink
240405.155316.HKT revise yml files of tests on Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Apr 5, 2024
1 parent 04723b0 commit 7cfa3e0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2180,3 +2180,4 @@ hpa
CERI
HIMMELP
nuse
nxbdi
12 changes: 10 additions & 2 deletions .github/workflows/cmake_pi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,21 @@ jobs:
# As of 20240316, CMake test fails on cobyla with the Classic flang, AOCC flang, and
# nvfortran. See https://github.com/libprima/prima/issues/165
ctest --output-on-failure -V -E "stress|cobyla"
if [[ $FC == 'gfortran' ]] ; then
ctest --output-on-failure -V -E "stress"
else
ctest --output-on-failure -V -E "stress|cobyla"
fi
- name: Stress test
if: ${{ github.event_name == 'schedule' || github.event.inputs.stress-test == 'true' }}
shell: bash
run: |
ctest --output-on-failure -V -R stress -E cobyla
if [[ $FC == 'gfortran' ]] ; then
ctest --output-on-failure -V -R stress
else
ctest --output-on-failure -V -R stress -E cobyla
fi
# The following job check whether the tests were successful or cancelled due to timeout.
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test_armflang_pi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ jobs:
- name: Miscellaneous setup
run: bash .github/scripts/misc_setup

- Revise bobyqa/trustregion.f90 to see why `xbdi(trueloc(xopt >= su .and. gopt <= 0)) = 1` leads to a SIGFPE
shell: bash
if: ${{ matrix.solver == 'bobyqa' }}
run:
cd fortran/bobyqa || exit 42
$SEDI "s|xbdi(trueloc(xopt >= su .and. gopt <= 0)) = 1|write(*,*) 'su = ', su, 'xopt = ', xopt, 'gopt = ', gopt\nxbdi(trueloc(xopt >= su .and. gopt <= 0)) = 1|" trustregion.f90
cat trustregion.f90

- name: Conduct the test
run: |
cd "$ROOT_DIR"/fortran/${{ matrix.solver }} && bash ./flint -r && bash ./mlint -r
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test_nvfortran_pi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,21 @@ jobs:
uses: actions/checkout@v4
if: github.event.inputs.git-ref != ''
with:
ref: ${{ github.event.inputs.git-ref }}
ref: ${{ github.event.inputs.git-ref }}
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
submodules: recursive

- name: Miscellaneous setup
run: bash .github/scripts/misc_setup

- Revise bobyqa/trustregion.f90 to see why `xbdi(trueloc(xopt >= su .and. gopt <= 0)) = 1` leads to a SIGFPE
shell: bash
if: ${{ matrix.solver == 'bobyqa' }}
run:
cd fortran/bobyqa || exit 42
$SEDI "s|xbdi(trueloc(xopt >= su .and. gopt <= 0)) = 1|write(*,*) 'su = ', su, 'xopt = ', xopt, 'gopt = ', gopt\nxbdi(trueloc(xopt >= su .and. gopt <= 0)) = 1|" trustregion.f90
cat trustregion.f90

- name: Conduct the test
run: |
# Without the following lines, flint does not invoke vtest. No idea why.
Expand Down

0 comments on commit 7cfa3e0

Please sign in to comment.