Closed bernardo-heberle closed 1 year ago
Hi,
Its been a while since I looked at this part of the code, so I double checked and in your example each core will load 1e6 reads at a time from a bam file per core (12*1e6 reads).
The ncore
parameter distributes the different bam files to different cores, so read class generation will also proceed with a bam file per core.
Kind Regards, Andre Sim
Ok, thank you!
I was getting out of memory errors when increasing the number of cores while keeping yieldSize constant. Now it makes perfect sense, will be easy to adapt the code to account for this.
Kind Regards, Bernardo
Hello,
I am trying to optimize the speed vs memory usage for Bambu and I was wondering about using the
yieldSize
parameter in combination withncore
. Do parallel processes spawned withncore
each use oneyieldSize
or do they use theyieldSize
in combination.For example: If I set
yieldSize=1e6
andncore=12
, will each core load 1e6 reads from the bam file at a time, or do all the 12 cores work on the same 1e6 reads at one time?