Skip to content

Commit 0eb08d9

Browse files
authored
[SYCL][E2E] Replace uint with unsigned int in Matrix/slm_utils.hpp (#15981)
Using `uint` here caused failures in internal testing on windows due to deprecated warnings. This patch replaces it with `unsigned int`.
1 parent c13b071 commit 0eb08d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl/test-e2e/Matrix/slm_utils.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ slm_read_write(multi_ptr<TOperand, space, access::decorated::yes> pA,
4949
// NCache2*KCache2/(SGs*SG_SIZE) = 16
5050
size_t elemsPerLoadB = NCache2 * KCache2 / (SGs * sgSize);
5151
size_t sgsPerRow = (NCache2 * vnniFactor) / (elemsPerLoadB * sgSize);
52-
size_t GlOffsetB =
53-
(k2 * (KCache2 / vnniFactor) + (uint)(sg.get_group_id() / sgsPerRow)) *
54-
(colsB * vnniFactor) +
55-
n2 * NCache2 * vnniFactor +
56-
(sg.get_group_id() % sgsPerRow) * (elemsPerLoadB * sgSize);
52+
size_t GlOffsetB = (k2 * (KCache2 / vnniFactor) +
53+
(unsigned int)(sg.get_group_id() / sgsPerRow)) *
54+
(colsB * vnniFactor) +
55+
n2 * NCache2 * vnniFactor +
56+
(sg.get_group_id() % sgsPerRow) * (elemsPerLoadB * sgSize);
5757
size_t LocOffsetB =
58-
((uint)(sg.get_group_id() / sgsPerRow)) * NCache2 * vnniFactor +
58+
((unsigned int)(sg.get_group_id() / sgsPerRow)) * NCache2 * vnniFactor +
5959
(sg.get_group_id() % sgsPerRow) * elemsPerLoadB * sgSize;
6060
auto SrcB = pB + GlOffsetB;
6161
auto DstB =

0 commit comments

Comments
 (0)