in Benchmarks/NVIDIA/HBMBandwidth.py [0:0]
def run(self):
current = os.getcwd()
print("Running HBM Bandwidth...")
runs_executed = 0
buffer = []
while runs_executed < self.num_runs:
results = subprocess.run(
["./cuda-stream"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
tools.write_log(tools.check_error(results))
log = results.stdout.decode("utf-8").strip().split("\n")[14:19]
for i in range(len(log)):
temp = log[i].split()
log[i] = [temp[0], temp[1]]
buffer.append(log)
runs_executed += 1
time.sleep(int(self.interval))
self.buffer = buffer
os.chdir(current)
self.save_results()