Skip to content

Commit

Permalink
240405.153154.HKT fix test_gfortran.yml, revise test_aflang.yml and t…
Browse files Browse the repository at this point in the history
…est_nvfortran.yml
  • Loading branch information
zaikunzhang committed Apr 5, 2024
1 parent 4bf79ec commit 04723b0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/test_aflang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
fflags: [-O1, -O2, -O3, -g, -fast]
testdim: [small, big]

# As of AOCC Flang 16.0.3, the following combination encounters a SEGFAULT when evaluating
# constr_internal(1:m_lcon) = matprod(x_internal, amat) - bvec in calcfc_internal
# Is it because of stack overflow due to the large arrays?
exclude:
- solver: cobyla
fflags: -g
testdim: big

steps:

- name: Clone Repository (Latest)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_gfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ jobs:
which gfortran && gfortran --version
- name: Revise linalg.f90 regarding a postcondition of p_norm, so that we know what is happening if it fails
shell: bash
run: |
cd fortran/common || exit 42
$SEDI "s|'Y >= 0 unless X contains NaN'|'Y >= 0 unless X contains NaN'\&\n\&\/\/num2str(y)\/\/num2str(sum(abs(x)))\/\/num2str(int(is_nan(sum(abs(x)))))\/\/num2str(x)|" linalg.f90
$SEDI "s|function p_norm(x, p) result(y)|function p_norm(x, p) result(y)\nuse, non_intrinsic :: string_mod, only : num2str|" linalg.f90
cat linalg.f90
cat linalg.f90
- name: Conduct the test
shell: bash # Important; otherwise, `<` will not work on Windows.
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test_nvfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,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 --all && bash ./mlint --all
Expand Down

1 comment on commit 04723b0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

🔴 Please review

See the 📜action log or 📝 job summary for details.

Unrecognized words (1)

nxbdi

To accept these unrecognized words as correct, you could run the following commands

... in a clone of the [email protected]:libprima/prima.git repository
on the main branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/libprima/prima/actions/runs/8566577410/attempts/1'
If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Please sign in to comment.