Repository navigation
Fix main CUDA CI: oversized conv configs in the test, test-models-cuda timeout - #25392
Conversation
…r test-models-cuda - test_conv_implicit_gemm forces every config through the raw kernel, bypassing the autotuner. The FP32 igemm_tc_packed 128x128x64 x 3-stage tile needs 128 KiB of shared memory, more than an A10G's 99 KiB, so five tests fail. Skip and warn on OutOfResources as the autotuner does, as test_int8_quantized_gemm does, and still fail if no config of a schedule fits. - Measured conv routing times every convolution of resnet18, mv2 and mv3 at export, taking test-models-cuda from about 65 to about 100 minutes; give it the same 120 minutes as unittest-cuda.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25392
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Pending, 1 Unrelated Failure, 3 Unclassified FailuresAs of commit 84b3604 with merge base e9ddcda ( NEW FAILURE - The following job has failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude review effort=max |
|
Claude finished @Gasoonjia's task in 18m 56s —— View job I found no blockers in this fix for main CUDA CI, but the new Detailed reviewPR Review: #25392SummaryThe PR makes
Code Quality
Infrastructure
Testing
Specific Comments
RecommendationApprove, once this PR's
Review steps
|
Only the FP32 igemm_tc_packed 128x128x64 x 3-stage tile is known to exceed an A10G's shared memory, so check() skips just that tile, and only when it runs every config; any other OutOfResources still fails, so a shared-memory regression in another tile can't pass with only a warning.
|
Addressed in the latest push:
|
|
@claude review effort=max |
|
Claude finished @Gasoonjia's task in 18m 30s —— View job I found no blockers, but this PR's CUDA jobs test torch 2.14.0 while Detailed reviewPR Review: #25392SummaryThe PR narrows the
Code Quality
Infrastructure
Testing
Specific Comments
RecommendationApprove, after a rebase onto
Review steps
|
|
Merged. CI on 84b3604:
The other failures on this PR come from its base predating #25284 and #25393. Those are already fixed on
|
Fix the two CUDA jobs that fail on every
mainrun since the #25270–#25280 stack landed:unittest-cuda (kernel)andtest-models-cuda. That stack landed betweenfe24cf5777(both jobs green, 2026-11-19 06:48Z) and6b82a162e7(both red, 07:26Z). Everymainrun since then has failed the same way, most recentlye7f6aefd09.unittest-cuda (kernel): 5test_conv_implicit_gemmfailuresAll 5 failures are
OutOfResources: shared memory, Required: 131072, Hardware limit: 101376:test_every_config_of_every_scheduletest_split_ktest_transposedtest_weight_streamtest_winogradThe config that doesn't fit. I compiled every
implicit_gemm.CONFIGSentry for sm_86. Only one is too large for the A10G's 99 KiB:igemm_tc_packedtile(128, 128, 64)with 8 warps and 3 stages, in FP32 (TF32). That needs (3 − 1) × (128×64 + 64×128) × 4 B = 128 KiB._TC_PACKED_TILESby [executorch][cuda] Packed tensor-core schedule for FP16/BF16 3x3x3 convolutions #25272.Why only the test fails.
check(every_config=True)forces each config throughforce_conv_candidateand launches the raw JIT kernel, which bypasses the autotuner.OutOfResourcesconfig asinf, and Inductor's precompile drops it. So exports never select it.Fix: the test, not the kernel.
OutOfResourcesand emits a warning. This follows the existing pattern intest_int8_quantized_gemm.py.test-models-cuda: cancelled at its 90-minute timeoutBefore the stack, the job took 64–70 minutes; since then it has been cancelled at 90.2 minutes on 11 runs in a row. Almost all of the extra time is in the conv-heavy exports:
fe24cf5777(good)6b82a162e7(first bad)Why it got slower.
triton::convolution.This is the expected cost of that feature, and the job's job is to cover it, so I'm keeping it and raising the timeout to 120 minutes.
unittest-cudaalready uses the same limit. The projected runtime is about 100 minutes.Test plan
implicit_gemm.CONFIGSentry for sm_86 offline (triton 3.9). Only the FP32igemm_tc_packed (128, 128, 64, 8, 3)needs more than 101376 B.igemm_tc_packed big: shared memory;no igemm_tc_packed config fits this device;black24.4.2 andflake8are clean, andcuda.ymlparses.unittest-cuda (kernel)has notest_conv_implicit_gemmfailures and thattest-models-cudafinishes within the new limit.