Skip to content
Snippets Groups Projects
Commit cdfb14b8 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fix baseline NaN for no heaps in gate

parent e91ccfae
No related branches found
No related tags found
No related merge requests found
...@@ -116,8 +116,12 @@ __global__ void update_baselines(float* __restrict__ baseLineG0, ...@@ -116,8 +116,12 @@ __global__ void update_baselines(float* __restrict__ baseLineG0,
NG1 += stats_G1[i]; NG1 += stats_G1[i];
} }
if (NG0 > 0)
baseLineG0[0] = baseLineNG0[0] / NG0; baseLineG0[0] = baseLineNG0[0] / NG0;
if (NG1 > 0)
baseLineG1[0] = baseLineNG1[0] / NG1; baseLineG1[0] = baseLineNG1[0] / NG1;
baseLineNG0[0] = 0; baseLineNG0[0] = 0;
baseLineNG1[0] = 0; baseLineNG1[0] = 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment