Skip to content

Commit

Permalink
[ROCm] fix shell bug (microsoft#16641)
Browse files Browse the repository at this point in the history
`set -ex` with `grep` will exit when grep doesn't meet any string.
  • Loading branch information
PeixuanZuo authored Jul 10, 2023
1 parent 3b729e5 commit 2fd5e1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -ex

rocm_version=$1
mi200_gpus=$(rocm-smi --showproductname | grep -c "MI250")
mi200_gpus=$(rocm-smi --showproductname | grep -c "MI250" | xargs)

echo "mi200_gpus: $mi200_gpus"

Expand Down

0 comments on commit 2fd5e1c

Please sign in to comment.