cosmicrays / hermes

HERMES is a publicly available computational framework for the line of sight integration over galactic radiative processes which creates sky maps in the HEALPix-compatibile format.
GNU General Public License v3.0
22 stars 9 forks source link

When skymap mask is present, multithreading is not optimally used #12

Closed adundovi closed 3 years ago

adundovi commented 3 years ago

The procedure in which pixel chunks are distributed across CPU threads ignores masked pixels (in SkymapTemplate.h), thus threads with many masked pixels are quickly completed and stay idle until other, busy threads finish their chunks. If a computer has many threads and masked scenario is run, redesigning this can bring a significant reduction in the computation time.

adundovi commented 3 years ago

2a77f83 gave 40-50% speed up for masked sky maps.