Skip to content

Commit 8fdf3d7

Browse files
committed
Revert "Merge pull request #97 from OpenSEMBA/feature/smbjson"
This reverts commit 3e8aa75, reversing changes made to bb53750.
1 parent 3e8aa75 commit 8fdf3d7

Some content is hidden

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

43 files changed

+834
-493
lines changed

.github/workflows/ubuntu-gnu.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: ubuntu-gnu
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- dev
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
15+
builds-and-test:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
build-type: ["Debug", "Release"]
20+
mpi: ["No", "Yes"]
21+
mtln: ["Yes"]
22+
hdf: ["Yes"]
23+
24+
include:
25+
- build-type: "Release"
26+
mpi: "Yes"
27+
mtln: "No"
28+
hdf: "Yes"
29+
30+
name: ${{matrix.build-type}}- mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}} - hdf ${{matrix.hdf}}
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
submodules: 'recursive'
37+
38+
- name: Install required packages
39+
run: |
40+
sudo apt update
41+
sudo apt install libhdf5-dev libopenmpi-dev
42+
43+
- name: Build application
44+
run: |
45+
cmake -S . -B build \
46+
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
47+
-DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi}} \
48+
-DSEMBA_FDTD_ENABLE_HDF=${{matrix.hdf}} \
49+
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
50+
cmake --build build -j
51+
52+
- name: Run fdtd unit tests
53+
run: |
54+
build/bin/fdtd_tests
55+
56+
- name: Install python wrapper requirements
57+
run: |
58+
python -m pip install -r requirements.txt
59+
60+
- name: Run all wrapper tests
61+
if: matrix.mtln=='Yes'
62+
run: python -m pytest test/
63+
64+
- name: Run non-mtln wrapper tests
65+
if: matrix.mtln=='No'
66+
run: python -m pytest -m 'not mtln' test/
67+
68+

.github/workflows/ubuntu-intel.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: ubuntu-intel
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- dev
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
15+
builds-and-tests:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
build-type: ["Debug", "Release"]
20+
mpi: ["No"]
21+
mtln: ["No"]
22+
hdf: ["Yes"]
23+
24+
25+
name: ${{matrix.build-type}}- mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}} - hdf ${{matrix.hdf}}
26+
27+
steps:
28+
29+
- uses: actions/checkout@v4
30+
with:
31+
submodules: 'recursive'
32+
33+
- name: Setup MPI
34+
uses: mpi4py/setup-mpi@v1
35+
with:
36+
mpi: 'intelmpi'
37+
38+
- name: Setup intel fortran
39+
uses: fortran-lang/setup-fortran@v1
40+
id: setup-fortran
41+
with:
42+
compiler: intel-classic
43+
version: '2021.10'
44+
45+
- name: CMake build
46+
run: |
47+
cmake -S . -B build \
48+
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
49+
-DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi}} \
50+
-DSEMBA_FDTD_ENABLE_HDF=${{matrix.hdf}} \
51+
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
52+
cmake --build build -j
53+
54+
- name: Run fdtd unit tests
55+
timeout-minutes: 60
56+
run: |
57+
build/bin/fdtd_tests
58+
59+
- name: Install python wrapper requirements
60+
run: |
61+
python -m pip install -r requirements.txt
62+
63+
- name: Run all wrapper tests
64+
if: matrix.mtln=='Yes'
65+
run: python -m pytest test/
66+
67+
- name: Run non-mtln wrapper tests
68+
if: matrix.mtln=='No'
69+
run: python -m pytest -m 'not mtln' test/
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: ubuntu-intelLLVM
2+
3+
on:
4+
5+
pull_request:
6+
branches:
7+
- main
8+
- dev
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
16+
builds-and-tests:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
build-type: ["Debug", "Release"]
21+
mpi: ["No", "Yes"]
22+
mtln: ["Yes"]
23+
hdf: ["Yes"]
24+
25+
name: ${{matrix.build-type}}- mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}} - hdf ${{matrix.hdf}}
26+
27+
steps:
28+
29+
- uses: actions/checkout@v4
30+
with:
31+
submodules: 'recursive'
32+
33+
- name: Setup MPI
34+
uses: mpi4py/setup-mpi@v1
35+
with:
36+
mpi: 'intelmpi'
37+
38+
- name: Setup intel fortran
39+
uses: fortran-lang/setup-fortran@v1
40+
id: setup-fortran
41+
with:
42+
compiler: intel
43+
version: '2024.2'
44+
45+
- name: CMake build
46+
run: |
47+
cmake -S . -B build \
48+
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
49+
-DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi}} \
50+
-DSEMBA_FDTD_ENABLE_HDF=${{matrix.hdf}} \
51+
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
52+
cmake --build build -j
53+
54+
- name: Run fdtd unit tests
55+
timeout-minutes: 60
56+
run: |
57+
build/bin/fdtd_tests
58+
59+
- name: Install python wrapper requirements
60+
run: |
61+
python -m pip install -r requirements.txt
62+
63+
- name: Run wrapper tests
64+
timeout-minutes: 60
65+
run: |
66+
python -m pytest test
67+
68+
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: ubuntu-nvhpc
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- dev
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
builds-and-test:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
build-type: ["Debug", "Release"]
20+
mpi: ["No"]
21+
mtln: ["No"]
22+
hdf: ["No"]
23+
24+
name: ${{matrix.build-type}}- mpi ${{matrix.mpi}} - mtln ${{matrix.mtln}} - hdf ${{matrix.hdf}}
25+
26+
timeout-minutes: 30
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
with:
31+
submodules: 'recursive'
32+
33+
- uses: fortran-lang/setup-fortran@v1
34+
id: setup-fortran
35+
with:
36+
compiler: nvidia-hpc
37+
version: '24.5'
38+
39+
- name: Install required packages
40+
run: |
41+
sudo apt update
42+
sudo apt install libhdf5-dev libopenmpi-dev
43+
44+
- name: Build application
45+
run: |
46+
cmake -S . -B build \
47+
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
48+
-DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi}} \
49+
-DSEMBA_FDTD_ENABLE_HDF=${{matrix.hdf}} \
50+
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
51+
cmake --build build -j
52+
53+
- name: Run fdtd unit tests
54+
timeout-minutes: 30
55+
run: |
56+
build/bin/fdtd_tests
57+
58+
- name: Install python wrapper requirements
59+
run: |
60+
python -m pip install -r requirements.txt
61+
62+
- name: Run non-mtln and non-hdf wrapper tests
63+
if: matrix.mtln=='No' || matrix.hdf=='No'
64+
run: python -m pytest -m 'not mtln and not hdf5' test/
65+
66+

.github/workflows/ubuntu.yml

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

0 commit comments

Comments
 (0)