Skip to content

Conversation

@lstanisi-amd
Copy link
Collaborator

@gcapodagAMD please modify and integrate the way you see fit. Rocpd was introduced in ROCm 7.0, not sure if we want to capture this inside this test

@gcapodagAMD
Copy link
Collaborator

thanks @lstanisi-amd can you please modify like this since as far as I understand this should only work for ROCm>=7?

#!/bin/bash

module list 2>&1 | grep -q -w "rocm"
if [ $? -eq 1 ]; then
  echo "rocm module is not loaded"
  echo "loading default rocm module"
  module load rocm
fi

ROCM_VERSION=`cat ${ROCM_PATH}/.info/version | head -1 | cut -f1 -d'-' `
if [ "$(printf '%s\n' "7.0" "$ROCM_VERSION" | sort -V | head -n1)" = "7.0" ]; then
   rocpd --version
else
   echo "Skip"
fi


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants