Repository navigation
test(agc): allocate the sparse heap import output in whole blocks - #23869
Conversation
aligned_alloc needs a size that is a multiple of its alignment. The source block of the in-place store tests is 256 bytes with a 64 KiB alignment, so ASan rejects the allocation and agc_driver_sparse_heap_import and its mirror variant stop before running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Head No new failures and no new validation messages on either GPU.
Layer runs used AI-assisted: yes |
|
Ran the two sparse heap import tests on NVIDIA's proprietary Linux driver with the Khronos validation layer; the description's GTX 1660 run names no validation-layer run. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release (no ASan), NVIDIA GeForce RTX 4090 (vendor
Both tests select the RTX 4090 and print No new AI-assisted: yes (Claude Code) |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Not run here: Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The allocation now rounds its size up to a multiple of the required alignment while registering the guest range at its requested size.
What I ran
Reviewed head de7a2ae662d122d20e2a5c42e1adf853465fc0f1. I read the prepared description, commits, manifest, diff, and the changed source file (lines 1–110). I did not run commands or tests.
Results
| Check | Result | Note |
|---|---|---|
| Diff and source review | passed | One changed allocation expression |
| Tests | not run | No local test execution |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The manifest lists one changed file and marks it included; that file was read. The prepared files.json and alternate review/files/ path were unavailable through the reader, so I could not inspect excluded-file metadata. Reported test results in the PR description were not independently verified. No tests were run.
To get this to a good state
Nothing is required.
|
macOS data point for Apple M5 Pro, macOS 27.3, Apple clang, x86_64 Release under Rosetta 2. MoltenVK from Vulkan SDK 1.4.363.0 with
So on macOS this pull request fixes what it says, and the remaining failure is a separate macOS issue in the in-place sparse heap import (#19553), not in this change. I'm looking into that one. AI-assisted: yes (Claude Code) |
What
OutputBlockcallsstd::aligned_alloc(Block, bytes)with a 64 KiB alignment. The in-place store tests create a 256-byte source block, andaligned_allocneeds a size that is a multiple of the alignment. ASan rejects it (invalid-aligned-alloc-alignment,SparseHeapImport.cpp:60), soagc_driver_sparse_heap_importandagc_driver_sparse_heap_import_mirrorstop before running. The allocation now rounds up to a whole block. The registered guest range keeps its requested size.Tested
CachyOS, GCC 16, the sanitizer job's flags (
ANYPS5_ENABLE_ASAN=ON,-fsanitize=undefined). Both tests failed onmain23786c4e4fand passed 5 of 5 runs each with this change, with and without ASan. CI's sanitizer job doesn't run this test, becauseANYPS5_AGC_EXECUTION_TESTSlimits it to three AGC tests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file — n/a.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code