Skip to content

Commit

Permalink
Use single partition on single core
Browse files Browse the repository at this point in the history
  • Loading branch information
kordejong committed Jan 21, 2025
1 parent efc535a commit b5deac4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def create_dot_graph(lue_dataset_pathname, pdf_graph_pathname):
dot_properties_file.seek(0)

with tempfile.NamedTemporaryFile(suffix=".dot") as dot_graph_file:
print(open(dot_properties_file.name, "r").read())
commands = []
commands.append(
"{} export --meta {} {} {}".format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ def generate_script_slurm_threads(
for benchmark_idx in range(benchmark.worker.nr_benchmarks):
nr_workers = benchmark.worker.nr_workers(benchmark_idx)
nr_threads = nr_workers
result_pathname = experiment.benchmark_result_pathname(
result_prefix, cluster.name, benchmark.scenario_name, nr_workers, "json"
)

a = 3
# result_pathname = experiment.benchmark_result_pathname(
# result_prefix, cluster.name, benchmark.scenario_name, nr_workers, "json"
# )

job_steps += [
# Run the benchmark, resulting in a json file
Expand All @@ -46,7 +44,7 @@ def generate_script_slurm_threads(
benchmark,
experiment,
array_shape,
partition_shape,
partition_shape if nr_workers > 1 else array_shape,
nr_workers=nr_workers,
),
)
Expand Down Expand Up @@ -115,9 +113,9 @@ def generate_script_slurm_numa_nodes(
for benchmark_idx in range(benchmark.worker.nr_benchmarks):
nr_workers = benchmark.worker.nr_workers(benchmark_idx)
nr_localities = nr_workers
result_pathname = experiment.benchmark_result_pathname(
result_prefix, cluster.name, benchmark.scenario_name, nr_workers, "json"
)
# result_pathname = experiment.benchmark_result_pathname(
# result_prefix, cluster.name, benchmark.scenario_name, nr_workers, "json"
# )

job_steps += [
# Run the benchmark, resulting in a json file
Expand Down Expand Up @@ -220,7 +218,6 @@ def generate_script_slurm_cluster_nodes(
for benchmark_idx in range(benchmark.worker.nr_benchmarks):
nr_workers = benchmark.worker.nr_workers(benchmark_idx)
nr_localities = nr_workers * benchmark.worker.nr_numa_nodes

result_pathname = experiment.benchmark_result_pathname(
result_prefix, cluster.name, benchmark.scenario_name, nr_workers, "json"
)
Expand Down Expand Up @@ -357,7 +354,7 @@ def generate_script_shell(
benchmark,
experiment,
array_shape,
partition_shape,
partition_shape if nr_workers > 1 else array_shape,
nr_workers=nr_workers,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def generate_script_slurm_threads(
benchmark,
experiment,
array_shape,
partition_shape,
partition_shape if nr_workers > 1 else array_shape,
nr_workers=nr_workers,
),
)
Expand Down Expand Up @@ -396,7 +396,7 @@ def generate_script_shell(
benchmark,
experiment,
array_shape,
partition_shape,
partition_shape if nr_workers > 1 else array_shape,
nr_workers=nr_workers,
),
),
Expand Down

0 comments on commit b5deac4

Please sign in to comment.