From 7b987e3766c2f1864ac478dfd292bf008b6c4372 Mon Sep 17 00:00:00 2001 From: Alexandre Guillemot <alexandre.guillemot@inria.fr> Date: Thu, 23 Jan 2025 15:51:05 +0100 Subject: [PATCH] add adaptive + small modif to run_entries --- packages/adaptive.py | 11 +++++++++++ run_entries.py | 6 +----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 packages/adaptive.py diff --git a/packages/adaptive.py b/packages/adaptive.py new file mode 100644 index 00000000..8b221f9c --- /dev/null +++ b/packages/adaptive.py @@ -0,0 +1,11 @@ +import argparse + +parser = argparse.ArgumentParser() +parser.add_argument("file", help = "A file containing data test") +args = parser.parse_args() + +command = open("command.sh", "w") +command.write(f"""#!/bin/sh + +/home/aguillem/documents/travail/these/numerical_algebraic_geometry/algpath/algpath/target/release/algpath {args.file} --diff backward --homogenize --arithmetic arb-reckless --jobs 1""") +command.close() \ No newline at end of file diff --git a/run_entries.py b/run_entries.py index 5832dad2..fc268fe5 100644 --- a/run_entries.py +++ b/run_entries.py @@ -37,10 +37,6 @@ for i, pkg_name in enumerate(pkg_list): print(f"Data {j + 1}/{len(data_list)}") pkg_path = (Path("packages") / Path(f"{pkg_name}")).with_suffix(".py") data_name = Path(data_path) - print(data_name) - print(pkg_path) - print(data_name / pkg_name) - print(str(("data" / Path(data_path)).with_suffix(".json"))) - if not ((data_name / pkg_name).exists() and args.n): + if not ((Path("benchmarks") / data_name / pkg_name).exists() and args.n): subprocess.run(["python3", "runtest.py", str(pkg_path), str(("data" / Path(data_path)).with_suffix(".json"))] + ["--timeout", str(args.timeout)]*( args.timeout != None) + ["--mem", str(args.mem)]*(args.mem != None) + ["--perf"]*args.perf) -- GitLab