From ee0fe906a20adfbd631ceb620cd37ff158fdfb22 Mon Sep 17 00:00:00 2001 From: mweinbach Date: Mon, 19 Oct 2026 14:58:18 -0400 Subject: [PATCH] gpu, docs: fix timing test skip guard and document Windows ARM64 build on RTX Spark - Subtract submit_ms when checking the execution window in gpu_time_tracks_execution_not_submission (wall_ms - submit_ms < 3.0 * submit_ms). - Document clang-cl requirement for Windows on ARM64 (aarch64-pc-windows-msvc) builds in docs/development.md. - Add [people.mweinbach] to contributors/people.toml per AGENTS.md. --- contributors/people.toml | 3 +++ crates/gpu/tests/timing.rs | 8 +++++--- docs/development.md | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/contributors/people.toml b/contributors/people.toml index bc3533777b..5fd8631b91 100644 --- a/contributors/people.toml +++ b/contributors/people.toml @@ -72,6 +72,9 @@ sync_github_name = true [people.maxm11] sync_github_name = true +[people.mweinbach] +sync_github_name = true + [people.skraus2] sync_github_name = true diff --git a/crates/gpu/tests/timing.rs b/crates/gpu/tests/timing.rs index 24c2057253..19ee824d86 100644 --- a/crates/gpu/tests/timing.rs +++ b/crates/gpu/tests/timing.rs @@ -138,9 +138,11 @@ fn gpu_time_tracks_execution_not_submission() { assert_eq!(t.px, area(full), "the measurement carries the pixels of the refresh it measured"); assert!(t.spans >= 1, "at least one command buffer was timed"); - // The premise: on this adapter the refresh really is dominated by GPU execution. A machine - // fast enough that it isn't cannot tell the two timings apart, so say so instead of failing. - if wall_ms < 3.0 * submit_ms { + // The premise: on this adapter the refresh really is dominated by GPU execution. `wall_ms` + // includes `submit_ms`, so the GPU execution window is `wall_ms - submit_ms`; a machine fast + // enough that this window isn't well above `3.0 * submit_ms` cannot tell the two timings + // apart, so say so instead of failing. + if wall_ms - submit_ms < 3.0 * submit_ms { eprintln!("SKIP the comparison: this GPU finishes a 6 MP composite in {wall_ms:.1} ms against {submit_ms:.1} ms of encoding"); return; } diff --git a/docs/development.md b/docs/development.md index 6891e88a9c..77c677d7cc 100644 --- a/docs/development.md +++ b/docs/development.md @@ -12,7 +12,9 @@ ### Windows source builds Use the Rust MSVC toolchain and install Visual Studio or Microsoft C++ Build Tools with the -**Desktop development with C++** workload. Follow Microsoft's +**Desktop development with C++** workload (on Windows on ARM64 / `aarch64-pc-windows-msvc`, such +as NVIDIA RTX Spark, also select **C++ Clang Compiler for Windows** or ensure `clang-cl.exe` is on +`PATH`, as `aws-lc-sys` needs it to assemble ARMv8 crypto routines). Follow Microsoft's [Rust setup guide](https://learn.microsoft.com/en-us/windows/dev-environment/rust/setup), then open a new terminal and check `cargo --version` and `rustc --version`.