Multicores processing #251
-
Hi, Any advice is much appreciated, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The If it still doesn't use all the cores, then it could be that the main thread is doing too much work. In that case, try increasing You could also try using multiprocessing instead of multithreading. To do that, use |
Beta Was this translation helpful? Give feedback.
The
procs
argument controls how many cores it uses. So for using 4 cores you would setprocs=4
.If it still doesn't use all the cores, then it could be that the main thread is doing too much work. In that case, try increasing
ncyclesperiteration
until all cores are being used. Also, havingpopulations >= 2 * procs
is a good idea, so that all threads can be occupied.You could also try using multiprocessing instead of multithreading. To do that, use
multithreading=False, procs=4
.