We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 033ffe8 commit f36080fCopy full SHA for f36080f
1 file changed
src/cpu/primitives.cc
@@ -295,12 +295,12 @@ namespace ctranslate2 {
295
template<>
296
void primitives<Device::CPU>::relu(const float* x, float* y, dim_t size) {
297
298
- int sum = 0;
+ int ssum = 0;
299
int n = 10000;
300
301
-#pragma omp parallel for reduction(+:sum)
+#pragma omp parallel for reduction(+:ssum)
302
for (int i = 0; i < n; i++) {
303
- sum += i; // Each thread has private copy, combined at end
+ ssum += i; // Each thread has private copy, combined at end
304
}
305
306
0 commit comments