browser/ is a wasm32 module that runs every graph vector of ops-conformance on the WebGPU adapter a page is offered, the kernels compiled by the browser's own WGSL compiler, and holds each decode to the committed result and to the interpreter running in the same page. run.mjs serves it with the corpus and drives a headless browser (on macOS through Metal), and fails on a mismatch, a device error or a page error, or, under WAI_OPS_GPU_REQUIRE=1, when no adapter ran the corpus. tests/support/corpus.rs now parses a file apart from reading it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
24 lines
746 B
TOML
24 lines
746 B
TOML
# The ops-conformance graph vectors through a browser's WebGPU: wai-ops-gpu's kernels
|
|
# compiled by the browser's own WGSL compiler, held to the committed expectations and to
|
|
# the interpreter compiled to wasm32 in the same page. Built for wasm32-unknown-unknown
|
|
# and loaded by index.html; run.mjs serves it and drives a headless browser.
|
|
[package]
|
|
name = "wai-ops-gpu-browser"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
rust-version = "1.97"
|
|
license = "Apache-2.0"
|
|
publish = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
wai-ops = { path = "../../wai-ops" }
|
|
wai-ops-gpu = { path = ".." }
|
|
# Pinned to the release the wasm-bindgen CLI must match.
|
|
wasm-bindgen = "=0.2.127"
|
|
wasm-bindgen-futures = "=0.4.77"
|
|
|
|
[profile.release]
|
|
debug = false
|