Skip to content

Commit

Permalink
Merge pull request #847 from casparvl/start_test_step_container_with_…
Browse files Browse the repository at this point in the history
…nv_option

Make sure eessi_container.sh will add --nv flag for the test step, when GPUs are available
  • Loading branch information
boegel authored Jan 13, 2025
2 parents 9377d3f + 24e4508 commit ad5a760
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bot/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ fi
# Reframe configuration
TEST_STEP_ARGS+=("--extra-bind-paths" "/sys/fs/cgroup:/hostsys/fs/cgroup:ro")

# add options required to handle NVIDIA support
if command_exists "nvidia-smi"; then
echo "Command 'nvidia-smi' found, using available GPU"
TEST_STEP_ARGS+=("--nvidia" "run")
fi

# prepare arguments to test_suite.sh (specific to test step)
declare -a TEST_SUITE_ARGS=()
if [[ ${EESSI_SOFTWARE_SUBDIR_OVERRIDE} =~ .*/generic$ ]]; then
Expand Down

0 comments on commit ad5a760

Please sign in to comment.