File tree Expand file tree Collapse file tree 3 files changed +45
-30
lines changed Expand file tree Collapse file tree 3 files changed +45
-30
lines changed Original file line number Diff line number Diff line change
1
+ name : unix-cmake
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - " **.f90"
7
+ - " **.F90"
8
+ - " **.cmake"
9
+ - " **/CMakeLists.txt"
10
+ - " .github/workflows/unix-cmake.yml"
11
+
12
+
13
+ jobs :
14
+
15
+ linux :
16
+ name : CMake build on Linux
17
+ timeout-minutes : 15
18
+ runs-on : ubuntu-latest
19
+
20
+ strategy :
21
+ matrix :
22
+ mpi : [openmpi]
23
+ # For some reason, mpich GitHub Actions MPIEXEC only
24
+ # uses one CPU for MPICH
25
+
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+
29
+ - name : install prereqs (linux)
30
+ if : runner.os == 'Linux'
31
+ run : sudo apt install --no-install-recommends lib${{ matrix.mpi }}-dev
32
+
33
+ - name : install prereqs (mac)
34
+ if : runner.os == 'macOS'
35
+ run : brew install ${{ matrix.mpi }}
36
+
37
+ - run : cmake --workflow --preset debug
38
+
39
+ - run : cmake --workflow --preset release
Original file line number Diff line number Diff line change 1
- name : cmake
1
+ name : windows- cmake
2
2
3
3
on :
4
4
push :
7
7
- " **.F90"
8
8
- " **.cmake"
9
9
- " **/CMakeLists.txt"
10
- - " .github/workflows/cmake.yml"
10
+ - " .github/workflows/windows- cmake.yml"
11
11
12
12
13
13
jobs :
14
14
15
- linux :
16
- name : CMake build on Linux
17
- timeout-minutes : 15
18
- runs-on : ubuntu-latest
19
-
20
- strategy :
21
- matrix :
22
- mpi : [openmpi]
23
- # For some reason, mpich GitHub Actions MPIEXEC only
24
- # uses one CPU for MPICH
25
-
26
- steps :
27
- - uses : actions/checkout@v4
28
-
29
- - name : install prereqs (linux)
30
- if : runner.os == 'Linux'
31
- run : sudo apt install --no-install-recommends lib${{ matrix.mpi }}-dev
32
-
33
- - name : install prereqs (mac)
34
- if : runner.os == 'macOS'
35
- run : brew install ${{ matrix.mpi }}
36
-
37
- - run : cmake --workflow --preset debug
38
-
39
- - run : cmake --workflow --preset release
40
-
41
-
42
15
windows :
43
16
runs-on : windows-latest
44
17
name : CMake build on Windows
52
25
install : >-
53
26
mingw-w64-ucrt-x86_64-gcc
54
27
mingw-w64-ucrt-x86_64-gcc-fortran
28
+ mingw-w64-ucrt-x86_64-msmpi
55
29
56
30
- name : Put MSYS2_MinGW64 on PATH
57
31
run : echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Original file line number Diff line number Diff line change 1
1
# Fortran MPI Examples
2
2
3
- [ ![ cmake] ( https://github.com/scivision/fortran-mpi-examples/actions/workflows/cmake.yml/badge.svg )] ( https://github.com/scivision/fortran-mpi-examples/actions/workflows/cmake.yml )
3
+ [ ![ cmake] ( https://github.com/scivision/fortran-mpi-examples/actions/workflows/unix-cmake.yml/badge.svg )] ( https://github.com/scivision/fortran-mpi-examples/actions/workflows/unix-cmake.yml )
4
+ [ ![ cmake] ( https://github.com/scivision/fortran-mpi-examples/actions/workflows/windows-cmake.yml/badge.svg )] ( https://github.com/scivision/fortran-mpi-examples/actions/workflows/windows-cmake.yml )
5
+
4
6
A few very basic examples, perhaps use to test MPI-3 Fortran library functionality.
5
7
6
8
Free, popular MPI-3 interfaces for C and Fortran include:
You can’t perform that action at this time.
0 commit comments