Lines Matching +full:- +full:r
3 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
4 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
6 # SPDX-License-Identifier: BSD-2-Clause
24 ceed_magma_h = f"{script_dir}/../ceed-magma.h"
26 with open(ceed_magma_h, "r") as f:
29 r".*(#define ceed_magma_queue_sync\(\.\.\.\)).*",
30 r"\1 " +
36 ceed_magma_gemm_selector_cpp = f"{script_dir}/../ceed-magma-gemm-selector.cpp"
41 with open(ceed_magma_gemm_selector_cpp, "r") as f:
45 r"\1 " + f"{nb}",
51 subprocess.run(["make", "tuning", "OPT=-O0"], cwd=f"{script_dir}")
78 "-arch",
82 "-max-nb",
87 "-build-cmd",
91 "-ceed",
101 f"{script_dir}/output-nb-{nb}.txt")
103 … f"Finished benchmarks for NB = {nb}, backend = {args.ceed} ({time.perf_counter() - start} s)")
126 f.write(f"// auto-generated from data on {args.arch}\n\n")
137 f.write(" {" + re.sub(r"([0-9])(\s+)", r"\1,\2", row) +
138 ("},\n" if count < len(rows) - 1 else "}\n"))
151 f.write(" {" + re.sub(r"([0-9])(\s+)", r"\1,\2", row) +
152 ("},\n" if count < len(rows) - 1 else "}\n"))