Skip to content

Commit 1191db1

Browse files
author
Wang, Long
committed
For the sake of windows compatible, used "unsigned long long" to ensure 64-bit length
Signed-off-by: Wang, Long <long1.wang@intel.com>
1 parent 0caf143 commit 1191db1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kernel/x86_64/sgemm_kernel_16x4_skylakex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
762762
int __attribute__ ((noinline))
763763
CNAME(BLASLONG m, BLASLONG n, BLASLONG k, float alpha, float * __restrict A, float * __restrict B, float * __restrict C, BLASLONG ldc)
764764
{
765-
unsigned long M = m, N = n, K = k;
765+
unsigned long long M = m, N = n, K = k;
766766
if (M == 0)
767767
return 0;
768768
if (N == 0)
@@ -1639,4 +1639,4 @@ void sgemm_kernel_direct (BLASLONG M, BLASLONG N, BLASLONG K, float * __restrict
16391639
STORE_SCALAR(0, 0);
16401640
}
16411641
}
1642-
}
1642+
}

kernel/x86_64/sgemm_kernel_16x4_skylakex_2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ CNAME(BLASLONG m, BLASLONG n, BLASLONG k, float alpha, float * __restrict__ A, f
452452

453453
int sgemm_kernel_direct_performant(BLASLONG M, BLASLONG N, BLASLONG K)
454454
{
455-
unsigned long mnk = M * N * K;
455+
unsigned long long mnk = M * N * K;
456456
/* large matrixes -> not performant */
457457
if (mnk >= 28 * 512 * 512)
458458
return 0;

0 commit comments

Comments
 (0)