Creates the GPU buffer for an output whose every element the kernel will
write before anything reads one (see holdsOnlyMatrix): the usage
uploadBuffer(…, readback = true) gives, but nothing uploaded — WebGPU
zero-initializes it. At n = 2048, skipping sgemm's C upload took a
host-array call from 58 to 45 ms: writeBuffer costs ~9 ms of CPU time
per 16 MB in Node.
Parameters
device: GPUDevice
byteSize: number
Optionallabel: string = "blas-output"
Returns GPUBuffer
Throws
if byteSize exceeds the device's maxStorageBufferBindingSize
Creates the GPU buffer for an output whose every element the kernel will write before anything reads one (see holdsOnlyMatrix): the usage
uploadBuffer(…, readback = true)gives, but nothing uploaded — WebGPU zero-initializes it. At n = 2048, skipping sgemm's C upload took a host-array call from 58 to 45 ms:writeBuffercosts ~9 ms of CPU time per 16 MB in Node.