fmihpc / vlasiator

Vlasiator - ten letters you can count on
https://www.helsinki.fi/en/researchgroups/vlasiator
Other
47 stars 38 forks source link

Adding omp simd-pragmas to moment filtering #1002

Closed veetihaaja closed 1 month ago

veetihaaja commented 3 months ago

I added OpenMp simd-pragmas to the loops over moments in the moment filtering function that is run after theyre fed to fsgrid. I also changed a collapse(2) to a collapse(3) in the spatial loop over cells which sped it up slightly. Other changes I tested did not speed up the filtering. Overall in my testing these changes decreased filtering time by 20%.