Repository navigation
Recompiler: the compact form's larger tables on every GPU again - #2375
Royalflamejlh wants to merge 1 commit into
Conversation
This takes out e964ad2, which kept the table limit of 8,192 words on a GPU with 64-lane waves. It was added after a run on an RX 9070 XT at cbc296a, where neither form of the program it let in built within 24 GB and the compact form reached that sooner. Since xcl-dev#2174 the compact form nests its dispatch by default, and on the same card model with 64 GB that program's nested compact form built in 159 to 203 s at about 34 GB with heap memory windows, where its plain form, which the guard kept, passed 48 GB (komglebissarov on xcl-dev#2088, 1 run per form). With the default switch windows both forms passed 48 GB, so that path does not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@Royalflamejlh here's the run you asked for. On an RX 9070 XT with 32 GB of RAM, this branch builds Setup
Method
Read / inference
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the measurements and drafted this. Counts and timings only, no game data. |
|
@bielfreedom: thank you, that settles it for heap windows. On the RX 9070 XT with 32 GB, this branch built the program in 138 and 149 s at a 17.6 GB peak, 2 of 2 runs. The plain form the guard kept passed 24 GB and was stopped. So with heap windows the guard kept the one form that built out of reach. With the default switch windows neither form built within 24 GB, and the compact one got there sooner (95 s against 226 s), so the guard bought nothing there either. Your table is in the description. AI use: Claude Code (Claude Opus 5.5) wrote this reply. Posted without review by a person: the account owner was away and reads replies later. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
On a GPU with 64-lane waves, the direct compact form again takes tables of up to 12,288 words, as on a GPU with 32-lane waves. This takes out the guard of #2076's last commit (
e964ad2). WithXCL_DIRECT_DXIL=1, record95cc13288a27a96ethen takes the compact form there too. Part of #2088.What holds now, on one AMD card model, the RX 9070 XT, in 2 runs on each of two machines: with heap windows (
XCL_HEAP_WINDOWS=1) this program's compact form builds, and its plain form, which the guard kept, did not within 48 GB. @bielfreedom's run of this branch on a 32 GB machine built it in 137.8 and 149.1 s at a 17.64 GB peak (2 of 2), where68a284a's plain form passed 24 GB; @komglebissarov's run on a 64 GB machine, onmain0829441before #2076 with the form forced, built it in 198 and 203 s at 33.9 GB, where the plain form passed 48 GB. With the default switch windows neither form builds within 24 GB (the compact form gets there sooner, 95 s against 226 s), so on the default path the guard bought nothing. The guard came from @bielfreedom's run oncbc296a, before #2174 nested the dispatch, where neither form built within 24 GB and the compact form reached it sooner (31 s against about 205 s).What is in it
kernel.rs,compact.rs,pso.rs:translate_compute_on,TABLE_WORDSandTABLE_WORDS_WAVE32go; the limit is 12,288 words for every GPU, as it was at Recompiler: direct compact form stores a branch's target in the entry #2076's third commit.compact_tests.rs:a_gpu_with_64_lane_waves_keeps_the_first_table_limitgoes with the guard; the fixture's program builder goes back into its test.Tested
x86_64-pc-windows-gnu.mainis68a284a, the head3205f86.XCL_DIRECT_DXIL=1 xcl shaders <folder> --precompile --only cs --split 0(a GPU with 64-lane waves) from an empty cache, 1 translation each:95cc13288a27a96egoes from 2,420,640 B (plain) to 1,218,224 B (compact, 13,890 blocks of 2,643 kinds); withXCL_HEAP_WINDOWS=1from 2,177,324 B to 1,078,544 B. The other five aremain's bytes in both window forms (SHA-256), and with--split 1all six are.3205f86against its parent68a284a: RX 9070 XT 16 GB (native wave64, driver 32.0.32029.2010), Ryzen 7 7700, 32 GB RAM, Windows 11, release,XCL_DIRECT_DXIL=1, nestingauto, one pipeline thread,XCL_PSO_DISK_CACHE=0and a new exe name per run, this record alone, a watchdog at 24 GB of private bytes, each build with a local patch that logs DXIL size and driver time:68a284a68a284aThe DXIL sizes are the ones above byte for byte.
main: thegpu_tests 159 passed, 4 failed, the four failing onmainthere too by their report.main:cargo test -p xcl --lib1,039 passed, 0 failed on a single-threaded rerun; one test aborted in one parallel run (Test suite: parallel cargo test intermittently dies with 0xc0000005 (hle::d3d12x queue_tests × list_x race) #1978).cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=8under Wine, no card: 1,281 passed, 8 failed, 46 ignored;main68a284a: 1,283 passed, 7 failed, 46 ignored, 335 SKIPPED lines on both. The sevenmainhas fail here too. The eighth,xapu_connect_returns_oom_and_cleans_up_on_failure(an audio test, "data buffer must be released when event creation fails"), passed in this pull request's own CI run and in 3 of 3 runs of its own here. One test fewer passes because the guard's test goes.-p xcl --lib -- compact --test-threads=4: 11 passed, 0 failed (the card tests skip there).cargo test --workspace -- compact --test-threads=1at3205f86, 1 run: 11 passed, 0 failed, none skipped. The whole suite there,cargo test --workspace -- --test-threads=4: 1,288 passed and 1 failed at3205f86, 1,289 passed and the same 1 failed onmain68a284a(a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier), 29 SKIPPED lines on both, the same tests; one test fewer because the guard's test goes. This card cannot show the path the change opens.Build and test (Windows, no GPU)fails ona_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, which fails the same way inmain's own CI at68a284aand50a9fde.Regression run
Native Windows 11, RTX 2070 SUPER 8 GB (driver 621.01), the retail title, 60 s, 1 run each, the head first.
smoke.ps1sets noXCL_DIRECT_DXIL, so neither run reaches this code.main:
PR:
Not tested
AI use