From c41bfb929c7ba1466f217c3feecf2c1709252c4a Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 9 Jan 2025 15:34:40 -0800 Subject: [PATCH] Upload new bundle for testing. --- global.min.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.`); -- 2.34.1