未验证 提交 72e462cd 编写于 作者: Q Qi Li 提交者: GitHub

[ROCM] fix to get rocm number in script, test=develop (#39938)

上级 4617c1b2
......@@ -1266,7 +1266,7 @@ function card_test() {
elif [ "${WITH_ASCEND_CL}" == "ON" ];then
CUDA_DEVICE_COUNT=1
elif [ "${WITH_ROCM}" == "ON" ];then
CUDA_DEVICE_COUNT=4
CUDA_DEVICE_COUNT=$(rocm-smi -i | grep GPU | wc -l)
else
CUDA_DEVICE_COUNT=$(nvidia-smi -L | wc -l)
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册