in Benchmarks/NVIDIA/NVBandwidth.py [0:0]
def run(self):
current = os.getcwd()
os.chdir(os.path.join(current, 'nvbandwidth'))
print("Running NVBandwidth...")
buffer=[]
results = subprocess.run('./nvbandwidth -t device_to_host_memcpy_ce host_to_device_memcpy_ce device_to_device_bidirectional_memcpy_read_ce', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
tools.write_log(tools.check_error(results))
log = results.stdout.decode('utf-8')
buffer.append(log)
os.chdir(current)
file = open("Outputs/NVBandwidth_" + self.machine_name + ".txt", "w")
for item in buffer:
file.write(item)
print(item)
self.buffer=buffer
os.chdir(current)