wgblas
    Preparing search index...

    Function cleanup

    • Destroys the WebGPU device, releases the adapter, resets benchmark state, and fires all internal cleanup callbacks (e.g. releasing cached GPU pipelines and buffers). Call when done (required in Node.js to prevent crash on exit).

      Returns void

      import { init, cleanup, gpuName } from "wgblas";

      await init();
      console.log("GPU:", gpuName().description);
      if (typeof process !== "undefined") cleanup(); // Node.js only — browser cleanup is automatic