We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb6ef8 commit b4b9813Copy full SHA for b4b9813
examples/others/lmcache/disagg_prefill_lmcache_v1/disagg_example_nixl.sh
@@ -21,8 +21,14 @@ check_hf_token() {
21
}
22
23
check_num_gpus() {
24
- # can you check if the number of GPUs are >=2 via nvidia-smi?
25
- num_gpus=$(nvidia-smi --query-gpu=name --format=csv,noheader | wc -l)
+ # can you check if the number of GPUs are >=2 via nvidia-smi/rocm-smi?
+ which rocm-smi > /dev/null 2>&1
26
+ if [ $? -ne 0 ]; then
27
+ num_gpus=$(nvidia-smi --query-gpu=name --format=csv,noheader | wc -l)
28
+ else
29
+ num_gpus=$(rocm-smi --showid | grep Instinct | wc -l)
30
+ fi
31
+
32
if [ "$num_gpus" -lt 2 ]; then
33
echo "You need at least 2 GPUs to run disaggregated prefill."
34
exit 1
0 commit comments