Commit f08dd510 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov Committed by Alexander Smorkalov

fixed a bug in scanRows CUDA kernel (part of nppStIntegral)

uninitialized value
(cherry picked from commit 81ebe28c)
parent d308ed37
...@@ -288,7 +288,7 @@ __global__ void scanRows(T_in *d_src, Ncv32u texOffs, Ncv32u srcWidth, Ncv32u sr ...@@ -288,7 +288,7 @@ __global__ void scanRows(T_in *d_src, Ncv32u texOffs, Ncv32u srcWidth, Ncv32u sr
Ncv32u curElemOffs = offsetX + threadIdx.x; Ncv32u curElemOffs = offsetX + threadIdx.x;
T_out curScanElem; T_out curScanElem;
T_in curElem; T_in curElem = 0;
T_out curElemMod; T_out curElemMod;
if (curElemOffs < srcWidth) if (curElemOffs < srcWidth)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment