How to speed up my sparse matrix solver?

前端 未结 7 1381
梦毁少年i
梦毁少年i 2020-12-14 03:22

I\'m writing a sparse matrix solver using the Gauss-Seidel method. By profiling, I\'ve determined that about half of my program\'s time is spent inside the solver. The perfo

相关标签:
7条回答
  • 2020-12-14 04:15

    I think you're right about memory being a bottleneck. It's a pretty simple loop with just some simple arithmetic per iteration. the ic, iw, ie, is, and in indices seem to be on opposite sides of the matrix so i'm guessing that there's a bunch of cache misses there.

    0 讨论(0)
提交回复
热议问题