mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Merge PR #7840: gpu, docs: fix timing test skip guard and document Windows ARM64 build on RTX Spark
This commit is contained in:
commit
837242536b
3 files changed
+11
-4
No files matched your search
@@ -79,6 +79,9 @@ sync_github_name = true
|
||||
[people.maxm11]
|
||||
sync_github_name = true
|
||||
|
||||
[people.mweinbach]
|
||||
sync_github_name = true
|
||||
|
||||
[people.skraus2]
|
||||
sync_github_name = true
|
||||
|
||||
|
||||
@@ -139,9 +139,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;
|
||||
}
|
||||
|
||||
+3
-1
@@ -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`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user