MCPcopy Create free account
hub / github.com/brichard19/BitCrack / doStep

Method doStep

CudaKeySearchDevice/CudaKeySearchDevice.cpp:145–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void CudaKeySearchDevice::doStep()
146{
147 uint64_t numKeys = (uint64_t)_blocks * _threads * _pointsPerThread;
148
149 try {
150 if(_iterations < 2 && _startExponent.cmp(numKeys) <= 0) {
151 callKeyFinderKernel(_blocks, _threads, _pointsPerThread, true, _compression);
152 } else {
153 callKeyFinderKernel(_blocks, _threads, _pointsPerThread, false, _compression);
154 }
155 } catch(cuda::CudaException ex) {
156 throw KeySearchException(ex.msg);
157 }
158
159 getResultsInternal();
160
161 _iterations++;
162}
163
164uint64_t CudaKeySearchDevice::keysPerStep()
165{

Callers 1

Calls 2

KeySearchExceptionClass · 0.85
cmpMethod · 0.80

Tested by

no test coverage detected