Browse Source

Update dgemm_kernel_4x8_haswell.S

tags/v0.3.7
wjc404 GitHub 7 years ago
parent
commit
825777faab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      kernel/x86_64/dgemm_kernel_4x8_haswell.S

+ 9
- 2
kernel/x86_64/dgemm_kernel_4x8_haswell.S View File

@@ -1865,12 +1865,15 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SAVE4x12
/* here for the prefetch of next b source block */
/* the increment should be proportional to the ratio of GEMM_Q/GEMM_P */
/* currently an increment of 128 byte is suitable */
salq $3, K
prefetcht2 32(B)
prefetcht2 32(B, K, 8)
prefetcht2 96(B)
prefetcht2 96(B, K, 8)
addq $128, B
addq $128, B /* increment */
sarq $3, K
decq I # i --
@@ -1880,6 +1883,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/**************************************************************************
* Rest of M
***************************************************************************/
/* recover the original value of pointer B */
movq M, I
sarq $2, I
salq $7, I
@@ -2160,6 +2164,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SAVE4x12
/* here for the prefetch of next b source block */
/* the increment should be proportional to the ratio of GEMM_Q/GEMM_P */
/* currently an increment of 128 byte is suitable */
salq $3, K
prefetcht2 (B)
prefetcht2 (B, K, 8)
@@ -2175,7 +2182,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/**************************************************************************
* Rest of M
***************************************************************************/
/* recover the original value of pointer B */
movq M, I
sarq $2, I
salq $7, I


Loading…
Cancel
Save