Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Maas committed Oct 10, 2024
1 parent 8b2cf7b commit 706c261
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run_evo.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,21 @@ def run_mtk_evo(graph, timelimit, k, epsilon, threads, mt_kahypar, config, detec
"-k" + str(k),
"-e" + str(epsilon),
"--seed=0",
"-okm1",
"-mdirect",
"--s-num-threads=" + str(threads),
"--verbose=false",
"--time-limit=" + str(int(timelimit / repetitions)),
"--evo-repetitions=" + str(repetitions),
"--evo-frequency-file=" + os.path.dirname(graph) + "/" + freq_file,
]
print(shlex.join(cmd))
if detect_instance_type:
if graph.endswith(".metis") or graph.endswith(".graph"):
cmd.append("--instance-type=graph")
cmd.append("--input-file-format=metis")
cmd.append("-ocut")
else:
cmd.append("-okm1")
print(shlex.join(cmd))

mt_kahypar_proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True, preexec_fn=os.setsid)

Expand Down

0 comments on commit 706c261

Please sign in to comment.