X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=BOINC%20software%2FBOINC%20client%20apps%2Fdistrrtgen_cuda%2Frcuda.cu;h=412128ed6697bc929ca812b9957bc165a358e97c;hb=47c71901e7a97c226c8f1df749e3606d43656f32;hp=b626041ede05721baf29f545226e9edcb5c9a524;hpb=683eeaa26cde6b9faa7600497da5896319583692;p=freerainbowtables diff --git a/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.cu b/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.cu index b626041..412128e 100644 --- a/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.cu +++ b/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.cu @@ -160,6 +160,7 @@ extern "C" int CalcChainsOnCUDA(const rcuda::RCudaTask* task, uint64 *resultBuff cuErr = cudaSuccess; cudaSetDeviceFlags(cudaDeviceBlockingSync); + for(int idx = 0; idx < task->rainbowChainLen-1 && cuErr == cudaSuccess; idx+=KERN_CHAIN_SIZE) { switch(task->hash) { case rcuda::RHASH_MD5: