mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-06 00:03:22 +00:00
[ROCm] fix shell bug (#16641)
`set -ex` with `grep` will exit when grep doesn't meet any string.
This commit is contained in:
parent
3b729e5d2f
commit
2fd5e1cc39
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue