Skip to content
Snippets Groups Projects
Commit e5fa0062 authored by Patrick Godwin's avatar Patrick Godwin Committed by Patrick Godwin
Browse files

dags/layers/inspiral.py: fix issue on how many svd bins to group up in...

dags/layers/inspiral.py: fix issue on how many svd bins to group up in inspiral jobs so that max concurrency is used properly
parent abe59671
No related branches found
No related tags found
1 merge request!115Change inspiral DAG architecture regarding expected SNR calc, simplify generation of workflows, add documentation
......@@ -198,7 +198,7 @@ def filter_layer(config, dag, ref_psd_cache, svd_bank_cache):
else:
max_concurrency = 20
num_per_group = 1 + (len(config.svd.bins) // max_concurrency)
num_per_group = min(1 + len(config.svd.bins) // 20, max_concurrency)
if num_per_group > 1:
common_opts.append(Option("local-frame-caching"))
......@@ -302,7 +302,7 @@ def filter_injections_layer(config, dag, ref_psd_cache, svd_bank_cache):
else:
max_concurrency = 20
num_per_group = 1 + (len(config.svd.bins) // max_concurrency)
num_per_group = min(1 + len(config.svd.bins) // 20, max_concurrency)
if num_per_group > 1:
common_opts.append(Option("local-frame-caching"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment