From: Chris Duncan Date: Thu, 9 Jan 2025 23:34:40 +0000 (-0800) Subject: Upload new bundle for testing. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=refs%2Fheads%2Fios;p=libnemo.git Upload new bundle for testing. --- diff --git a/global.min.js b/global.min.js index 9bb908c..1d9336f 100644 --- a/global.min.js +++ b/global.min.js @@ -11447,8 +11447,7 @@ var init_gpu = __esm({ } }); } - static reset(loss) { - if (loss) console.dir(loss); + static reset() { console.warn(`GPU device lost. Reinitializing...`); _NanoPowGpu.#cpuBuffer?.destroy(); _NanoPowGpu.#gpuBuffer?.destroy(); @@ -11526,7 +11525,6 @@ var init_gpu = __esm({ this.#cpuBuffer.unmap(); } catch (err) { console.warn(`Error getting data from GPU. ${err}`); - this.reset(); return this.search(hash2, threshold); } if (data == null) throw new Error(`Failed to get data from buffer.`);