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. (#258) Assisted-by: Claude Code (Claude Opus 5.5)
Owner
Author
|
Upstream PR xcl-dev#1060 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 xcl-dev/xcl#614 edits thereal::init()line above the sparse test's new check and still applies on top of this change.AI use
Mirror of xcl-dev#1060 (auto-synced, do not edit).