in Benchmarks/NVIDIA/GEMMCublasLt.py [0:0]
def build(self):
bindir = tools.create_dir("bin")
self.bindir = bindir
path = "superbenchmark"
isdir = os.path.isdir(path)
if not isdir:
results = subprocess.run(
[
"git",
"clone",
"https://github.com/gitaumark/superbenchmark",
path,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
tools.write_log(tools.check_error(results))
current = os.getcwd()
build_path = os.path.join(
current,
"superbenchmark/superbench/benchmarks/micro_benchmarks/cublaslt_gemm",
)
os.chdir(build_path)
results = subprocess.run(
["cmake", "-S", "./"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
tools.write_log(tools.check_error(results))
results = subprocess.run(
["make"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
tools.write_log(tools.check_error(results))
print(results.stderr.decode('utf-8'))
results = subprocess.run(
["mv", "cublaslt_gemm", bindir],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
os.chdir(current)