Closed Tyronitar closed 7 months ago
multiprocessing can't pickle lumapi.FDTD, so I opted to use multithreading instead. However, the Python GIL makes that not actually parallelized, so it's running all of the simulations sequentially.
multiprocessing
lumapi.FDTD
multithreading
Maybe it's time to salvage the MPI code.
Turns out lumapi has this nifty feature "runjobs" which solved this problem!
Well, at least until we add support for other FDTD solvers
multiprocessing
can't picklelumapi.FDTD
, so I opted to usemultithreading
instead. However, the Python GIL makes that not actually parallelized, so it's running all of the simulations sequentially.Maybe it's time to salvage the MPI code.