This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Benchmark matrix multiplication with locked GPU clock for stable performance. | |
Requires: pip install nvidia-ml-py torch numpy | |
""" | |
import pynvml | |
import torch | |
import random | |
import os | |
import numpy as np | |
from torch.profiler import profile, ProfilerActivity, schedule |