Relax to include more AMD GPUs (#2319)

This commit is contained in:
HAI
2024-12-02 19:05:58 -08:00
committed by GitHub
parent 85e1a6f3aa
commit 69e2d4fb66

View File

@@ -879,7 +879,7 @@ def get_amdgpu_memory_capacity():
# Run rocm-smi and capture the output
result = subprocess.run(
[
"rocminfo | grep 'gfx94' -A 100 | grep 'Pool 1' -A 5 | grep 'Size:' | awk '{print $2}'"
"rocminfo | grep 'gfx' -A 100 | grep 'Pool 1' -A 5 | grep 'Size:' | awk '{print $2}'"
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,