Skip to content

Commit

Permalink
Make sure eessi_container.sh will add --nv flag for the test step, wh…
Browse files Browse the repository at this point in the history
…en GPUs are available. This is needed to run the GPU test
  • Loading branch information
Caspar van Leeuwen committed Jan 13, 2025
1 parent 3af9cf6 commit b3bb522
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 b3bb522

Please sign in to comment.