Repository navigation
Recompiler: programs whose compact table needs more than 12,288 words take the plain form again - #3516
Recompiler: programs whose compact table needs more than 12,288 words take the plain form again#3516KDenKC wants to merge 1 commit into
Conversation
|
merge-check claim |
|
merge-check |
|
Test report: a game run of this PR's head on current
Result (1 run): ran to the 1,800 s limit ( Record For comparison, on Not tested: Claude Code, Claude Fable 5.2 ran the build and the game run, read the log and wrote this report. |
|
@KDenKC I matched compute record
The cold run reported I used Codex GPT-6.2 Sol to analyze the logs. A separate GPT-6.2 Sol agent independently matched the record and checked the return timings against all three runs. Codex GPT-6.2 Astra drafted this comment. I reviewed and approved this comment before posting. |
|
@MacieGx @SergeAx a request, only if you have the time: you have both reached the world on an RTX 5080, which would make a useful third RTX 50-series card here. Could one of you check whether #3261's compact form removes the device on a 5080, and whether this PR stops it?
Fair warning: this is a long A/B, and arm B's first start compiles that program cold (Gevroska measured 124 s on a 3080 above). Two runs per arm would settle it; one each already helps. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash. |
|
Test report: runs with this PR on an RTX 5070 Ti (arm B of the request in #505; I did not run arm A again tonight).
Hardware: NVIDIA GeForce RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124), i7-12700K, 32 GB RAM, Windows 11 Pro 26200. AI use: Claude Code, Claude Fable 5.2 made the runs and wrote this report. |
|
@BBareth thank you, and that's more than enough from you on this one 😄 Your 30-minute run earlier plus these seven (six clean, and run 7 a different removal: a page fault at VA 0x0 with AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash. |
|
Cross-linking an AMD result relevant to this PR's adapter-wide default: the RX 7900 XT report in #505 tested That report's faster comparison tree differs in more than this PR and had a different cache history. It does not establish that #3516 regresses AMD against a matched current- Before treating the 12,288-word default as an adapter-wide resolution, I suggest a matched AMD AI use: OpenAI Codex (GPT-6.2 Sol) checked the linked report, this PR's current head, and the source-level selection change. I did not run an AMD test. |
0dfcbd5 to
8d7d509
Compare
|
@thehollowedone thank you, agreed: crosettiremi's RX 7900 XT result shows the plain form of that program is the costly one on AMD, and an adapter-wide 12,288 default was not justified by evidence that is all NVIDIA's. Narrowed in 8d7d509 (squashed): the limit is 12,288 only when the main adapter's vendor is NVIDIA ( The tests now check both: the plain-form test builds a program over 12,288 table words and checks that it gets no compact plan at NVIDIA's limit and keeps it at AMD's, and the switch test covers the limit by vendor. A matched AMD AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash. |
|
merge-check
|
|
merge-check claim |
|
merge-check |
Folded, the two copies of each repeated memory access are compact blocks of their own, so a folded program's tables can pass the limit its split form's stay under, and it then took the plain form. On a tree with xcl-dev#3516's limit of 12,288 words, a retail wave64 compute program of 78,920 reachable instructions took the compact form split (11,311 table words) and, folded (14,805 words), the plain form: 4,346,408 B of DXIL in one function, which NVIDIA's compiler had not finished after ten minutes at 4.9 GB. The folded translation now refuses a program whose compact form is refused only for the size of its tables (compact::wanted_plan: the automatic choice before its table check), and the split form takes the compact form as it did before folding. Under main's 32,768 words no program of that pack changes: two folded programs want the compact form, with 14,776 and 14,805 table words. Under xcl-dev#3516's 12,288 both do. The test folds a program of 57,344 copies of a load whose split form's tables fit and whose folded tables do not: the folded translation is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up on overlaps, found by trial merges on
AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen. |
bmjask
left a comment
There was a problem hiding this comment.
Review of 868dd971: 2 finding(s). These are on lines outside the diff:
crates/xcl/src/shaders.rs:4072: On NVIDIA, the documented DXIL cache prefill (precompile-shaders.ps1 -Package without -Pipelines, i.e. xcl shaders --precompile, README ~274) never creates a device, so note_main_vendor never runs. It translates with the 32,768 limit and stores everything under the identity without the table tag, which the NVIDIA title never reads. With pipelines=false, precompile makes no Pipelines, main_vendor() is None, table_words_tag() is None, and translated::identity() is fixed without the tag. All ~16k programs, including 95cc13288a27a96e in compact form, are written under that identity. At title start the device records 0x10DE, the identity gets xcl-compact-table-12288, every lookup misses, and every program is translated again at launch. Passing the vendor (or the limit) explicitly to the prefill, or not making the limit vendor-dependent, would keep the prefill useful.
crates/xcl/src/gpu/recomp/pso.rs:362: Not certain about this one: translated::identity() and direct_output() are computed once (OnceLock), but max_table_words() reads MAIN_VENDOR live on every automatic_plan. A process that fixes the identity before the vendor is recorded, or whose vendor changes, stores translations made with one limit under the other limit's identity. Launch preparation calls preparation_driver_identity_for_adapter, which records the first candidate's vendor and fixes the identity with that tag. init_with_remap can then fall through to another adapter and overwrite MAIN_VENDOR, so later translations use the new limit under the fixed identity. In the direction where the identity is fixed without the tag, translations at 32,768 are later served from cache on NVIDIA, and the compact form of 95cc13288a27a96e (the hang this PR fixes) comes back. Resolving the limit once with the identity, or passing it with the translation request, would keep them consistent.
These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.
On NVIDIA, programs whose compact table needs more than 12,288 words take the plain form. The main adapter's vendor is resolved before offline shader precompile freezes its translation identity, and the table limit is snapshotted once so compact planning and its cache tag cannot disagree if vendor discovery happens later. XCL_COMPACT_TABLE_WORDS sets the limit on any adapter (1 to 32,768); a limit other than 32,768 goes into the translated cache identity with the nesting tag. The 16,121-word retail program is known to hang in compact form on RTX 50-series cards; on AMD its plain form can take minutes to compile and fail with E_OUTOFMEMORY. Other adapters keep the 32,768-word ceiling by default. Tests cover compact policy stability across vendor changes and ensure offline precompile resolves the vendor before freezing cache identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
868dd97 to
ab04eae
Compare
|
@bmjask thanks for the review. Both cache-ordering issues are fixed in The focused tests cover the policy snapshot ( The earlier whole-workspace run was on the pre-rebase head and its lib process was killed by an access violation while the VM lane was busy; I have not counted that as a clean result. The rebase removes the old-base D16 failure. A new smoke arm for AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen. |
|
Follow-up review (head ab04eae, since 868dd97, diff read, not a merge-check; checks red):
New:
Fine: the tag reaches every key that depends on the limit through AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
bmjask
left a comment
There was a problem hiding this comment.
Review of ab04eaed: 4 finding(s).
Re-review at ab04eaed. Precompile now records the vendor before the identity freezes, and the limit is frozen with the identity, which addresses both points from my earlier review in the normal case. The vendor-freezing approach has some new edge cases: 4 are inline.
These findings come from an AI-assisted review (Claude Code) and focus on correctness. Each is a candidate; please check it before acting on it.
| // This command has no D3D device, but its translated cache must use the same adapter | ||
| // policy as launch preparation. Resolve the selected DXGI adapter before freezing the | ||
| // translation identity or translating any shader. | ||
| if let Err(e) = precompile_identity_after_vendor( |
There was a problem hiding this comment.
xcl shaders --precompile now exits 2 whenever preparation_driver_identity_for_adapter("auto") can't find a hardware DXGI adapter, so translation-only precompile (no --pipelines) no longer runs on a machine without a GPU. On a CI box or headless VM with no hardware adapter (the CI check runs on Windows with no GPU), candidates() is empty, the function returns before note_main_vendor, and the command prints "could not resolve the selected DXGI adapter vendor" and exits 2. Before this PR it translated and filled the DXIL cache. With XCL_ADAPTER=<typo>, the title falls back to Auto (real.rs:990), but precompile now hard-fails instead. Falling back to the non-NVIDIA limit (or an explicit --vendor) when no adapter is found would keep it working.
| crate::gpu::adapter::candidates(&factory, &selector).into_iter().next()?.0.cast().ok()? | ||
| }; | ||
| // Cache identity can be read during launch preparation before a device exists. | ||
| crate::gpu::adapter::note_main_vendor(adapter.GetDesc().ok()?.VendorId); |
There was a problem hiding this comment.
preparation_driver_identity_for_adapter records the vendor of the first candidate, but the title's device creation (real.rs:991-1001) moves on to the next candidate when create_device fails and falls back to Auto. Whichever vendor is recorded first freezes the policy for the process. If launch preparation (warm_library::reuse -> expected_for_adapter) records vendor A and freezes table_policy, and init_with_remap then can't create a device on A and falls through to adapter B from another vendor, note_main_vendor(B) is ignored. The title runs on B with A's limit and cache tag, e.g. NVIDIA's 12,288 on an AMD device, where the PR says the plain form takes minutes to compile and runs out of memory.
| // translation identity or translating any shader. | ||
| if let Err(e) = precompile_identity_after_vendor( | ||
| || { | ||
| let _ = crate::hle::d3d12x::real::preparation_driver_identity_for_adapter("auto"); |
There was a problem hiding this comment.
Offline precompile records the first auto / XCL_ADAPTER candidate's vendor and ignores the d3d12_adapter setting in xcl.toml. Since the translated identity is now vendor-dependent, a mixed-vendor multi-GPU machine can build a cache the title never looks up. On a laptop with an NVIDIA dGPU (first in high-performance order) and an AMD/Intel GPU chosen in xcl.toml, xcl pso-precompile <game> without XCL_ADAPTER freezes at NVIDIA 12,288 and tags the identity xcl-compact-table-12288. The title's AMD device has no tag, so every precompiled translation misses. Resolving the adapter through the same Selector::from_env_or(cfg.d3d12_adapter) the title uses would match them.
|
|
||
| /// One process-wide snapshot is shared by automatic planning and the translation identity. The | ||
| /// selected adapter is noted before either path is entered, including offline precompile. | ||
| fn table_policy() -> TablePolicy { |
There was a problem hiding this comment.
Not certain about this one: the limit and tag still come from a process-global vendor set as a side effect at a few sites, and paths that never record it use 32,768 with no tag. xcl shaders --export-hlsl and --direct (export_hlsl at shaders.rs:1325, direct_sweep at shaders.rs:5337) never create a Pipelines or call note_main_vendor. On an RTX 5090 they translate 95cc13288a27a96e with limit 32,768, the compact form that hangs, so developers export or validate DXIL the NVIDIA runtime never produces. Resolving the vendor lazily inside table_policy(), or passing the limit with KernelOptions, would remove the call-order dependence.
Folded, the two copies of each repeated memory access are compact blocks of their own, so a folded program's tables can pass the limit its split form's stay under, and it then took the plain form. On a tree with xcl-dev#3516's limit of 12,288 words, a retail wave64 compute program of 78,920 reachable instructions took the compact form split (11,311 table words) and, folded (14,805 words), the plain form: 4,346,408 B of DXIL in one function, which NVIDIA's compiler had not finished after ten minutes at 4.9 GB. The folded translation now refuses a program whose compact form is refused only for the size of its tables (compact::wanted_plan: the automatic choice before its table check), and the split form takes the compact form as it did before folding. Under main's 32,768 words no program of that pack changes: two folded programs want the compact form, with 14,776 and 14,805 table words. Under xcl-dev#3516's 12,288 both do. The test folds a program of 57,344 copies of a load whose split form's tables fit and whose folded tables do not: the folded translation is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@Prime1997 could you take a look at this one for review and merge? My automated review notes are above, if any. |
|
merge-check World load on the retail title 1.0.2.1 (Series X profile, 4K swap chain, no Gaming Services installed, same data and DXIL cache folders across the runs):
Not tested: AMD and other NVIDIA generations; |
Folded, the two copies of each repeated memory access are compact blocks of their own, so a folded program's tables can pass the limit its split form's stay under, and it then took the plain form. On a tree with xcl-dev#3516's limit of 12,288 words, a retail wave64 compute program of 78,920 reachable instructions took the compact form split (11,311 table words) and, folded (14,805 words), the plain form: 4,346,408 B of DXIL in one function, which NVIDIA's compiler had not finished after ten minutes at 4.9 GB. The folded translation now refuses a program whose compact form is refused only for the size of its tables (compact::wanted_plan: the automatic choice before its table check), and the split form takes the compact form as it did before folding. Under main's 32,768 words no program of that pack changes: two folded programs want the compact form, with 14,776 and 14,805 table words. Under xcl-dev#3516's 12,288 both do. The test folds a program of 57,344 copies of a load whose split form's tables fit and whose folded tables do not: the folded translation is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Folded, the two copies of each repeated memory access are compact blocks of their own, so a folded program's tables can pass the limit its split form's stay under, and it then took the plain form. On a tree with xcl-dev#3516's limit of 12,288 words, a retail wave64 compute program of 78,920 reachable instructions took the compact form split (11,311 table words) and, folded (14,805 words), the plain form: 4,346,408 B of DXIL in one function, which NVIDIA's compiler had not finished after ten minutes at 4.9 GB. The folded translation now refuses a program whose compact form is refused only for the size of its tables (compact::wanted_plan: the automatic choice before its table check), and the split form takes the compact form as it did before folding. Under main's 32,768 words no program of that pack changes: two folded programs want the compact form, with 14,776 and 14,805 table words. Under xcl-dev#3516's 12,288 both do. The test folds a program of 57,344 copies of a load whose split form's tables fit and whose folded tables do not: the folded translation is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3261 raised the most table words a program may need to take the direct DXIL compact form from 12,288 to 32,768. On the retail title that lets one more program take it: record
95cc13288a27a96e, whose tables need 16,121 words (19,840 blocks of 1,471 kinds, 237,860 B of DXIL). Its Dispatch never finishes, and the device is removed at the first world frame (DRED's first operation not done: the Dispatch aftercs 95cc13288a27a96e). BBareth found it on #505; with the limit at 12,288 the program takes the plain form and the title stays in the world.This puts the limit back to 12,288 on NVIDIA adapters and keeps 32,768 on others.
XCL_COMPACT_TABLE_WORDS(1 to 32,768) sets it on any adapter; a value other than the default goes into the translated cache identity, with the nesting tag. Why the compact form of that program never finishes is not answered here (#3261's liveness or far-jump changes are the suspects in #505); this only stops the form from being chosen for tables that large.Fixes the removal at the first world frame reported on #3261. Related: #505, #3261. Overlaps #3562 (compact.rs table limit, kernel.rs cache tag) and #3479 (its sized_plan uses the table-limit constant this PR replaces with
max_table_words(): the two merge cleanly but the merged tree does not build until that line uses the function).What is in it (one commit)
gpu/dxil/compact.rs:default_table_words: 12,288 on NVIDIA (NVIDIA_TABLE_WORDS),TABLE_WORDS_CEILING(32,768) on other adapters and before the adapter is known;XCL_COMPACT_TABLE_WORDS(max_table_words,table_words) on any adapter;table_words_tag(a limit other than 32,768) for the cache identity;automatic_plan_withintakes the limit (tests).gpu/adapter.rs:note_main_vendor/main_vendor, noted where the title's device (hle/d3d12x/real.rs) and the launch preparation's (shaders.rs) are made, so both use the same limit and cache identity.gpu/dxil/kernel.rs:compact_nest_tagalso carries that tag, so all three identity sites (recomp/pso.rs) see it.gpu/dxil/compact_tests.rs:a_program_whose_tables_pass_the_limit_takes_the_plain_form(runs of repeated blocks added until the plan needs more than 12,288 table words, and at most 32,768: no plan at NVIDIA's limit, a plan at AMD's; CPU only),compact_table_limit_switch_parses(the limit by vendor, and the switch on any vendor).README.md: the limit by vendor and the switch, where the compact form is described.Cache. This changes translator source, so the direct DXIL source identity changes: every program is translated again (CPU and DXC) on the first run after updating, as with any translator change. Driver blobs are keyed by their DXIL, so only the programs whose DXIL changes need a new driver compile: on the retail title, by #3261's own count, 5 of 16,307 programs take the new form, so at most those.
Scope: NVIDIA only. The hang is seen on RTX 50-series (our RTX 5090, BBareth's RTX 5070 Ti); on an RTX 4080 the compact form of this program is built and the title stays in the world (throny, #505). On AMD the plain form is the costly one: on an RX 7900 XT with this PR, the driver compile of this program's plain form ran 150–311 s and returned
0x8007000ein 4 runs, and was still in the driver when 7 other runs ended, at the 48 GiB commit limit in most runs (crosettiremi, #505; thehollowedone pointed out what that means for an adapter-wide default, here). That report is not a matchedmain/ head comparison and does not show the compact form is right on AMD, but it is reason enough not to change AMD's default here. The rule is by vendor (0x10DE), not by RTX 50 device ids: all the evidence for the hang is NVIDIA's, and a device-id list would have to be kept up to date for every new card; the RTX 4080 result means NVIDIA cards older than the 50-series pay the plain form's compile cost for nothing (measured on an RTX 3080 below: 124 s once, then a driver blob).Tested
d52ff48c+ the new plain-form test only (50c72beb):cargo test -p xcl --lib -- a_program_whose_tables_pass_the_limit_takes_the_plain_form:868dd971(=8d7d5091+ the GPU vendor noted during launch preparation, so the translation cache's identity carries the table limit from the start),cargo test --workspace --no-fail-fast -- --test-threads=4(leaving out the 3uma_drivertests this VM cannot run): 2870 passed, 6 failed, 51 ignored; 28SKIPPED. The failures are this VM's onmaind52ff48c(gpu_direct_image_get_resinfo_d16, the threetitle_textures::stream_recheck_*,test_title_runs_and_game_folder_is_untouched) andplaced_title_textures_share_vram_and_preserve_pixels, which passes when run alone (onmaind0832e61and other heads): a failure of the parallel run on this VM.8d7d5091(the same tree as81d3f670, tested before the squash),cargo test -p xcl --lib -- compact:test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 2744 filtered out(the plain-form test now checks NVIDIA's limit and AMD's). The whole suite on this head,cargo test --workspace --no-fail-fast -- --test-threads=4(leaving out the 3uma_drivertests this VM cannot run): in both runs the lib test binary was killed by an access violation in the parallel run (seen onmainruns on this VM too); the other binaries 142 passed, 1 failed, 20 ignored, and the lib binary's one-thread rerun (all ofuma_driver::testsleft out) 2723 passed, 5 failed, 31 ignored. The failures aremaind52ff48c's on this machine:gpu_direct_image_get_resinfo_d16, the 3title_textures::stream_recheck_*andtest_title_runs_and_game_folder_is_untouched.0dfcbd5e,cargo test -p xcl --lib -- compact:8d7d5091,cargo test --workspace --no-fail-fast -- --test-threads=4(leaving out the 3uma_drivertests that need a GPU upload segment this VM does not have): the other binaries 142 passed, 1 failed, 20 ignored; the lib binary gave no result in the parallel run, so its tests come from a one-thread rerun that leaves out all ofuma_driver::tests: 2727 passed, 1 failed, 31 ignored. SKIPPED: 11 (7 no wave64, 1 no heap windows, 3 no debug layer). The 2 failures,gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16andtest_title_runs_and_game_folder_is_untouched, fail onmaind52ff48con the same machine too (its run lost the lib binary the same way; its one-thread rerun: 2721 passed, 5 failed, 31 ignored, the other 3 beingtitle_textures::stream_recheck_*, which pass here).maind52ff48cwith our local runner patches (an input filter, D3D12.X: XCL_PAIR_PAGES=1 caps a texture in a live one's memory to its pages #3281, a port of D3D12.X: a sampled texture in the memory of a written one of another format is copied from it (XCL_ALIAS_COPY=1) #3094 with the fix posted there), the same switches in each pair:16f2f5c1(two runs):16f2f5c1reverted (two runs):WORLD (+268 s in it, entry at 107 s); world fps 5.4; crashes 0, device removals 0andWORLD (+246 s in it, entry at 98 s); world fps 5.9; crashes 0, device removals 0.8d7d5091reached the world (entry at 247 s, 600 s, no device removal; its smoke pair wasmain9dfbe3e 2,797 / 0 / 46,900 MB against 3,177 / 0 / 48,123 MB); this head868dd971stayed in the menus under the same recipe (see Regression run); and the run by BBareth below.main9dfbe3e merged with this head (clean), release, RTX 5070 Ti 16 GB, driver 621.24, 1,800 s withXCL_DRED=1 XCL_PLACE_RETIRE=0 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PRESS_A_AT=450 XCL_ACTIVITY=1 XCL_CS_PSO_WAIT_MS=250, noXCL_SKIP_CS, noXCL_COMPACT_TABLE_WORDS: ran to its 1,800 s limit with no device removal, about 1,260 s of it in the world; record95cc13288a27a96e's compute PSO is made from 1,383,220 B of DXIL again (the plain form; 237,860 B in the compact form that hung). Their merge check onmain9dfbe3e:cargo test --workspace --no-fail-fast -- --test-threads=4: 2887 passed, 1 failed (gpu_direct_image_get_resinfo_d16, failing on the base alone too), 51 ignored.95cc13288a27a96e's compute pipeline took 124.0 s cold in the plain form (this head, no driver blob), against 14.2 s for the compact form ond52ff48c, and 0.2 s warm once XCL supplies the driver blob. Their two device errors came 39 min 29 s and 190.6 s after that creation returned; their logs do not tie them to this program.Regression run
RTX 5090 32 GB, driver 621.40, the retail title, 600 s each,
scripts/smoke.ps1with preparation off (XCL_PREPARE=0), themainarm from a copy of a translated cache made bymain. Both runs used this machine's usual settings (XCL_UMA_WINDOWS=16,XCL_UMA_DRIVER=mixed:1536:1792,XCL_COHERENT_MB=4095,XCL_HUGE_PSO_CONCURRENCY=3),XCL_DRED=1, held Enter from the first frame, andXCL_SKIP_CS=95cc13288a27a96e. The head arm started from a translated cache made by a prepared run of this head (its cache identity carries this PR's table limit, somain's cache does not serve it); it built the program this PR changes in its plain form (1,383,220 B of DXIL) and left its dispatches out.The head arm stayed on the title's menus for its 600 s under this recipe on this machine (shader preparation off, held-Enter input; other heads did the same tonight), so this pair checks start-up and the menus only: no device removal and no crash in either run; the head's 14,802 frames are menu presents and say nothing about speed or the world. The world is covered by BBareth's runs (RTX 5070 Ti, 7 runs), claudetools-gh's A/B (RTX 5070 Ti) and our pair on the previous head (
8d7d5091, same base, world entry at 247 s), listed under Tested.main9dfbe3e:this head
868dd971:Not tested
main's 32,768; the AMD plain-form cost above is from the PR's earlier, adapter-wide head).mainrun did not hang within its 600 s (the smoke recipe does not reach the hang), so the pair shows no regression, not the fix; the removals it fixes are under Tested.95cc13288a27a96ehangs.AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR