Skip to content

Commit

Permalink
add docker run arguments for cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed May 23, 2024
1 parent 718d916 commit d309f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/continuousIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
CMAKE_C_COMPILER: /usr/bin/gcc
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
# BUILD_AND_TEST_ARGS: "--disable-unit-tests"
DOCKER_RUN_ARGS: "--cpus=1 --memory=64g --runtime=nvidia --gpus all"

- name: ubuntu22-gcc11-cuda11-dbg (ubuntu-22, gcc 11.4.0, cuda-11.8.0, Debug)
DOCKER_REPOSITORY: geosx/ubuntu:22.04-cuda11.8
Expand Down Expand Up @@ -205,6 +205,7 @@ jobs:
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE }}
ENABLE_CUDA: ${{ matrix.ENABLE_CUDA }}
BUILD_AND_TEST_ARGS: ${{ matrix.BUILD_AND_TEST_ARGS }} --build-exe
DOCKER_RUN_ARGS: ${{ matrix.DOCKER_RUN_ARGS }}
HOST_CONFIG: hostconfigs/environment.cmake
run: ./scripts/ci_build_and_test.sh

Expand Down
1 change: 1 addition & 0 deletions scripts/ci_build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ docker run \
--name=${CONTAINER_NAME} \
--volume=${BUILD_DIR}:${BUILD_DIR_MOUNT_POINT} \
--cap-add=ALL \
${DOCKER_RUN_ARGS} \
-e HOST_CONFIG=${HOST_CONFIG} \
-e CMAKE_C_COMPILER=${CMAKE_C_COMPILER} \
-e CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} \
Expand Down

0 comments on commit d309f39

Please sign in to comment.