MIDACO Parallelization in Julia (Multi-Threading)
Running MIDACO in serial and parallel on a cpu-time expensive objective function.
[ beta version ]
|
|
Serial Mode (P=1) | Parallel Mode (P=2) |
![]() |
|
Total Time: 13 Seconds | Total Time: 6 Seconds |
Original: x1 | Speed Up: x2 |
The results can be reproduced with the limited MIDACO version (available here).
To enable multi-threading in Julia, the following command:
export JULIA_NUM_THREADS=2 ( Mac & Linux shell )
set JULIA_NUM_THREADS=2 ( Windows shell )
must be executed before starting Julia (see above screenshot).
The parallelization example will automatically detect how many threads
are available and set its parallelization factor P accordingly.
Any problems running MIDACO? Please click here or contact us.