| 143 | } |
| 144 | |
| 145 | void 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 | |
| 164 | uint64_t CudaKeySearchDevice::keysPerStep() |
| 165 | { |
no test coverage detected