Files
metal2vulkan/docs
Anees Iqbal 1de18aa609 Tests: the stream device tests of the old runtime's queue plan run at most four at a time
What: .config/nextest.toml's default profile puts the validation crate's
runtime_lane::replay_streams tests, and the three runtime_lane::rt_replay tests that play
on the old runtime too (a_private_shown_texture_is_checked_through_a_copy,
a_tiled_texture_takes_its_buffer_s_bytes_and_levels_at_first_use,
the_address_census_is_the_same_on_both_runtimes), in a test group, queue-plan, of
max-threads 4. These are the tests of the GPU legs' filter (DEVICE_TEST_FILTER in
scripts/matrix/matrix) that open a lane device of the old runtime's queue plan (at_plan).
docs/VALIDATION.md's paragraph on a GPU of few channels says so. The few-channels profile
stays: the lane's other at_plan tests lie outside the group, so a whole lane run on such a
GPU still takes it.

Why: the RTX 2080's GPU leg (NVIDIA 620.70.06) failed 3 runs of 3 at b4058db961
(m3-max-58129, m3-max-58168, m3-max-58241), each at the same test:
tests::translate::on_device::every_device_removes_a_blob_it_cannot_take, "NVIDIA GeForce
RTX 2080: vkCreateDevice failed: Initialization of an object has failed". In the seconds of
the failure the kernel logged NVRM "kchannelAllocMem_GM107: Could not create Channel" (31
times in 58241), "kchannelAllocMem_GM107: Instance block allocation ... failed" and
"heapAlloc_IMPL: no free blocks" (39). 58241 sampled the card and the test processes every
0.3 s: at the first error 17 test processes were alive, 15 of them replay_streams tests,
whose devices take the queue plan's 18 VkQueues, each a channel on NVIDIA's driver (the 2080
holds 10 such devices). The card had 242 to 257 MiB of its 8,192 in use then, 1,458 MiB at
most over the leg, 393 MiB reserved: not its memory. The test alone passed (m3-max-58193,
0 NVRM lines), and so did it 18 runs of 18 beside the host-import timing test alone
(m3-max-58237). The lane's devices wait for room (runtime_lane/device_room.rs); the new
runtime's device tests take the driver's refusal as it is. Four devices of the plan are 72
VkQueues, which leaves room for six more: the leg's other 12 processes, whose new runtime
devices take at most 2 VkQueues each, and other programs' devices on the GPU.

Verified (archive m3-max-58111 at b4058db961; the nextest config of a commit whose tree is
this commit's, read from the workspace):
- m3-max-58271, exclusive on homelab-um790-xtx-1: the 2080's leg 506 of 506 passed, exit 0,
  0 NVRM lines, 0 refused channels, at most 4 of the group's tests alive at once; the replay
  tests' wall time 33.4 s; the leg 167.4 s (175.1 to 185.4 s in the three failed runs).
- The same job, the RX 7900 XTX's leg in turn before, after, after, before: 21.62 and
  21.44 s before, 21.57 and 22.09 s after (1.4% longer on the means); the replay tests' wall
  time 3.1 and 2.9 s before, 2.9 and 3.7 s after; at most 8 and 11 of the group's tests alive
  at once before, 4 after; every run 506 of 506, exit 0.
- m3-max-58260: the 2080's leg under --profile few-channels (3 test threads), 506 of 506,
  exit 0, 0 NVRM lines, 166.4 s, the replay tests' 22 runs 54.9 s in all (434.2 s in 58129).
2026-11-20 04:49:59 -08:00
..