revised fix windows compatible for #2313
authorWang, Long <long1.wang@intel.com>
Thu, 21 Nov 2019 02:19:40 +0000 (10:19 +0800)
committerWang, Long <long1.wang@intel.com>
Thu, 21 Nov 2019 02:22:58 +0000 (10:22 +0800)
Signed-off-by: Wang, Long <long1.wang@intel.com>
kernel/x86_64/sgemm_kernel_16x4_skylakex.c

index 4177ae2..76b82e6 100644 (file)
@@ -1215,7 +1215,7 @@ CNAME(BLASLONG m, BLASLONG n, BLASLONG k, float alpha, float * __restrict A, flo
 
 int sgemm_kernel_direct_performant(BLASLONG M, BLASLONG N, BLASLONG K)
 {
-       unsigned long mnk = M * N * K;
+       unsigned long long mnk = M * N * K;
        /* large matrixes -> not performant */
        if (mnk >= 28 * 512 * 512)
                return 0;