From 1051db25b0284c8038a2e5d01a8b4a944ef88ddd Mon Sep 17 00:00:00 2001 From: MarcosMDev <54442113+MarcosMDev@users.noreply.github.com> Date: Thu, 26 Nov 2026 15:52:52 -0300 Subject: [PATCH] Tests: the split compute test's piece limit leaves room for the thread limit test f9bcafd put the thread limit test in a compute program's entry block, which in split_compute_prefers_the_offline_whole_pipeline's program is now 52 instructions. With the test's piece limit of 12, dispatch_plan keeps a program whole when one block is over 4 x the limit (48), so no dispatch chain is made and the child run fails at assert!(compiled.dispatch_chain.is_some()) on every GPU. The limit is now 16. The default limit (12 500) is unaffected. The other test f9bcafd broke on a GPU, gpu_compute_thread_limits_leave_the_lanes_past_them_out, was fixed in ecc0bb5. Co-Authored-By: Claude Opus 5.5 --- crates/xcl/tests/gpu_compute_e2e.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/xcl/tests/gpu_compute_e2e.rs b/crates/xcl/tests/gpu_compute_e2e.rs index 5ffa519a96..927d33f493 100644 --- a/crates/xcl/tests/gpu_compute_e2e.rs +++ b/crates/xcl/tests/gpu_compute_e2e.rs @@ -160,8 +160,10 @@ fn split_compute_prefers_the_offline_whole_pipeline() { assert!(files.next().is_none() && blob.metadata().unwrap().len() > 0); for case in ["hit","stale","miss"] { if case == "stale" { fs::write(&blob, b"rejected driver cache fixture").unwrap(); } + // (16: the entry block, with its thread limit test, is about 50 instructions, and a block + // over 4 x the limit keeps the program whole) run(Command::new(std::env::current_exe().unwrap()).args(["--exact","split_compute_prefers_the_offline_whole_pipeline","--nocapture"]) - .env("XCL_DIRECT_SPLIT_INSTRUCTIONS","12").env("XCL_TEST_WHOLE_CASE",case)); + .env("XCL_DIRECT_SPLIT_INSTRUCTIONS","16").env("XCL_TEST_WHOLE_CASE",case)); assert_eq!(blob.exists(), case == "hit"); } fs::remove_dir_all(dir).unwrap();