Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-sjtu committed Sep 3, 2024
1 parent c091c83 commit ce5ec29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/starkpil/chelpers_steps_gpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ void CHelpersStepsGPU::calculateExpressionsRowsGPU(StarkInfo &starkInfo, StepsPa
exitProcess();
}

if ((rowEnd - rowIni) < nrowsPack*nCudaThreads*nStreams*nDevices) {
nCudaThreads = (rowEnd - rowIni) / (nrowsPack*nStreams*nDevices);
printf("nCudaThreads: %lu\n", nCudaThreads);
}

assert((rowEnd - rowIni) % (nrowsPack*nCudaThreads*nStreams*nDevices) == 0);
uint64_t nrowPerStream = (rowEnd - rowIni) / nStreams /nDevices;

Expand Down

0 comments on commit ce5ec29

Please sign in to comment.