Skip to content

Commit

Permalink
230626.213255.CST try matlab stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Jun 26, 2023
1 parent c63c6f0 commit 1075791
Show file tree
Hide file tree
Showing 48 changed files with 154 additions and 166 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint_hosted.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Lint the Fortran code and the MEX gateways on GitHub hosted runners

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
#schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint_nagfor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Lint the Fortran code and the MEX gateways with nagfor

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_all.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for all

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_bobyqa_small.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for BOBYQA, small

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
# schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_cobyla_small.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for COBYLA, small

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
# schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_compiler_options.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles, various compiler options

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_lincoa_small.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for LINCOA, small

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
# schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_newuoa_small.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for NEWUOA, small

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
# schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_prima_small.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for PRIMA, small

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
# schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_quadruple.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles, quadruple

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_rescue_idz_classical.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test RESCUE and IDZ, classical

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_rescue_idz_modernized.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test RESCUE and IDZ, modernized

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_single.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles, single

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/profile_uobyqa_small.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Plot performance profiles for UOBYQA, small

on:
# Trigger the workflow on #PUSH or pull request
#PUSH:
# Trigger the workflow on push or pull request
push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
# schedule:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check Spelling
# Comment management is handled through a secondary job, for details see:
# https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Restricted-Permissions
#
# `jobs.comment-#PUSH` runs when a #PUSH is made to a repository and the `jobs.spelling` job needs to make a comment
# `jobs.comment-push` runs when a push is made to a repository and the `jobs.spelling` job needs to make a comment
# (in odd cases, it might actually run just to collapse a comment, but that's fairly rare)
# it needs `contents: write` in order to add a comment.
#
Expand All @@ -20,7 +20,7 @@ name: Check Spelling
# This event listens to comments by users asking to update the metadata.
#
# `jobs.update`
# This job runs in response to an issue_comment and will #PUSH a new commit
# This job runs in response to an issue_comment and will push a new commit
# to update the spelling metadata.
#
# `with.experimental_apply_changes_via_bot`
Expand All @@ -34,7 +34,7 @@ name: Check Spelling
# For background, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-with-deploy-key

on:
#PUSH:
push:
branches:
- "**"
tags-ignore:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
outputs:
followup: ${{ steps.spelling.outputs.followup }}
runs-on: ubuntu-latest
if: "contains(github.event_name, 'pull_request') || github.event_name == '#PUSH'"
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'"
concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
# note: If you use only_check_changed_files, you do not want cancel-in-progress
Expand All @@ -75,7 +75,7 @@ jobs:
id: spelling
uses: check-spelling/check-spelling@main
with:
suppress_#PUSH_for_open_pull_request: 1
suppress_push_for_open_pull_request: 1
checkout: true
check_file_names: 1
spell_check_this: check-spelling/spell-check-this@prerelease
Expand All @@ -100,14 +100,14 @@ jobs:
cspell:html-symbol-entities/entities.txt
cspell:css/css.txt

comment-#PUSH:
comment-push:
name: Report (Push)
# If your workflow isn't running on #PUSH, you can remove this job
# If your workflow isn't running on push, you can remove this job
runs-on: ubuntu-latest
needs: spelling
permissions:
contents: write
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == '#PUSH'
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
steps:
- name: comment
uses: check-spelling/check-spelling@main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stress_test_fortran.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Stress test on large problems, Fortran

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
42 changes: 28 additions & 14 deletions .github/workflows/stress_test_matlab.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
name: Stress test on large problems, MATLAB

on:
# Trigger the workflow on #PUSH or pull request
push:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
- cron: '0 6 * * *'
# Trigger the workflow manually
workflow_dispatch:

env:
GFORTRAN_VERSION: 12

jobs:
test:
name: Stress test of PRIMA on large problems
runs-on: ${{ matrix.os }}
continue-on-error: true
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
matlab: [latest]
solver: [uobyqa, newuoa, bobyqa, lincoa, cobyla]
#precision: [single, double]
precision: [double]
#test: [normal, tough]
test: [normal]
test: [normal, tough]

# Test some old versions of OS and MATLAB.
include:
- os: ubuntu-20.04
matlab: R2020b
- os: macos-11
matlab: R2022a
- os: windows-2019
matlab: R2021a

steps:
- name: Check out repository
Expand All @@ -40,7 +41,15 @@ jobs:

- name: Link gfortran for MATLAB on Linux
if: startsWith(matrix.os, 'ubuntu')
run: bash .github/scripts/link_gfortran ${{ env.GFORTRAN_VERSION }}
run: |
GFVER=12
if [[ "${{ matrix.os }}" = "ubuntu-20.04" ]] ; then
GFVER=11
fi
if [[ "${{ matrix.matlab }}" = "R2020b" || "${{ matrix.matlab }}" = "R2021a" || "${{ matrix.matlab }}" = "R2021b" ]] ; then
GFVER=9
fi
bash .github/scripts/link_gfortran "$GFVER"
- name: Install Intel oneAPI on macOS
if: startsWith(matrix.os, 'macos')
Expand Down Expand Up @@ -71,7 +80,12 @@ jobs:
cd(fullfile(root_dir, 'matlab/tests'));
options = struct();
options.tough = strcmp('${{ matrix.test }}', 'tough');
options.precision = '${{ matrix.precision }}';
daynum = day(datetime('now', 'TimeZone', 'Asia/Shanghai'));
if daynum % 2 == 0
options.precision = 'single';
else
options.precision = 'double';
end
stress('${{ matrix.solver }}', options);
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_absoft.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Absoft

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_aflang.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Flang in AMD AOCC

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request:
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_armflang_kunpeng.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test armflang on Kunpeng

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_armflang_pi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test armflang on Raspberry Pi

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_flang.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Flang

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_flang_kunpeng.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Flang on Kunpeng

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_flang_pi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Flang on Raspberry Pi

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_g95.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test g95

on:
# Trigger the workflow on #PUSH or pull request
##PUSH:
# Trigger the workflow on push or pull request
#push:
pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
Expand Down
Loading

1 comment on commit 1075791

@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 👼 SARIF report for details.

Unrecognized words (2)

COMPFLAGS
daynum

To accept ✔️ these unrecognized words as correct, 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/5378807056/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.