Skip to content

Commit

Permalink
Merge pull request #112 from PrincetonUniversity/adjoint-simulations
Browse files Browse the repository at this point in the history
Adjoint simulations
  • Loading branch information
Rohit-Kakodkar authored Oct 11, 2024
2 parents 853c25b + 813fb4f commit 9ca7f27
Show file tree
Hide file tree
Showing 1,332 changed files with 237,685 additions and 19,971 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
run: git submodule init
&& git submodule update
- name: Configure
run: cmake -S . -B build -DBUILD_TESTS=ON
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTS=ON
- name: Build
run: cmake --build build
- name: Run all tests
run: cd build/tests/unit-tests
&& ctest
&& ctest --verbose
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ examples/*/Par_File
*.sqlite
*.nsys-rep
*.ncu-rep
.snakemake/
autotuning/
profiles
.cache/
256 changes: 0 additions & 256 deletions .jenkins/regression_tests.gvy

This file was deleted.

4 changes: 2 additions & 2 deletions .jenkins/unittests.gvy
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pipeline {
sh """
module load boost/1.73.0
cd build_GNU_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${env.GIT_COMMIT}/tests/unit-tests
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; ctest --rerun-failed --output-on-failure;'
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;'
"""
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@ pipeline {
module load boost/1.73.0
module load intel/2022.2.0
cd build_INTEL_${CMAKE_HOST_NAME}_${CMAKE_DEVICE_NAME}_${env.GIT_COMMIT}/tests/unit-tests
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 -E "DISPLACEMENT_TESTS"; ctest --rerun-failed --output-on-failure; ./displacement_newmark_tests'
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;'
"""
}
}
Expand Down
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ repos:
hooks:
- id: clang-format
types_or: [c++]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.7
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
Loading

0 comments on commit 9ca7f27

Please sign in to comment.