Skip to content

Commit f30233c

Browse files
committed
debugging......
1 parent e78056b commit f30233c

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

libensemble/comms/comms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ def terminate(self, timeout=None):
255255
self.handle.join(timeout=timeout)
256256
if self.running:
257257
raise Timeout()
258+
self.handle = None
259+
self.inbox = None
260+
self.outbox = None
258261

259262

260263
class QCommProcess(QCommLocal):
@@ -274,3 +277,6 @@ def terminate(self, timeout=None):
274277
self.handle.join(timeout=timeout)
275278
if self.running:
276279
raise Timeout()
280+
self.handle = None
281+
self.inbox = None
282+
self.outbox = None

libensemble/comms/logs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def exit_logger():
204204
stat_timer.stop()
205205
stat_logger.info(f"Exiting ensemble at: {stat_timer.date_end} Time Taken: {stat_timer.elapsed}")
206206
stat_logger.handlers[0].close()
207+
print("Manager logger closed")
207208

208209
# If closing logs - each libE() call will log to a new file.
209210
# fh.close()

libensemble/libE.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,9 @@ def kill_proc_team(wcomms, timeout):
460460
wcomm.result(timeout=timeout)
461461
except Timeout:
462462
wcomm.terminate()
463+
wcomm.handle = None
464+
wcomm.inbox = None
465+
wcomm.outbox = None
463466

464467

465468
def libE_local(sim_specs, gen_specs, exit_criteria, persis_info, alloc_specs, libE_specs, H0):

libensemble/tests/functionality_tests/test_GPU_gen_resources.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@
110110
if run == 0:
111111
libE_specs["gen_num_procs"] = 2
112112
elif run == 1:
113+
if gen_on_manager:
114+
print("SECOND LIBE CALL WITH GEN ON MANAGER")
113115
libE_specs["gen_num_gpus"] = 1
114116
elif run == 2:
115117
persis_info["gen_num_gpus"] = 1

0 commit comments

Comments
 (0)