Skip to content

Commit 96449cd

Browse files
committed
device
1 parent 265f1f2 commit 96449cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

benchmarks/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
PROMPT = "ghibli style, a fantasy landscape with castles"
2727
BASE_PATH = os.getenv("BASE_PATH", ".")
2828
TOTAL_GPU_MEMORY = float(os.getenv("TOTAL_GPU_MEMORY", torch.cuda.get_device_properties(0).total_memory / (1024**3)))
29+
DEVICE_NAME = torch.cuda.get_device_name()
2930

3031
REPO_ID = "diffusers/benchmarks"
3132
FINAL_CSV_FILE = "collated_results.csv"
@@ -87,6 +88,7 @@ def generate_csv_dict_model(
8788
"time (secs)": benchmark_info.time,
8889
"memory (gbs)": benchmark_info.memory,
8990
"actual_gpu_memory (gbs)": f"{(TOTAL_GPU_MEMORY):.3f}",
91+
"device": DEVICE_NAME,
9092
"github_sha": GITHUB_SHA,
9193
**kwargs,
9294
}

0 commit comments

Comments
 (0)