4.3 Parallel Computation
If you installed the Dvegas library with parallelisation features
enabled, you can use the last two arguments of
The arguments argc and argv are the ones you would pass to
cd workdir myprog -w
These processes will dump some information about themselves in a common file myprog.workers in workdir and then wait for the “master” process to show up. Start that one on the last computer with
cd workdir myprog
The master process should then connect to the workers and distribute the numerical integration among the workers. It will also do some work itself. Needless to say, if your computers have more than one core, it makes sense to start more than one worker process on each computer.