Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have had good luck with the multiprocessing module and use it to run 5 simulations at a time. I can get it to max out most of my processors, compared to just one with a single simulation. It is available for download for Python 2.5 (PSSE 32) and comes standard with Python 2.7 (PSSE 33). One suggestion I have is to run each simulation in its own temporary directory and make sure to change the working directory to that directory. I ran into a few instances where two instances were trying to access the same temporary file and it was crashing.

I have had good luck with the multiprocessing module and use it to run 5 simulations at a time. I can get it to max out most of my processors, compared to just one with a single simulation. It is available for download for Python 2.5 (PSSE 32) and comes standard with Python 2.7 (PSSE 33). You can then use the multiprocessing.Pipe if you wish to send data between the processes. One suggestion I have is to run each simulation in its own temporary directory and make sure to change the working directory to that directory. I ran into a few instances where two instances were trying to access the same temporary file and it was crashing.