Skip to content

Commit a3fb923

Browse files
committed
added kymograph to post_processing
2 parents 40b456a + a4feb61 commit a3fb923

File tree

437 files changed

+77066
-8303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

437 files changed

+77066
-8303
lines changed

.github/file-filter.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ scripts: &scripts
2222
- 'toolchain/bootstrap/**'
2323

2424
yml: &yml
25-
- '**/*.yml'
25+
- '.github/workflows/phoenix/**'
26+
- '.github/workflows/frontier/**'
27+
- '.github/workflows/bench.yml'
28+
- '.github/workflows/test.yml'
29+
- '.github/workflows/formatting.yml'
2630

2731
checkall: &checkall
2832
- *fortran_src
2933
- *python_src
3034
- *cmakelist
3135
- *tests
3236
- *scripts
33-
- *yml
37+
- *yml

.github/workflows/bench.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020

2121
self:
2222
name: Georgia Tech | Phoenix (NVHPC)
23-
if: github.repository == 'MFlowCode/MFC'
23+
if: github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
24+
needs: file-changes
2425
strategy:
2526
matrix:
2627
device: ['cpu', 'gpu']
@@ -46,8 +47,8 @@ jobs:
4647

4748
- name: Bench (Master v. PR)
4849
run: |
49-
(cd pr && bash .github/workflows/phoenix/submit.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
50-
(cd master && bash .github/workflows/phoenix/submit.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
50+
(cd pr && bash .github/workflows/phoenix/submit-bench.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
51+
(cd master && bash .github/workflows/phoenix/submit-bench.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
5152
wait %1 && wait %2
5253
5354
- name: Generate & Post Comment

.github/workflows/docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@ jobs:
4747
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
4848
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
4949
50+
- name: Linkcheck - Lychee
51+
uses: lycheeverse/lychee-action@v2
52+
with:
53+
args: -c .lychee.toml build/install/docs/mfc/
54+
fail: false
55+
5056
- name: Publish Documentation
51-
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && github.event_name == 'cron'
57+
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' )
5258
run: |
5359
set +e
5460
git ls-remote "${{ secrets.DOC_PUSH_URL }}" -q

.github/workflows/formatting.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13+
- name: MFC Python setup
14+
run: ./mfc.sh init
15+
1316
- name: Check formatting
1417
run: |
1518
./mfc.sh format -j $(nproc)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
. ./mfc.sh load -c f -m g
4-
./mfc.sh build -j 8 --gpu
4+
./mfc.sh test --dry-run -j 8 --gpu

.github/workflows/frontier/submit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ sbatch <<EOT
2121
#SBATCH -A CFD154 # charge account
2222
#SBATCH -N 1 # Number of nodes required
2323
#SBATCH -n 8 # Number of cores required
24-
#SBATCH -t 02:00:00 # Duration of the job (Ex: 15 mins)
25-
#SBATCH -q debug # QOS Name
24+
#SBATCH -t 01:00:00 # Duration of the job (Ex: 15 mins)
2625
#SBATCH -o$job_slug.out # Combined output and error messages file
26+
#SBATCH -q debug # Use debug QOS - only one job per user allowed in queue!
2727
#SBATCH -W # Do not exit until the submitted job terminates.
2828
2929
set -e

.github/workflows/line-count.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check Line Counts
1+
name: Lines of Code
22

33
on: [push, pull_request, workflow_dispatch]
44

@@ -49,5 +49,6 @@ jobs:
4949
cd $BASE
5050
export MFC_PR=$PR
5151
pwd
52+
./mfc.sh init &> tmp.txt
5253
./mfc.sh count_diff
5354

.github/workflows/links.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/lint-source.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Lint Source
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
file-changes:
7+
name: Detect File Changes
8+
runs-on: 'ubuntu-latest'
9+
outputs:
10+
checkall: ${{ steps.changes.outputs.checkall }}
11+
steps:
12+
- name: Clone
13+
uses: actions/checkout@v4
14+
15+
- name: Detect Changes
16+
uses: dorny/paths-filter@v3
17+
id: changes
18+
with:
19+
filters: ".github/file-filter.yml"
20+
21+
lint-source:
22+
name: Lint Source
23+
runs-on: 'ubuntu-latest'
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Install Fortitude
29+
run: pip install fortitude-lint ansi2txt
30+
31+
- name: Lint the source code
32+
run: fortitude check --file-extensions=f90,fpp,fypp --ignore=E001,S001,S101,M011,F001,S041,T001,S101 ./src/** || true
33+
34+
- name: Ensure kind is specified
35+
run: fortitude check --file-extensions=f90,fpp,fypp --select=P001 ./src/**
36+
37+
- name: No double precision intrinsics
38+
run: |
39+
! grep -iR 'double_precision\|dsqrt\|dexp\|dlog\|dble\|dabs\|double\ precision\|real(8)\|real(4)\|dprod\|dmin\|dmax\|dfloat\|dreal\|dcos\|dsin\|dtan\|dsign\|dtanh\|dsinh\|dcosh\|d0' --exclude-dir=syscheck --exclude="*nvtx*" --exclude="*precision_select*" ./src/*
40+
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
name: Lint
1+
name: Lint Toolchain
22

33
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
6-
docs:
6+
lint-toolchain:
77
name: Lint Toolchain
88
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v4
1212

13+
- name: MFC Python setup
14+
run: ./mfc.sh init
15+
1316
- name: Lint the toolchain
1417
run: ./mfc.sh lint

0 commit comments

Comments
 (0)