diff --git a/.ci/scripts/run_tests_ucc_mpi.sh b/.ci/scripts/run_tests_ucc_mpi.sh index 41622a2b9a..89c537301a 100755 --- a/.ci/scripts/run_tests_ucc_mpi.sh +++ b/.ci/scripts/run_tests_ucc_mpi.sh @@ -29,7 +29,7 @@ CX7_DEV="" # Find first available active device for d in $(ssh $HEAD_NODE "ibstat -l"); do state=$(ssh $HEAD_NODE "ibstat $d" | grep 'State:' | awk '{print $2}') - type=$(ssh $HEAD_NODE "ibstat $d" | grep 'CA type:' | awk '{print $2}') + type=$(ssh $HEAD_NODE "ibstat $d" | grep 'CA type:' | awk '{print $3}') if [ $state == 'Active' ]; then if [ "x$DEV" == "x" ]; then DEV=$d