Skip to content

Commit f36080f

Browse files
committed
fix
1 parent 033ffe8 commit f36080f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cpu/primitives.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ namespace ctranslate2 {
295295
template<>
296296
void primitives<Device::CPU>::relu(const float* x, float* y, dim_t size) {
297297

298-
int sum = 0;
298+
int ssum = 0;
299299
int n = 10000;
300300

301-
#pragma omp parallel for reduction(+:sum)
301+
#pragma omp parallel for reduction(+:ssum)
302302
for (int i = 0; i < n; i++) {
303-
sum += i; // Each thread has private copy, combined at end
303+
ssum += i; // Each thread has private copy, combined at end
304304
}
305305

306306

0 commit comments

Comments
 (0)