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

Method getPrivateKeyOffset

CudaKeySearchDevice/CudaKeySearchDevice.cpp:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206uint32_t CudaKeySearchDevice::getPrivateKeyOffset(int thread, int block, int idx)
207{
208 // Total number of threads
209 int totalThreads = _blocks * _threads;
210
211 int base = idx * totalThreads;
212
213 // Global ID of the current thread
214 int threadId = block * _threads + thread;
215
216 return base + threadId;
217}
218
219void CudaKeySearchDevice::getResultsInternal()
220{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected