Skip to content

Commit 39c5fc1

Browse files
committed
2 parents 3896c71 + 6b33565 commit 39c5fc1

File tree

650 files changed

+37775
-9032
lines changed

Some content is hidden

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

650 files changed

+37775
-9032
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/tests/**/* linguist-generated=true
2+
/toolchain/mechanisms/* linguist-generated=true

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ CMakeLists.txt @sbryngelson @henryleberre
1313
.vscode/ @sbryngelson @henryleberre
1414
.github/workflows/ @sbryngelson @henryleberre
1515

16+
# Spencer H. Bryngelson & Ben Wilfong
17+
.typos.toml @sbryngelson @wilfonba

.github/file-filter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fortran_src: &fortran_src
77

88
python_src: &python_src
99
- '**/*.py'
10-
- 'toolchain/requirements.txt'
10+
- 'toolchain/pyproject.toml'
1111

1212
cmakelist: &cmakelist
1313
- 'CMakeLists.txt'

.github/workflows/bench.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
runs-on:
2828
group: phoenix
2929
labels: gt
30+
timeout-minutes: 1400
3031
env:
3132
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
3233
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
@@ -51,8 +52,8 @@ jobs:
5152
5253
- name: Generate & Post Comment
5354
run: |
54-
. ./mfc.sh load -c p -m g
55-
./mfc.sh bench_diff master/bench-${{ matrix.device }}.yaml pr/bench-${{ matrix.device }}.yaml
55+
(cd pr && . ./mfc.sh load -c p -m g)
56+
(cd pr && ./mfc.sh bench_diff ../master/bench-${{ matrix.device }}.yaml ../pr/bench-${{ matrix.device }}.yaml)
5657
5758
- name: Archive Logs
5859
uses: actions/upload-artifact@v3

.github/workflows/cleanliness.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
name: Cleanliness
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
cleanliness:
7+
name: Code Cleanliness Test
8+
runs-on: "ubuntu-latest"
9+
env:
10+
pr_everything: 0
11+
master_everything: 0
12+
steps:
13+
- name: Clone - PR
14+
uses: actions/checkout@v3
15+
with:
16+
path: pr
17+
- name: Clone - Master
18+
uses: actions/checkout@v3
19+
with:
20+
repository: MFlowCode/MFC
21+
ref: master
22+
path: master
23+
24+
- name: Setup Ubuntu
25+
run: |
26+
sudo apt update -y
27+
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
28+
29+
- name: Build
30+
run: |
31+
(cd pr && /bin/bash mfc.sh build -j $(nproc) --debug 2> ../pr.txt)
32+
(cd master && /bin/bash mfc.sh build -j $(nproc) --debug 2> ../master.txt)
33+
sed -i '/\/pr\//d' pr.txt
34+
sed -i '/\/master\//d' master.txt
35+
36+
- name: Unused Variables Diff
37+
continue-on-error: true
38+
run: |
39+
grep -F 'Wunused-variable' master.txt > mUnused.txt
40+
grep -F 'Wunused-variable' pr.txt > prUnused.txt
41+
diff prUnused.txt mUnused.txt
42+
43+
- name: Unused Dummy Arguments Diff
44+
continue-on-error: true
45+
run: |
46+
grep -F 'Wunused-dummy-argument' pr.txt > prDummy.txt
47+
grep -F 'Wunused-dummy-argument' master.txt > mDummy.txt
48+
diff prDummy.txt mDummy.txt
49+
50+
- name: Unused Value Diff
51+
continue-on-error: true
52+
run: |
53+
grep -F 'Wunused-value' pr.txt > prUnused_val.txt
54+
grep -F 'Wunused-value' master.txt > mUnused_val.txt
55+
diff prUnused_val.txt mUnused_val.txt
56+
57+
- name: Maybe Uninitialized Variables Diff
58+
continue-on-error: true
59+
run: |
60+
grep -F 'Wmaybe-uninitialized' pr.txt > prMaybe.txt
61+
grep -F 'Wmaybe-uninitialized' master.txt > mMaybe.txt
62+
diff prMaybe.txt mMaybe.txt
63+
64+
65+
- name: Everything Diff
66+
continue-on-error: true
67+
run: |
68+
grep '\-W' pr.txt > pr_every.txt
69+
grep '\-W' master.txt > m_every.txt
70+
diff pr_every.txt m_every.txt
71+
72+
- name: List of Warnings
73+
run: |
74+
cat pr_every.txt
75+
76+
77+
- name: Summary
78+
continue-on-error: true
79+
run: |
80+
pr_variable=$(grep -c -F 'Wunused-variable' pr.txt)
81+
pr_argument=$(grep -c -F 'Wunused-dummy-argument' pr.txt)
82+
pr_value=$(grep -c -F 'Wunused-value' pr.txt)
83+
pr_uninit=$(grep -c -F 'Wmaybe-uninitialized' pr.txt)
84+
pr_everything=$(grep -c '\-W' pr.txt)
85+
86+
master_variable=$(grep -c -F 'Wunused-variable' master.txt)
87+
master_argument=$(grep -c -F 'Wunused-dummy-argument' master.txt)
88+
master_value=$(grep -c -F 'Wunused-value' master.txt)
89+
master_uninit=$(grep -c -F 'Wmaybe-uninitialized' master.txt)
90+
master_everything=$(grep -c '\-W' master.txt )
91+
92+
echo "pr_everything=$pr_everything" >> $GITHUB_ENV
93+
echo "master_everything=$master_everything" >> $GITHUB_ENV
94+
95+
echo "Difference is how many warnings were added or removed from master to PR."
96+
echo "Negative numbers are better since you are removing warnings."
97+
echo " "
98+
echo "Unused Variable Count: $pr_variable, Difference: $((pr_variable - master_variable))"
99+
echo "Unused Dummy Argument: $pr_argument, Difference: $((pr_argument - master_argument))"
100+
echo "Unused Value: $pr_value, Difference: $((pr_value - master_value))"
101+
echo "Maybe Uninitialized: $pr_uninit, Difference: $((pr_uninit - master_uninit))"
102+
echo "Everything: $pr_everything, Difference: $((pr_everything - master_everything))"
103+
104+
105+
- name: Check Differences
106+
if: env.pr_everything > env.master_everything
107+
run: |
108+
echo "Difference between warning count in PR is greater than in master."
109+
110+

