Commit c2afe2e
committed
Use BLAS zgemm for the H operator in the solver comparison benchmark
The previous naive triple loop re-read the H matrix from memory for every
column, which penalized block solvers (PPCG/BPCG) that apply H to many
columns at once and favored band-by-band CG. A BLAS gemm applies H to a
block with proper cache reuse, matching how the H operator is applied
efficiently in real PW (FFT) calculations.1 parent be5fb2e commit c2afe2e
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
0 commit comments