Repository navigation
Conversation
On Apple's D3DMetal (macOS, CrossOver) OpenExistingHeapFromAddress answers E_NOTIMPL (0x80004001). Five GPU tests unwrapped runner::run_in_arena and panicked on it (gpu_unified_memory_arena, gpu_mesh_mode_reads_memory_windows, gpu_memory_windows_above_4_gib, gpu_memory_windows_reject_out_of_uma_aliasing, gpu_bvh64_intersect_ray_across_memory_windows_and_grazing), and gpu_sparse_vram_descriptors_buffers_and_xmem found no window VAs. no_host_heaps() skips with "no GPU UMA" only for that error (the runner's error, or the runtime's uma_error after init); run_in_arena_or_skip() wraps run_in_arena with it. Any other error still fails the tests: with the check looking for another code, all six fail again on this host. (xcl-dev#258) Assisted-by: Claude Code (Claude Opus 5.5)
|
Verified on a macOS host: all six tests this PR names do get the skip, from the E_NOTIMPL condition, and the skip does not fire anywhere it should not. Host: MacBook Pro M5 Pro (48 GB), macOS 27.2.1, CrossOver 26 with D3DMetal (adapter reports "AMD Compatibility Mode"), Rosetta 2, Rust 1.100.0,
Six for six: the five The condition your One failure in the same family this PR does not reach: Tree state, so the test counts line up with other reports: this head branched from Not tested here: Windows (no Windows machine on this bench), a host where the skip must not fire - @DavidM1911's Windows row on #1024 covers that shape for the sibling PR (skip correctly not taken, "ok, 1 window(s)"), and I ran these seven tests rather than the whole suite (the whole lib binary does not run to completion on this host), and no titles. Host: macOS 27.2.1 (Apple silicon, M5 Pro), CrossOver 26, D3DMetal; local inference unloaded and the bottle's wineserver stopped for each run. AI use: GPT-6 Luna built both trees, ran the tests and drafted this comment; the panic locations, codes and timings are from those runs. |
|
Tested on Windows 11 with an AMD GPU (native wave64 and host heaps over process memory): all 6 GPU UMA tests ran without skipping, and the full suite passed. Tested
Not tested
AI use
|
|
Native Windows + NVIDIA check that Tested
Not tested
AI use
|
On Apple's D3DMetal (macOS, CrossOver)
OpenExistingHeapFromAddressanswers E_NOTIMPL (0x80004001), so there are no GPU heaps over process memory. Six GPU tests that need them fail there instead of skipping: five unwraprunner::run_in_arenaand panic on that error, andgpu_sparse_vram_descriptors_buffers_and_xmemfinds no window VAs afterreal::init(). Part of #258.What is in it
crates/xcl/src/gpu/recomp/tests.rs:no_host_heaps()skips withno GPU UMAonly when the error is E_NOTIMPL fromOpenExistingHeapFromAddress.run_in_arena_or_skip()wrapsrun_in_arenawith it, used bygpu_unified_memory_arena,gpu_mesh_mode_reads_memory_windows(itspositionsclosure now returns anOption),gpu_memory_windows_above_4_gib,gpu_memory_windows_reject_out_of_uma_aliasingandgpu_bvh64_intersect_ray_across_memory_windows_and_grazing.gpu_sparse_vram_descriptors_buffers_and_xmemchecks the runtime'suma_errorthe same way before reading the window VAs. Any other error still fails the tests.Tested
x86_64-pc-windows-gnu(mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609. Each test in its own process (<lib test exe> --exact <test> --test-threads=1 --nocapture).main9aec53d(full per-test run): all six fail, five withcalled Result::unwrap() on an Err value: "OpenExistingHeapFromAddress: Not implemented. (0x80004001)"and the sparse test with no valid window VAs.b22e57c(onmain384f7f7): 6 passed, all sixSKIPPED …: no GPU UMA.Regression run
Test-only change in
tests.rs: noxcl-smokeblocks.Not tested
OpenExistingHeapFromAddresssucceeds, nothing should skip, and the tests run as before, but I have not run it.XCL_REQUIRE_GPU=wave64/meshturns these skips into failures, as for every reason but "no mesh shaders".list_x::tests::write_buffer_immediate_on_open_existing_heap_visible_to_cpufails the same way but lives inlist_x.rs(a runtime file forPR checks), andgpu::shader::tests::readable_answers_from_the_working_set_without_touching_pagesfails for another reason (Wine'sQueryWorkingSetEx).gpu_uma_import_check_at_initthe same way in another part of the file; the two do not overlap. Tests: the sparse VRAM test no longer depends on what ran before it #614 edits thereal::init()line above the sparse test's new check and still applies on top of this change.AI use