You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can use openmp to parallelize some common aggregations like sum.
It has to play nice with gforce optimization, which makes it a little bit more tricky to do than implementation shown below.
It can give nice speed up, on rnorm(1e9)
> system.time(a1<-sum(x))
user system elapsed
1.263 0.040 1.304
> system.time(a2<-fsum(x))
user system elapsed
9.382 0.009 0.343