Skip to content

Commit fc40cce

Browse files
committed
Release v4.0.0 with GPU Acceleration
1 parent 013146d commit fc40cce

File tree

78 files changed

+103
-683
lines changed

Some content is hidden

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

78 files changed

+103
-683
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Continuous Integration
22

33
on:
44
push:
5-
branches: [ GPU ]
65
paths:
76
- '**.f90'
87
- '**.fpp'
@@ -17,7 +16,6 @@ on:
1716
- Dockerfile
1817

1918
pull_request:
20-
branches: [ GPU ]
2119

2220
workflow_dispatch:
2321

.github/workflows/doc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Documentation
33
on:
44
push:
55
branches:
6-
- GPU
6+
- master
77

88
workflow_dispatch:
99

@@ -33,13 +33,13 @@ jobs:
3333
git config --global user.name "MFC Action"
3434
git config --global user.email "MFC Action"
3535
git clone "${{ secrets.DOC_PUSH_URL }}"
36-
cd MFC-DOC
36+
cd "$(find . -name '*.github.io')"
3737
mv .github ..
3838
rm -rf $(pwd)/*
3939
mv ../.github .
4040
mv ../install/doc/mfc/* .
4141
git add -A
42-
git commit -m "${{ github.sha }}: $(date +%d/%m/%Y-%H:%M:%S)" || true
42+
git commit -m "${GITHUB_SHA::7}: $(date +%d/%m/%Y-%H:%M:%S)" || true
4343
git push
4444
4545
# DOC_PUSH_URL should be of the format:

.gitignore

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ tests/*.txt
3737
tests/*/**
3838
!**/golden.txt
3939

