Skip to content

Commit 05b991c

Browse files
committed
Set the correct device name
1 parent b25a2ec commit 05b991c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

vllm-benchmarks/upload_benchmark_results.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,13 @@ def get_benchmark_metadata(head_branch: str, head_sha: str) -> Dict[str, Any]:
100100

101101

102102
def get_runner_info() -> Dict[str, Any]:
103+
if torch.cuda.is_available() and torch.version.hip:
104+
name = "rocm"
105+
elif torch.cuda.is_available() and torch.version.cuda:
106+
name = "cuda"
107+
103108
return {
104-
# TODO (huydhn): Figure out a better way to set the name here without
105-
# hard coding it to cuda
106-
"name": "cuda",
109+
"name": name,
107110
"type": torch.cuda.get_device_name(),
108111
"cpu_info": platform.processor(),
109112
"cpu_count": psutil.cpu_count(),

0 commit comments

Comments
 (0)