.github/workflows/coverage.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ jobs:
4040
run: /bin/bash mfc.sh test -a -j $(nproc)
4141

4242
- name: Upload coverage reports to Codecov
43-
uses: codecov/codecov-action@v4.0.1
43+
uses: codecov/codecov-action@v4
4444
with:
4545
token: ${{ secrets.CODECOV_TOKEN }}
46-
fail_ci_if_error: true
46+
fail_ci_if_error: false
4747
verbose: true
48-
version: v0.6.0
4948
env:
5049
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5150

.github/workflows/docker.yml

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

.github/workflows/docs.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
name: Documentation
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
8-
workflow_dispatch:
3+
on: [push, pull_request, workflow_dispatch]
94

105
jobs:
116
docs:
127
name: Build & Publish
138
runs-on: ubuntu-latest
149

15-
if: github.repository == 'MFlowCode/MFC'
1610
concurrency:
1711
group: docs-publish
1812
cancel-in-progress: true
@@ -53,6 +47,7 @@ jobs:
5347
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
5448
5549
- name: Publish Documentation
50+
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && github.event_name == 'push'
5651
run: |
5752
set +e
5853
git ls-remote "${{ secrets.DOC_PUSH_URL }}" -q

.github/workflows/frontier/test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22

3-
./mfc.sh test -j 4 -a -- -c frontier
3+
gpus=`rocm-smi --showid | awk '{print $1}' | grep -Eo '[0-9]+' | uniq | tr '\n' ' '`
4+
ngpus=`echo "$gpus" | tr -d '[:space:]' | wc -c`
5+
6+
./mfc.sh test --max-attempts 3 -j $ngpus -- -c frontier
7+

.github/workflows/phoenix/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ if [ "$job_device" == "gpu" ]; then
1616
n_test_threads=`expr $gpu_count \* 2`
1717
fi
1818

19-
./mfc.sh test -a -j $n_test_threads $device_opts -- -c phoenix
19+
./mfc.sh test --max-attempts 3 -a -j $n_test_threads $device_opts -- -c phoenix
20+
2021

0 commit comments

Comments
 (0)