Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/scripts/upload_benchmark_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@

import boto3
import psutil
import torch

try:
import torch

torch_available = True
except ImportError:
torch_available = False

from git import Repo

logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -162,7 +169,7 @@ def get_benchmark_metadata(


def get_runner_info(device_name: str, device_type: str) -> Dict[str, Any]:
if torch.cuda.is_available():
if torch_available and torch.cuda.is_available():
if torch.version.hip:
name = "rocm"
elif torch.version.cuda:
Expand Down