Faraon-Lab / vipdopt

Other
1 stars 0 forks source link

Get Simulations to run in Parallel #16

Closed Tyronitar closed 7 months ago

Tyronitar commented 9 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.

Maybe it's time to salvage the MPI code.

Tyronitar commented 7 months ago

Turns out lumapi has this nifty feature "runjobs" which solved this problem!

Well, at least until we add support for other FDTD solvers