compute-sum

command
v0.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command compute-sum demonstrates a parallel reduction (sum) using a GPU compute shader. It uploads an array of uint32 values to the GPU, dispatches a compute shader that sums contiguous pairs, and reads back the partial results. The final summation is performed on the CPU.

The example is headless (no window required) and works on any supported GPU.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL