// Copy seed into INPUT buffer
inputDataView.setBigUint64(40, seed, true)
logger.log('INPUT', inputDataView)
- device.queue.writeBuffer(inputBuffers[dispatchIndex], 0, inputDataView)
+ device.queue.writeBuffer(inputBuffers[dispatchIndex], 40, inputDataView, 40)
// Create command encoder to issue commands to GPU and initiate computation
const commandEncoder = device.createCommandEncoder()
timeout = true
throw new Error('timed out')
}, 60_000)
- // logger.groupStart('NanoPow WebGPU work_generate')
+ logger.groupStart('NanoPow WebGPU work_generate')
logger.log('generating')
let found = false
let result: { [key: string]: bigint } = {}