Skip to content

Commit

Permalink
reduce the number of cores used
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed Dec 18, 2023
1 parent 38eb766 commit 017d253
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ jobs:
fi
# Remove the container and the workspace to avoid any conflict with the next run.
echo github.workspace = ${{ github.workspace }}
rm -rf ${{ github.workspace }}/*
docker rm -f ${CONTAINER_NAME}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
ENABLE_HYPRE: ON
ENABLE_TRILINOS: OFF
GCP_BUCKET: geosx/ubuntu22.04-gcc11
DOCKER_RUN_ARGS: "--cpus=8 --memory=128g"
DOCKER_RUN_ARGS: "--cpus=4 --memory=128g"


# - name: Ubuntu (22.04, gcc 12.3.0, open-mpi 4.1.2)
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
ENABLE_TRILINOS: OFF
GCP_BUCKET: geosx/integratedTests
RUNS_ON: streak
DOCKER_RUN_ARGS: "--cpus=8 --memory=128g"
DOCKER_RUN_ARGS: "--cpus=4 --memory=128g"

# If the 'ci: ready to be merged' PR label is found, the cuda jobs run immediately along side linux jobs.
# Note: CUDA jobs should only be run if PR is ready to merge.
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
ENABLE_HYPRE: ON
ENABLE_TRILINOS: OFF
RUNS_ON: streak
DOCKER_RUN_ARGS: "--cpus=8 --memory=128g"
DOCKER_RUN_ARGS: "--cpus=4 --memory=128g"


# - name: Centos (7.7, gcc 8.3.1, open-mpi 1.10.7, cuda 11.8.89)
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci_build_and_test_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ if [[ "${RUN_INTEGRATED_TESTS}" = true ]]; then
or_die apt-get install -y virtualenv python3-dev python-is-python3
ATS_PYTHON_HOME=/tmp/run_integrated_tests_virtualenv
or_die virtualenv ${ATS_PYTHON_HOME}
ATS_CMAKE_ARGS="-DATS_ARGUMENTS=\"--machine openmpi --ats openmpi_mpirun=/usr/bin/mpirun --ats openmpi_args=--allow-run-as-root --ats openmpi_procspernode=4 --ats openmpi_maxprocs=4\" -DPython3_ROOT_DIR=${ATS_PYTHON_HOME}"
ATS_CMAKE_ARGS="-DATS_ARGUMENTS=\"--machine openmpi --ats openmpi_mpirun=/usr/bin/mpirun --ats openmpi_args=--allow-run-as-root --ats openmpi_procspernode=$(nproc) --ats openmpi_maxprocs=$(nproc)\" -DPython3_ROOT_DIR=${ATS_PYTHON_HOME}"
fi

# The -DBLT_MPI_COMMAND_APPEND="--allow-run-as-root;--oversubscribe" option is added for OpenMPI.
Expand Down

0 comments on commit 017d253

Please sign in to comment.