40-
samples/*batch/*/
41-
samples/*/D/*
42-
samples/*/p*
43-
samples/*/D_*
44-
samples/*/*.inf
45-
samples/*/*.inp
46-
samples/*/*.dat
47-
samples/*/*.o*
48-
samples/*/silo*
49-
samples/*/restart*
50-
samples/*/*.out
51-
samples/*/binary
52-
samples/*/fort.1
53-
samples/*/pre_process.sh
54-
samples/*/simulation.sh
55-
samples/*/post_process.sh
40+
examples/*batch/*/
41+
examples/*/D/*
42+
examples/*/p*
43+
examples/*/D_*
44+
examples/*/*.inf
45+
examples/*/*.inp
46+
examples/*/*.dat
47+
examples/*/*.o*
48+
examples/*/silo*
49+
examples/*/restart*
50+
examples/*/*.out
51+
examples/*/binary
52+
examples/*/fort.1
53+
examples/*/pre_process.sh
54+
examples/*/simulation.sh
55+
examples/*/post_process.sh
5656

5757
doc/*/MFC_user_guide.bbl
5858
doc/*/MFC_user_guide.blg

.gitlab-ci.yml

Lines changed: 63 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@
1313
# - User Read:
1414
# - $MEMBERWORK -> e.g /gpfs/wolf/scratch/henrylb
1515

16+
1617
stages:
17-
- clone # Clone MFC after removing artifacts from previous run(s).
18-
- cpu # Build MFC & Test it on/with CPUs
19-
- gpu # Build MFC & Test it on/with GPUs
18+
- main
19+
2020

2121
# Variables for all jobs
2222
variables:
2323
# Tell runner to not clone MFC
24-
GIT_STRATEGY: none
24+
GIT_STRATEGY: none
2525
# Ascent Job Scheduler parameters
2626
SCHEDULER_PARAMETERS: "-P CFD154 -nnodes 1 -W 00:30"
2727

28+
2829
# This script runs before each job's main script is executed.
2930
# It defines useful environment variables used at runtime.
3031
before_script:
@@ -37,45 +38,79 @@ before_script:
3738
# (Tidy) Delete clones/builds on the same branch older than 10 days
3839
- echo "Removing:"
3940
- export CI_MFC_BRANCH_DIR="$MEMBERWORK/cfd154/.ci/$CI_PROJECT_NAME/$CI_COMMIT_BRANCH"
41+
- mkdir -p "$CI_MFC_BRANCH_DIR"
4042
- find "$CI_MFC_BRANCH_DIR" -mindepth 1 -maxdepth 1 -type d -mtime +10 | sed s/^/\ -\ Removing\ /g
4143
- find "$CI_MFC_BRANCH_DIR" -mindepth 1 -maxdepth 1 -type d -mtime +10 | xargs rm -rf
4244

4345
# Define MFC directory path
4446
- CI_MFC_DIR="$MEMBERWORK/cfd154/.ci/$CI_PROJECT_NAME/$CI_COMMIT_BRANCH/$CI_COMMIT_SHORT_SHA"
4547

46-
# Clone MFC after removing artifacts from previous run(s).
47-
clone-job:
48-
stage: clone
48+
49+
.clone:
50+
stage: main
4951
script:
5052
# Clean MFC directory if it exists (from a previous run)
51-
- if [ -d "$CI_MFC_DIR" ]; then rm -rf "$CI_MFC_DIR"; fi
52-
# Create empty MFC directory
53-
- mkdir -p "$CI_MFC_DIR"
54-
53+
- if [ -d "$CI_MFC_DIR/$JOB_MODE" ]; then rm -rf "$CI_MFC_DIR/$JOB_MODE"; fi
54+
5555
# Clone MFC into MFC directory & cd into it
56-
- git clone --single-branch --branch "$CI_COMMIT_BRANCH" "$CI_REPOSITORY_URL" "$CI_MFC_DIR/"
57-
- cd "$CI_MFC_DIR" && echo "[CI] Running in $(pwd):"
56+
- mkdir -p "$CI_MFC_DIR/$JOB_MODE/"
57+
- git clone --single-branch --branch "$CI_COMMIT_BRANCH" "$CI_REPOSITORY_URL" "$CI_MFC_DIR/$JOB_MODE/"
5858
tags:
5959
- nobatch
6060

61-
cpu-test-job:
62-
stage: cpu
63-
needs:
64-
- cpu-build-job
61+
.build:
62+
stage: main
6563
script:
66-
- cd "$CI_MFC_DIR" && echo "[CI] Running in $(pwd):"
67-
- . ./mfc.sh load -c a -m g
68-
- ./mfc.sh test -j 8 -m release-cpu
64+
- cd "$CI_MFC_DIR/$JOB_MODE" && echo "[CI] Building in $(pwd):"
65+
- . ./mfc.sh load -c a -m $(if [ "$(echo "$JOB_MODE" | grep -i 'cpu' | wc -c)" -gt 0 ]; then echo "c"; else echo "g"; fi)
66+
- ./mfc.sh build -j 8 -m "$JOB_MODE"
6967
tags:
70-
- batch
68+
- nobatch
7169

72-
gpu-test-job:
73-
stage: gpu
74-
needs:
75-
- gpu-build-job
70+
.test:
71+
stage: main
7672
script:
77-
- cd "$CI_MFC_DIR" && echo "[CI] Running in $(pwd):"
78-
- . ./mfc.sh load -c a -m g
79-
- ./mfc.sh test -j 8 -m release-gpu
73+
- cd "$CI_MFC_DIR/$JOB_MODE" && echo "[CI] Running in $(pwd):"
74+
- . ./mfc.sh load -c a -m $(if [ "$(echo "$JOB_MODE" | grep -i 'cpu' | wc -c)" -gt 0 ]; then echo "c"; else echo "g"; fi)
75+
- ./mfc.sh test -j 8 -m "$JOB_MODE"
8076
tags:
8177
- batch
78+
79+
80+
clone-cpu:
81+
variables:
82+
JOB_MODE: "release-cpu"
83+
extends: .clone
84+
85+
build-cpu:
86+
variables:
87+
JOB_MODE: "release-cpu"
88+
extends: .build
89+
needs:
90+
- clone-cpu
91+
92+
test-cpu:
93+
variables:
94+
JOB_MODE: "release-cpu"
95+
extends: .test
96+
needs:
97+
- build-cpu
98+
99+
clone-gpu:
100+
variables:
101+
JOB_MODE: "release-gpu"
102+
extends: .clone
103+
104+
build-gpu:
105+
variables:
106+
JOB_MODE: "release-gpu"
107+
extends: .build
108+
needs:
109+
- clone-gpu
110+
111+
test-gpu:
112+
variables:
113+
JOB_MODE: "release-gpu"
114+
extends: .test
115+
needs:
116+
- build-gpu

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<a href="http://dx.doi.org/10.1016/j.cpc.2020.107396">
55
<img src="https://zenodo.org/badge/doi/10.1016/j.cpc.2020.107396.svg" />
66
</a>
7-
<a href="https://github.com/MFlowCode/MFC-develop/actions">
8-
<img src="https://github.com/MFlowCode/MFC-develop/actions/workflows/ci.yml/badge.svg" />
7+
<a href="https://github.com/MFlowCode/MFC/actions">
8+
<img src="https://github.com/MFlowCode/MFC/actions/workflows/ci.yml/badge.svg" />
99
</a>
10-
<a href="https://github.com/MFlowCode/MFC-develop/actions">
11-
<img src="https://github.com/MFlowCode/MFC-develop/actions/workflows/doc.yml/badge.svg" />
10+
<a href="https://github.com/MFlowCode/MFC/actions">
11+
<img src="https://github.com/MFlowCode/MFC/actions/workflows/doc.yml/badge.svg" />
1212
</a>
1313
<a href="https://lbesson.mit-license.org/">
1414
<img src="https://img.shields.io/badge/License-MIT-blue.svg" />
1515
</a>
16-
<a href="https://github.com/MFlowCode/MFC-develop/commit/">
17-
<img src="https://badgen.net/github/last-commit/MFlowCode/MFC-develop" />
16+
<a href="https://github.com/MFlowCode/MFC/commit/">
17+
<img src="https://badgen.net/github/last-commit/MFlowCode/MFC" />
1818
</a>
1919
<a href="https://hub.docker.com/repository/docker/henryleberre/mfc">
2020
<img src="https://shields.io/docker/image-size/henryleberre/mfc" />

dependencies/install.sh

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

doc/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "@DOXYGEN_PROJECT_NAME@"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 1.0
41+
PROJECT_NUMBER = 4.0.0
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

0 commit comments

Comments
 (0)