Skip to content

Commit

Permalink
Merge branch 'develop' into pt/code-analysis-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltomin authored Jan 28, 2025
2 parents 78fb3d7 + 5bfdb01 commit d9b8d1c
Show file tree
Hide file tree
Showing 43 changed files with 943 additions and 361 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"build": {
"dockerfile": "Dockerfile",
"args": {
"GEOS_TPL_TAG": "288-584"
"GEOS_TPL_TAG": "290-594"
}
},
"runArgs": [
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ jobs:
ENABLE_TRILINOS: OFF
BUILD_SHARED_LIBS: ON

- name: Sherlock CPU (centos 7.9.2009, gcc 10.1.0, open-mpi 4.1.2, openblas 0.3.10)
CMAKE_BUILD_TYPE: Release
DOCKER_REPOSITORY: geosx/sherlock-gcc10.1.0-openmpi4.1.2-openblas0.3.10-zlib1.2.11
ENABLE_HYPRE: ON
ENABLE_TRILINOS: OFF
GCP_BUCKET: geosx/Sherlock-CPU
HOST_CONFIG: host-configs/Stanford/sherlock-gcc10.cmake
BUILD_SHARED_LIBS: ON

uses: ./.github/workflows/build_and_test.yml
with:
BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS }}
Expand All @@ -192,6 +201,7 @@ jobs:
ENABLE_HYPRE: ${{ matrix.ENABLE_HYPRE }}
ENABLE_TRILINOS: ${{ matrix.ENABLE_TRILINOS }}
GCP_BUCKET: ${{ matrix.GCP_BUCKET }}
HOST_CONFIG: ${{ matrix.HOST_CONFIG }}
RUNS_ON: ubuntu-22.04
secrets: inherit

Expand Down Expand Up @@ -346,6 +356,21 @@ jobs:
DOCKER_CERTS_DIR: "/etc/pki/ca-trust/source/anchors"
DOCKER_CERTS_UPDATE_COMMAND: "update-ca-trust"

- name: Sherlock GPU (centos 7.9.2009, gcc 10.1.0, open-mpi 4.1.2, openblas 0.3.10, cuda 12.4.0,)
BUILD_AND_TEST_CLI_ARGS: "--no-run-unit-tests --no-install-schema"
BUILD_GENERATOR: "--ninja"
CMAKE_BUILD_TYPE: Release
DOCKER_REPOSITORY: geosx/sherlock-gcc10.1.0-openmpi4.1.2-cuda12.4.0-openblas0.3.10-zlib1.2.11
ENABLE_HYPRE_DEVICE: CUDA
ENABLE_HYPRE: ON
ENABLE_TRILINOS: OFF
GCP_BUCKET: geosx/Sherlock-GPU
HOST_CONFIG: host-configs/Stanford/sherlock-gcc10-cuda12-sm70.cmake
RUNS_ON: streak2
NPROC: 8
DOCKER_RUN_ARGS: "--cpus=8 --memory=128g --runtime=nvidia -v /etc/pki/ca-trust/source/anchors/:/etc/pki/ca-trust/source/anchors/llnl:ro"
DOCKER_CERTS_DIR: "/etc/pki/ca-trust/source/anchors"
DOCKER_CERTS_UPDATE_COMMAND: "update-ca-trust"

# Below this line, jobs that deploy to Google Cloud.

Expand Down
2 changes: 1 addition & 1 deletion .integrated_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
baselines:
bucket: geosx
baseline: integratedTests/baseline_integratedTests-pr3416-9790-5bdb1fa
baseline: integratedTests/baseline_integratedTests-pr3395-9832-31f145e

allow_fail:
all: ''
Expand Down
4 changes: 4 additions & 0 deletions BASELINE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This file is designed to track changes to the integrated test baselines.
Any developer who updates the baseline ID in the .integrated_tests.yaml file is expected to create an entry in this file with the pull request number, date, and their justification for rebaselining.
These notes should be in reverse-chronological order, and use the following time format: (YYYY-MM-DD).

PR #3395 (2024-01-22)
=====================
Add new fields and change the default input for some tests.

PR #3416 (2024-01-21)
=====================
Refactoring of induced seismicity EQ solvers to add coupling.
Expand Down
50 changes: 0 additions & 50 deletions host-configs/Stanford/sherlock-base.cmake

This file was deleted.

13 changes: 0 additions & 13 deletions host-configs/Stanford/sherlock-gcc10-cuda11-ampere.cmake

This file was deleted.

13 changes: 0 additions & 13 deletions host-configs/Stanford/sherlock-gcc10-cuda11-volta.cmake

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
include(${CMAKE_CURRENT_LIST_DIR}/sherlock-gcc10-ompi4.1.2-openblas0.3.10.cmake)

# OpenMP options
set(ENABLE_OPENMP OFF CACHE BOOL "" FORCE)
include(${CMAKE_CURRENT_LIST_DIR}/sherlock-gcc10.cmake)

# CUDA options
set(ENABLE_CUDA ON CACHE BOOL "" FORCE)
set(CUDA_VERSION "11.7.1" CACHE PATH "")
set(CUDA_VERSION "12.4.0" CACHE PATH "")
set(CUDA_HOME "${SOFTWARE_ROOT}/cuda/${CUDA_VERSION}" CACHE PATH "")
set(CMAKE_CUDA_ARCHITECTURES "70" CACHE STRING "")
set(CUDA_ARCH "sm_${CMAKE_CUDA_ARCHITECTURES}" CACHE STRING "")
set(CUDA_TOOLKIT_ROOT_DIR "${CUDA_HOME}" CACHE STRING "")

set(CONFIG_NAME "sherlock-gcc10-ompi4.1.2-openblas0.3.10-cuda${CUDA_VERSION}-${CUDA_ARCH}" CACHE PATH "" FORCE)
set(CONFIG_NAME "sherlock-gcc${GCC_VERSION}-ompi${OMPI_VERSION}-openblas${OPENBLAS_VERSION}-cuda${CUDA_VERSION}-${CUDA_ARCH}" CACHE PATH "" FORCE)

set(CMAKE_CUDA_HOST_COMPILER ${MPI_CXX_COMPILER} CACHE STRING "")
set(CMAKE_CUDA_COMPILER ${CUDA_TOOLKIT_ROOT_DIR}/bin/nvcc CACHE STRING "")
Expand All @@ -20,6 +17,9 @@ set(CMAKE_CUDA_FLAGS_RELEASE "-O3 -DNDEBUG -Xcompiler -DNDEBUG -Xcompiler -O3" C
set(CMAKE_CUDA_FLAGS_RELWITHDEBINFO "-g -lineinfo ${CMAKE_CUDA_FLAGS_RELEASE}" CACHE STRING "")
set(CMAKE_CUDA_FLAGS_DEBUG "-g -G -O0 -Xcompiler -O0" CACHE STRING "")

# OpenMP options
set(ENABLE_OPENMP OFF CACHE BOOL "" FORCE)

# LAI options
set(GEOS_LA_INTERFACE "Hypre" CACHE STRING "" FORCE)
set(ENABLE_HYPRE ON CACHE BOOL "" FORCE)
Expand Down

This file was deleted.

This file was deleted.

46 changes: 42 additions & 4 deletions host-configs/Stanford/sherlock-gcc10.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@
set(CONFIG_NAME "sherlock-gcc10" CACHE PATH "")
# User defined versions
set(GCC_VERSION "10.1.0" CACHE STRING "Version of GCC")
set(OMPI_VERSION "4.1.2" CACHE STRING "Version of Open MPI")
set(OPENBLAS_VERSION "0.3.10" CACHE STRING "Version of OpenBLAS")

set(GCC_ROOT "/share/software/user/open/gcc/10.1.0" CACHE PATH "")
set(MPI_ROOT "/share/software/user/open/openmpi/4.1.0" CACHE PATH "")
set(CONFIG_NAME "sherlock-gcc${GCC_VERSION}-ompi${OMPI_VERSION}-openblas${OPENBLAS_VERSION}" CACHE PATH "")

include(/home/groups/tchelepi/geosx/host-configs/sherlock-base.cmake)
set(SOFTWARE_ROOT /share/software/user/open CACHE PATH "")
set(GCC_ROOT "${SOFTWARE_ROOT}/gcc/${GCC_VERSION}" CACHE PATH "")
set(MPI_ROOT "${SOFTWARE_ROOT}/openmpi/${OMPI_VERSION}" CACHE PATH "")

site_name(HOST_NAME)

# Compilers
set(CMAKE_C_COMPILER "${GCC_ROOT}/bin/gcc" CACHE PATH "")
set(CMAKE_CXX_COMPILER "${GCC_ROOT}/bin/g++" CACHE PATH "")
set(CMAKE_Fortran_COMPILER "${GCC_ROOT}/bin/gfortran" CACHE PATH "")

# OpenMP options
#set(ENABLE_OPENMP ON CACHE BOOL "")

# MPI options
set(ENABLE_MPI ON CACHE PATH "" FORCE)
set(MPI_C_COMPILER "${MPI_ROOT}/bin/mpicc" CACHE PATH "")
set(MPI_CXX_COMPILER "${MPI_ROOT}/bin/mpic++" CACHE PATH "")
set(MPI_Fortran_COMPILER "${MPI_ROOT}/bin/mpifort" CACHE PATH "")
set(MPIEXEC "${MPI_ROOT}/bin/mpirun" CACHE PATH "")
set(MPIEXEC_NUMPROC_FLAG "-n" CACHE STRING "")
set(ENABLE_WRAP_ALL_TESTS_WITH_MPIEXEC ON CACHE BOOL "")

# CUDA options
set(ENABLE_CUDA OFF CACHE PATH "" FORCE)

# Blas/Lapack options
set(OPENBLAS_ROOT "${SOFTWARE_ROOT}/openblas/${OPENBLAS_VERSION}" CACHE STRING "")
set(BLAS_LIBRARIES "${OPENBLAS_ROOT}/lib/libopenblas.so" CACHE STRING "")
set(LAPACK_LIBRARIES "${OPENBLAS_ROOT}/lib/libopenblas.so" CACHE STRING "")

set(ENABLE_VALGRIND OFF CACHE BOOL "")
set(ENABLE_CALIPER ON CACHE BOOL "")

if (DEFINED ENV{GEOSX_TPL_DIR})
set(GEOS_TPL_DIR "$ENV{GEOSX_TPL_DIR}" CACHE PATH "" FORCE)
endif()
include(${CMAKE_CURRENT_LIST_DIR}/../tpls.cmake)
13 changes: 0 additions & 13 deletions host-configs/Stanford/sherlock-gcc8-cuda10-volta.cmake

This file was deleted.

7 changes: 6 additions & 1 deletion host-configs/Stanford/sherlock-modules.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module --force purge
module load devel
module load math
module load system
module load git
module load git-lfs
Expand All @@ -9,4 +12,6 @@ module load libevent/2.1.12 # needed for silo
module load py-mpi4py/3.1.3_py39
module load py-h5py/3.7.0_py39
module unload cuda
module load cuda/11.7.1
module load cuda/12.4.0
module load ninja/1.9.0

4 changes: 2 additions & 2 deletions inputFiles/inducedSeismicity/SCEC_BP6_QD_S_explicit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="1.0"
initialRockToughness="1.0"
mpiCommOrder="1"
fractureRegion="Fault"/>

Expand Down Expand Up @@ -136,4 +136,4 @@
targetExactTimestep="0"
target="/Outputs/timeHistoryOutput"/>
</Events>
</Problem>
</Problem>
4 changes: 2 additions & 2 deletions inputFiles/inducedSeismicity/SCEC_BP6_QD_S_implicit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="1.0"
initialRockToughness="1.0"
mpiCommOrder="1"
fractureRegion="Fault"/>

Expand Down Expand Up @@ -137,4 +137,4 @@
targetExactTimestep="0"
target="/Outputs/timeHistoryOutput"/>
</Events>
</Problem>
</Problem>
4 changes: 2 additions & 2 deletions inputFiles/inducedSeismicity/SCEC_BP7_QD_base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<SurfaceGenerator
name="SurfaceGen"
targetRegions="{ Domain }"
rockToughness="1.0"
initialRockToughness="1.0"
mpiCommOrder="1"
fractureRegion="Fault"/>
</Solvers>
Expand Down Expand Up @@ -248,4 +248,4 @@
targetExactTimestep="0"
target="/Outputs/restart"/> -->
</Events>
</Problem>
</Problem>
Loading

0 comments on commit d9b8d1c

Please sign in to comment.