Expand description
HelloBackend kernel, trivial diagnostic that proves a GPU kernel/shader
was actually invoked on the device.
Each backend writes a different magic token into a 4-byte output buffer. The token value is baked into each backend’s kernel/shader source, only that specific kernel running on the device can produce the correct non-zero value. A zero token means the kernel never executed.
The per-backend magic values are intentionally private to their respective launch modules so that a buggy Rust stub cannot accidentally return the “right” answer without the kernel having run.
See examples/hello_backend.rs for the canonical usage.
Structs§
- Hello
Backend - Marker for the diagnostic hello kernel.
- Hello
Backend Input - No input needed, the kernel only writes a constant.
- Hello
Backend Output - Output of the hello kernel.