Commit 4153c48d authored by Luka Stanisic's avatar Luka Stanisic

fixing GPUWorkload<100 for minimal use cases, such as Tutorial

parent 60fde8f9
......@@ -618,7 +618,7 @@ int bioem_cuda::deviceStartRun()
}
else
{
maxRef = (size_t) RefMap.ntotRefMap * (size_t) GPUWorkload / 100;
maxRef = RefMap.ntotRefMap == 1 ? (size_t) RefMap.ntotRefMap : (size_t) RefMap.ntotRefMap * (size_t) GPUWorkload / 100;
pProb_host = new bioem_Probability;
pProb_host->init(maxRef, param.nTotGridAngles, param.nTotCC, *this);
pProb_host->copyFrom(&pProb, *this);
......
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