Commit cdfb14b8 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Fix baseline NaN for no heaps in gate

parent e91ccfae
......@@ -116,8 +116,12 @@ __global__ void update_baselines(float* __restrict__ baseLineG0,
NG1 += stats_G1[i];
}
baseLineG0[0] = baseLineNG0[0] / NG0;
baseLineG1[0] = baseLineNG1[0] / NG1;
if (NG0 > 0)
baseLineG0[0] = baseLineNG0[0] / NG0;
if (NG1 > 0)
baseLineG1[0] = baseLineNG1[0] / NG1;
baseLineNG0[0] = 0;
baseLineNG1[0] = 0;
}
......
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