Skip to content

Commit 8c3a12d

Browse files
Merge pull request #931 from PrincetonUniversity/devel
Release v0.4.0 candidate
2 parents 638767a + bcc69fc commit 8c3a12d

2,672 files changed

Lines changed: 319270 additions & 35986 deletions

File tree

Some content is hidden

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

.github/pull_request_template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ If there is an issue created for these changes, link it here
1111
Please make sure to check developer documentation on specfem docs.
1212

1313
- [ ] I ran the code through pre-commit to check style
14+
- [ ] **THE DOCUMENTATION BUILDS WITHOUT WARNINGS/ERRORS**
15+
- [ ] I have added labels to the PR (see right hand side of the PR page)
1416
- [ ] My code passes all the integration tests
1517
- [ ] I have added sufficient unittests to test my changes
1618
- [ ] I have added/updated documentation for the changes I am proposing

.github/release.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
- dependencies
6+
- dependency
7+
categories:
8+
- title: 🚨 Breaking Changes
9+
labels:
10+
- breaking-change
11+
- title: 🎉 New Feature
12+
labels:
13+
- feature
14+
- title: 👨‍🔬 New physics
15+
labels:
16+
- new physics
17+
- title: 🚀 Performance enhancement
18+
labels:
19+
- performance enhancement
20+
- title: ✚ Enhancement
21+
labels:
22+
- enhancement
23+
- title: 📚 Documentation
24+
labels:
25+
- documentation
26+
- docs
27+
- title: Code Style Updates
28+
labels:
29+
- style
30+
- title: Fortran Meshfem2D/3D updates
31+
labels:
32+
- fortran
33+
- title: Refactor
34+
labels:
35+
- refactor
36+
- title: 🐛 Bug Fixes
37+
labels:
38+
- bug
39+
- fix
40+
- title: Configuration/CMake
41+
labels:
42+
- configuration
43+
- title: 🔧 Maintenance
44+
labels:
45+
- maintenance
46+
- title: 🧾 New tests
47+
labels:
48+
- tests
49+
- title: Other Changes
50+
labels:
51+
- "*"

.github/workflows/compilation.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Build
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- devel
8+
pull_request:
9+
branches:
10+
- '*' # All branches
411

512
jobs:
613
build-serial:
@@ -10,9 +17,6 @@ jobs:
1017
run: gcc --version && cmake --version
1118
- name: Checkout repository
1219
uses: actions/checkout@v1
13-
- name: Get submodules
14-
run: git submodule init
15-
&& git submodule update
1620
- name: Configure Serial build
1721
run: cmake -S . -B build
1822
- name: Build

.github/workflows/unittests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Unittests
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- devel
8+
pull_request:
9+
branches:
10+
- '*' # All branches should run on PRs
11+
412

513
jobs:
614
build-and-test:
@@ -10,9 +18,6 @@ jobs:
1018
run: gcc --version && cmake --version
1119
- name: Checkout repository
1220
uses: actions/checkout@v1
13-
- name: Get submodules
14-
run: git submodule init
15-
&& git submodule update
1621
- name: Configure
1722
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTS=ON
1823
- name: Build

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CMakeUserPresets.json
12
.vscode/
23
.DS_Store
34
build*/*
@@ -15,6 +16,7 @@ examples/*/*_config.yaml
1516
tests/regression-tests/*.yaml
1617
tests/regression-tests/*/cpu/*.yaml
1718
tests/regression-tests/*/gpu/*.yaml
19+
tests/unit-tests/error_jacobian/small_jacobian.png
1820
*.mod
1921
*.o
2022
*/OUTPUT_FILES/*
@@ -28,3 +30,8 @@ examples/*/Par_File
2830
autotuning/
2931
profiles
3032
.cache/
33+
test*.cpp
34+
test*.hpp
35+
include/specfem_setup.hpp
36+
install
37+
bin

.gitmodules

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

.jenkins/gnu_compiler_checks.gvy

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ pipeline{
55
}
66
}
77
stages{
8-
stage( ' Load git modules ' ){
9-
steps {
10-
echo ' Getting git submodules '
11-
sh 'git submodule init'
12-
sh 'git submodule update'
13-
}
14-
}
158
stage(' GNU Host Compiler Check '){
169
matrix {
1710
axes {
1811
axis{
1912
name 'GNUCompiler'
20-
values 'GCC8;gcc/8', 'GCC13;gcc-toolset/13'
13+
values 'GCC8;gcc/11', 'GCC13;gcc-toolset/14'
2114
}
2215
axis{
2316
name 'SIMD'
@@ -68,7 +61,7 @@ pipeline{
6861
sh """
6962
module load boost/1.85.0
7063
module load ${GNU_COMPILER_MODULE}
71-
cmake3 -S . -B build_cpu_${GNU_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG} -DCMAKE_BUILD_TYPE=Release ${CMAKE_HOST_FLAGS} ${SIMD_FLAGS} -DBUILD_TESTS=ON -D BUILD_EXAMPLES=OFF
64+
cmake3 -S . -B build_cpu_${GNU_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG} -DCMAKE_BUILD_TYPE=Release ${CMAKE_HOST_FLAGS} ${SIMD_FLAGS} -DBUILD_TESTS=ON -D BUILD_BENCHMARKS=OFF
7265
cmake3 --build build_cpu_${GNU_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG}
7366
"""
7467
echo ' Build completed '
@@ -81,7 +74,8 @@ pipeline{
8174
module load boost/1.85.0
8275
module load ${GNU_COMPILER_MODULE}
8376
cd build_cpu_${GNU_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG}/tests/unit-tests
84-
srun -N 1 -t 00:20:00 ${HOST_RUN_FLAGS} --constraint=skylake bash -c 'export OMP_PROC_BIND=spread; export OMP_THREADS=places; ctest --verbose;'
77+
export BUILD_DIR=build_cpu_${GNU_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG}
78+
srun -N 1 -t 00:20:00 ${HOST_RUN_FLAGS} --constraint="intel|cascade" bash -c 'export OMP_PROC_BIND=spread; export OMP_THREADS=places; ctest --verbose;'
8579
"""
8680
echo ' Testing completed '
8781
}

.jenkins/intel_compiler_checks.gvy

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ pipeline{
55
}
66
}
77
stages{
8-
stage( ' Load git modules ' ){
9-
steps {
10-
echo ' Getting git submodules '
11-
sh 'git submodule init'
12-
sh 'git submodule update'
13-
}
14-
}
158
stage(' Intel Host Compiler Check '){
169
matrix {
1710
axes {
1811
axis{
1912
name 'IntelCompiler'
20-
values 'ICC2022;intel/2022.2.0', 'ICC2024;intel/2024.0.2'
13+
values 'ICC2024;intel/2024.2'
2114
}
2215
axis{
2316
name 'HostSpace'
@@ -69,7 +62,7 @@ pipeline{
6962
module load ${INTEL_MODULE}
7063
export CC=icx
7164
export CXX=icpx
72-
cmake3 -S . -B build_cpu_${INTEL_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG} -DCMAKE_BUILD_TYPE=Release ${CMAKE_HOST_FLAGS} ${SIMD_FLAGS} -D BUILD_TESTS=ON -D BUILD_EXAMPLES=OFF
65+
cmake3 -S . -B build_cpu_${INTEL_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG} -DCMAKE_BUILD_TYPE=Release ${CMAKE_HOST_FLAGS} ${SIMD_FLAGS} -D BUILD_TESTS=ON -D BUILD_BENCHMARKS=OFF
7366
cmake3 --build build_cpu_${INTEL_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG}
7467
"""
7568
echo ' Build completed '
@@ -82,7 +75,8 @@ pipeline{
8275
module load boost/1.85.0
8376
module load ${INTEL_MODULE}
8477
cd build_cpu_${INTEL_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG}/tests/unit-tests
85-
srun -N 1 -t 00:20:00 ${HOST_RUN_FLAGS} --constraint=skylake bash -c 'export OMP_PROC_BIND=spread; export OMP_THREADS=places; ctest --verbose;'
78+
export BUILD_DIR=build_cpu_${INTEL_COMPILER_NAME}_${CMAKE_HOST_NAME}_${SIMD_NAME}_${env.BUILD_TAG}
79+
srun -N 1 -t 00:20:00 ${HOST_RUN_FLAGS} --constraint="intel|cascade" bash -c 'export OMP_PROC_BIND=spread; export OMP_THREADS=places; ctest --verbose;'
8680
"""
8781
echo ' Testing completed '
8882
}

.jenkins/nvidia_compiler_checks.gvy

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ pipeline{
55
}
66
}
77
stages{
8-
stage( ' Load git modules ' ){
9-
steps {
10-
echo ' Getting git submodules '
11-
sh 'git submodule init'
12-
sh 'git submodule update'
13-
}
14-
}
158
stage(' NVIDIA Device Compiler Check '){
169
matrix {
1710
axes {
1811
axis{
1912
name 'CUDACompiler'
20-
values 'CUDA117;cudatoolkit/11.7', 'CUDA126;cudatoolkit/12.6'
13+
values 'CUDA117;cudatoolkit/11.8', 'CUDA126;cudatoolkit/12.8'
2114
}
2215
axis{
2316
name 'HostSpace'
@@ -83,7 +76,7 @@ pipeline{
8376
sh """
8477
module load boost/1.85.0
8578
module load ${CUDA_MODULE}
86-
cmake3 -S . -B build_cuda_${CUDA_COMPILER_NAME}_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${SIMD_NAME}_${env.BUILD_TAG} -DCMAKE_BUILD_TYPE=Release ${CMAKE_HOST_FLAGS} ${CMAKE_DEVICE_FLAGS} ${SIMD_FLAGS} -D BUILD_TESTS=ON -D BUILD_EXAMPLES=OFF
79+
cmake3 -S . -B build_cuda_${CUDA_COMPILER_NAME}_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${SIMD_NAME}_${env.BUILD_TAG} -DCMAKE_BUILD_TYPE=Release ${CMAKE_HOST_FLAGS} ${CMAKE_DEVICE_FLAGS} ${SIMD_FLAGS} -D BUILD_TESTS=ON -D BUILD_BENCHMARKS=OFF
8780
cmake3 --build build_cuda_${CUDA_COMPILER_NAME}_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${SIMD_NAME}_${env.BUILD_TAG}
8881
"""
8982
echo ' Build completed '
@@ -96,7 +89,8 @@ pipeline{
9689
module load boost/1.85.0
9790
module load ${CUDA_MODULE}
9891
cd build_cuda_${CUDA_COMPILER_NAME}_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${SIMD_NAME}_${env.BUILD_TAG}/tests/unit-tests
99-
srun -N 1 -t 00:20:00 ${HOST_RUN_FLAGS} ${DEVICE_RUN_FLAGS} bash -c 'export OMP_PROC_BIND=spread; export OMP_THREADS=places; ctest --verbose;'
92+
export BUILD_DIR=build_cuda_${CUDA_COMPILER_NAME}_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${SIMD_NAME}_${env.BUILD_TAG}
93+
srun -N 1 -t 00:30:00 ${HOST_RUN_FLAGS} ${DEVICE_RUN_FLAGS} bash -c 'export OMP_PROC_BIND=spread; export OMP_THREADS=places; ctest --verbose;'
10094
"""
10195
echo ' Testing completed '
10296
}

.jenkins/unittests.gvy

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ pipeline {
66
}
77

88
stages {
9-
stage( ' Load git modules ' ){
10-
steps {
11-
echo ' Getting git submodules '
12-
sh 'git submodule init'
13-
sh 'git submodule update'
14-
}
15-
}
169
stage (' GNU Unittests '){
1710
matrix {
1811
axes {

0 commit comments

Comments
 (0)