def main(option): path = utils.get_tool_build_path("gpuinfo") log = config(path) if log: return log log = build(path) if log: return log log = run(path, option) if log: return log
def clean(): for sample in samples: path = utils.get_sample_build_path(sample[0]) if os.path.exists(path): shutil.rmtree(path) for tool in tools: path = utils.get_tool_build_path(tool[0]) if os.path.exists(path): shutil.rmtree(path) remove_python_cache(utils.get_build_utils_path()) remove_python_cache(utils.get_script_path()) for root, subdirs, files in os.walk(utils.get_root_path()): for file in files: if file.endswith(".log"): os.remove(os.path.join(root, file))
def main(option): path = utils.get_tool_build_path("ze_tracer") if option == "dpc": log = dpc_gemm.main("gpu") elif option == "omp": log = omp_gemm.main("gpu") else: log = ze_gemm.main(None) if log: return log log = config(path) if log: return log log = build(path) if log: return log log = run(path, option) if log: return log