From 5551d9d1ab557b3c76c3bfcab0c37c95b316751c Mon Sep 17 00:00:00 2001 From: Yifan Wang Date: Mon, 15 Jul 2024 11:31:19 +0200 Subject: [PATCH] try to fix resource contention --- bin/bank/pycbc_brute_bank | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/bank/pycbc_brute_bank b/bin/bank/pycbc_brute_bank index 2f248c36a14..9702bf9cff5 100755 --- a/bin/bank/pycbc_brute_bank +++ b/bin/bank/pycbc_brute_bank @@ -223,7 +223,6 @@ class TriangleBank(object): inc = Shrinker(r*1, args.nprocesses) while 1: j = inc.pop() - print(j) if j is None: hp.matches = matches[r] hp.indices = r @@ -233,7 +232,7 @@ class TriangleBank(object): return False match_cache = {} - pool = pycbc.pool.choose_pool(args.nprocesses) + pool = pycbc.pool.choose_pool(min(len(j), args.nprocesses)) for return_idx, return_m in pool.imap_unordered( match_wrapper, ({'idx': idx,