Scripts: compare activity memory samples at matching times #1854
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1854
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1854"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@rrrarrra9 on GitHub · 2026-11-24 21:55 UTC · original
rrrarrra9:codex/activity-memory-1773→main· +113 −0 · 3 files · 1 commits · openPart of #1773. Compare memory counters from live or finished XCL logs at the same elapsed time. The script selects the last complete sample at or before the requested time and distinguishes stale or missing data from zero usage.
What is in it
scripts/activity-memory.ps1reports process commit, local and non-local usage, texture and sparse pools, and optional DXGI budgets. It ignores a partially written budget line and compares sample age with the exact lag limit.scripts/activity-memory.tests.ps1covers live-log sharing, selection, truncated lines, missing and stale samples, both budget layouts, and path-free output. The README includes the comparison command.Tested
scripts/activity-memory.tests.ps1atf830d4132a07adbe3a78b266704f649eac2babdereturnedactivity-memory: okand exit 0 in Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9. Both new edge cases failed with the previous parser.426a5a7. #2245 corrected the two Rust assertions that failed in the previous CI run and in main. The base CI passed. The new head has its own CI run.b666ff8passed in both shells. This rebase leaves the script diff unchanged.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 22:36 UTC · original
Tested exact head
fd3dca3, script tests only, since this PR has no test report yet.Tested
powershell.exe -NoProfile -File scripts/activity-memory.tests.ps1at the head: exit 0,activity-memory: ok.689f2db): not applicable:activity-memory.ps1is new in this PR, so main has nothing for the test to run.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 01:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@raylitebull on GitHub · 2026-11-25 10:46 UTC · original
Diff audited (
scripts/activity-memory.ps1,scripts/activity-memory.tests.ps1,README.md) and CI workflow approved (running). NeedsBuild and testgreen plus independent verification ofactivity-memory.tests.ps1on PowerShell 5.1 / 7.@raylitebull on GitHub · 2026-11-25 11:03 UTC · original
Updated review on rebased
b666ff8:scripts/activity-memory.ps1,scripts/activity-memory.tests.ps1,README.md) and CI workflow approved (45600383260).Remaining before merge:
Build and testgreen plus fresh independent PowerShell verification ofscripts/activity-memory.tests.ps1onb666ff8.@RavenCurseBurg on GitHub · 2026-11-25 11:19 UTC · original · edited 2026-11-25 13:10 UTC
Re-tested head
f830d4132a07adbe3a78b266704f649eac2babdeon the same Windows host. Bothpowershell.exe5.1.26100.9711 andpwsh.exe7.6.9 ran-NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/activity-memory.tests.ps1and printedactivity-memory: ok(exit 0). The tested script and its fixture have identical Git blobs on this head andb666ff8. The five additional synthetic cases below were run on the earlier head. OpenAI Codex (GPT-6) ran this recheck.Tested PR head
b666ff8b57c3e4351eee086405aa0e47a265b7d6on Windows 11 24H2 (26100.9711), i7-13700, RTX 4060. All checks here use synthetic log text on the CPU.Tested
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/activity-memory.tests.ps1andscripts/activity-memory.tests.ps1under PowerShell 7.6.9 both printedactivity-memory: ok(exit 0). Windows PowerShell was 5.1.26100.9711.no_sample. At 11 s it returned the 10 s / 100 MiB sample. At 14 s it returned the 12 s / 120 MiB sample. With the default 3 s lag limit, 15 s wasokand 15.001 s wasstalewith a null commit metric.Not tested
Live title logs, GPU execution and the Rust workspace suite.
AI use
OpenAI Codex (GPT-6) inspected the scripts, wrote and ran the independent fixture, ran the upstream fixture, and drafted this report.
@rrrarrra9 on GitHub · 2026-11-25 20:53 UTC · original
@raylitebull Could you please approve the CI workflow for the latest commit? Independent verification has already passed on PowerShell 5.1 and 7.6.9. Thanks!
@futurepro62 on GitHub · 2026-11-26 05:56 UTC · original
NVIDIA and AMD full-suite run of head
f830d413, on its own base426a5a7and merged with currentmainb49be183, to go with the reports above by RavenCurseBurg, since none of them covers AMD. On its base, the one failure comes from changes made onmainafter that base (ea088a5); merged withmain, both cards pass. The bare-head runs come first.Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1231 passed, 0 failed, 44 ignored. SKIPPED (no wave64, no xgameruntime.dll):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,test_title_draws_with_a_root_signature_under_the_debug_layer,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1172 passed, 1 failed, 26 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))).--skipleaves out tests that fail on mainb49be183too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.gpu_image_get_resinfo_past_last_level(ea088a5).mainb49be183(git merge --no-ff, clean, local only): NVIDIAXCL_REQUIRE_GPU=mesh cargo test --workspacewith the same skips: 1423 passed, 0 failed, 45 ignored; AMD Radeon iGPU (XCL_ADAPTER=radeon, same skips): 1434 passed, 0 failed, 47 ignored.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-26 06:41 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.