Skip to content

Commit 7d3ca08

Browse files
authored
[CPU] Fix warning in debug build (#28691)
### Details: Fix "-Wsign-compare" warning in CPU plugin debug build ### Tickets: - *N\A*
1 parent 6465c23 commit 7d3ca08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/intel_cpu/src/nodes/kernels/x64/mlp_kernel.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void MKernel::run(int M, // actual M
504504
}
505505

506506
void MatrixDynQuantPerRow::quantize(size_t BM, ov::bfloat16* psrc, int src_stride) {
507-
assert(BM <= M);
507+
assert(static_cast<int64_t>(BM) <= M);
508508
parallel_nt_static(0, [&](const size_t ithr, const size_t nthr) {
509509
size_t start{0}, end{0};
510510
splitter(BM, nthr, ithr, start, end);
@@ -521,7 +521,7 @@ void MatrixDynQuantPerRow::quantize(size_t BM, ov::bfloat16* psrc, int src_strid
521521
}
522522

523523
void MatrixDynQuantPerRow::quantize(size_t BM, ov::float16* psrc, int src_stride) {
524-
assert(BM <= M);
524+
assert(static_cast<int64_t>(BM) <= M);
525525
parallel_nt_static(0, [&](const size_t ithr, const size_t nthr) {
526526
size_t start{0}, end{0};
527527
splitter(BM, nthr, ithr, start, end);

0 commit comments

Comments
 (0)