X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=BOINC%20software%2FBOINC%20client%20apps%2Fdistrrtgen_cuda%2Frcuda.h;h=c641eda533fb735c5cca51378e1d97c0afc87c56;hb=683eeaa26cde6b9faa7600497da5896319583692;hp=eeeac69aa9f8c67f4d955d0c1a7a45887fc6f3c5;hpb=3d42602c1f746b5768f0e6c9d22884a9806eadc0;p=freerainbowtables diff --git a/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.h b/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.h index eeeac69..c641eda 100644 --- a/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.h +++ b/BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.h @@ -1,13 +1,15 @@ #ifndef RCUDA_H #define RCUDA_H +#include "Public.h" + namespace rcuda { enum RHash { RHASH_UNDEF = -1, RHASH_LM, RHASH_MD4, RHASH_MD5, RHASH_SHA1, RHASH_NTLM }; struct RCudaTask { RHash hash; - unsigned __int64 startIdx; + uint64 startIdx; int idxCount; unsigned char* stPlain; int stPlainSize; @@ -17,13 +19,14 @@ struct RCudaTask { int charSetSize; int *cpPositions; int cpPosSize; - unsigned __int64 reduceOffset; - unsigned __int64 plainSpaceTotal; + uint64 reduceOffset; + uint64 plainSpaceTotal; unsigned int rainbowChainLen; }; -extern "C" int CalcChainsOnCUDA(const RCudaTask* task, unsigned __int64 *resultBuff); +extern "C" int SetCudaDevice(int device); extern "C" int GetChainsBufferSize(int minSize); +extern "C" int CalcChainsOnCUDA(const RCudaTask* task, uint64 *resultBuff); }