Returns the GPU device name from the WebGPU adapter info. Must be called after init().
init()
import { init, cleanup, gpuName } from "wgblas";await init();const { description, device } = gpuName();console.log("description:", description, "device:", device);if (typeof process !== "undefined") cleanup(); Copy
import { init, cleanup, gpuName } from "wgblas";await init();const { description, device } = gpuName();console.log("description:", description, "device:", device);if (typeof process !== "undefined") cleanup();
Optional
which device to report on; defaults to the one from the first init() call. Pass it explicitly when driving more than one GPU.
Source code: init.mjs
Returns the GPU device name from the WebGPU adapter info. Must be called after
init().