Skip to content

Commit 5500cff

Browse files
authored
Fix target specific option mismatch during OpenMP loop inlining under GCC 16 (#1954)
* Fix GCC 16 target specific option mismatch during OpenMP loop inlining * Format loop body to satisfy clang-format
1 parent ba40881 commit 5500cff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

csrc/cpu_ops.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ void quantize_cpu_impl(float* code, const T* A, float* absmax, unsigned char* ou
323323
absmax[b] = absmax_block;
324324

325325
if (absmax_block == 0.0f) {
326-
std::fill(out + block_start, out + block_end, 0);
326+
for (long long i = block_start; i < block_end; ++i) {
327+
out[i] = 0;
328+
}
327329
continue;
328330
}
329331

0 commit comments

Comments
 (0)