Skip to content

Commit

Permalink
regtesting: Call nvidia-smi and rocm-smi when available
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Oct 25, 2022
1 parent 10874d4 commit 1d3909a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/regtesting/print_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,25 @@ fi

echo "--------------------------- ARCH-file ------------------------------------"
cat "./arch/${ARCH}.${VERSION}"

if [ -x "$(command -v nvidia-smi)" ]; then
echo "--------------------------- NVIDIA-SMI -----------------------------------"
nvidia-smi
echo ""
fi

if [ -x "$(command -v rocm-smi)" ]; then
echo "--------------------------- ROCm-SMI -------------------------------------"
rocm-smi
echo ""
fi

echo "-------------------------- Build-Tools -----------------------------------"
make toolversions ARCH="${ARCH}" VERSION="${VERSION}"

echo "----------------------- External Modules ---------------------------------"
make extversions ARCH="${ARCH}" VERSION="${VERSION}"

echo "---------------------------- Modules -------------------------------------"
if [ "$(type -t module)" = 'function' ]; then
module list 2>&1
Expand Down

0 comments on commit 1d3909a

Please sign in to comment.