Book contents +

VIII · Stubs / CHAPTER 51

stub/accel: NPU/Metal/QNN

Samuel Watson · Welvet feature bookOriginal source ↗

github.com/openfluke/welvet/stub/accel⬜


Why it exists

Vendor accelerators plug beside WebGPU: not replace it. Qualcomm HTP is live via nativeqnn + sibling welvet.qnn (see book §79-81).

What it is

stub/accel remains a reserved plugin slot (⬜). Real Hexagon path: github.com/openfluke/welvet/nativeqnn · BackendQNN · SyncToQNN.

Go example

examples/51-stub-accel/main.go

Run:cd welvet/examples/51-stub-accel && source ../env.sh && go run .
package main

import "fmt"

// stub/accel has no symbols yet: HTP lives in nativeqnn (book §79-81).
func main() {
	fmt.Println("stub/accel: reserved; use nativeqnn for Qualcomm HTP")
}

Output

exit 0 · last run via go run .

stub/accel: reserved; use nativeqnn for Qualcomm HTP