astrofrog/fast-histogram

Add OpenMP

Open

#32 建立於 2018年11月1日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C (28 fork)github user discovery
help wantedperformance

倉庫指標

Star
 (279 star)
PR 合併指標
 (PR 指標待抓取)

描述

I think it should be possible to rewrite the loops to include OpenMP pragmas. The final update could be protected with #pragma omp atomic and you can use default(shared) private(tx ty ix iy) firstprivate(dataptr) or something similar. You'll need to redo the loops, however, you'll need for loops instead of the inner while (or maybe the outer do while), and the stride part might need to be precalculated in some way.

貢獻者指南