Gemini 4 Neon 4.23×
Harness: Antigravity · switches: GS_OPT_FUSED_ADAM=1 GS_OPT_NO_SYNC=1 GS_OPT_FAST_RENDER=1 GS_OPT_FAST_PREPROC=1 GS_OPT_CUSTOM_ADAM=1 GS_OPT_FAST_BINNING=1 GS_OPT_FAST_RENDER2=1 GS_OPT_FAST_LOSS=1 GS_OPT_FAST_DENSIFY=1 GS_OPT_FAST_PREPROC2=1 GS_OPT_FAST_RENDER3=1 GS_OPT_FAST_PIPELINE=1 GS_OPT_FAST_RENDER4=1 GS_OPT_QUAD_BWD=4 GS_OPT_FWD_HALFTILE=1
API stalls passed the 6 h pause allowance, so the lost time was run as a continuation of the same conversation on the saved submission (228 min); the judged result is the continuation's. The time axis leaves out the held time of both segments.
- Judged
- 4.23×
- Tier
- N1
- Self-best
- 4.22×
- Rounds
- 15
- Hours
- 10.0
- API cost
- $103
- Input tokens · 97.0% cached
- 296 M
- Output tokens
- 2.3 M
- Requests
- 1,051
§ 02Key levers
- Smaller tiles + rewritten binning
- ✗ binning tile stays 16×16; binning rewritten: round 6 exact per-row ellipse tile count, no padding keys, sort key packed to 32 bits (6 passes → 4)
GS_OPT_FAST_BINNING=1(2.10 → 2.29); exact 4×4 sub-tile masks inside the tile: round 7 forward and backward together (2.29 → 2.80), round 14 backward compacted by sub-tileGS_OPT_QUAD_BWD(3.72 → 3.95), round 16 forward split into 16×8 half tilesGS_OPT_FWD_HALFTILE=1(with backward changes 3.95 → 4.22) - Bypass autograd, activations folded into raster kernel
- activations ✓ folded into preprocess (round 4
GS_OPT_FAST_PREPROC=1, backward preprocess and cov2D merged into one kernel, 1.66 → 1.76); autograd not bypassed; from round 8 the loss grad is computed directly and passed toimage.backward() - Lazy Adam (update only visible Gaussians)
- tried, reverted: round 5 lazy replay on
_features_rest, full run 170.8 s (1.80×) vs dense float4 Adam 146.6 s (2.10×) in the same round; log measured 66% of Gaussians with radii > 0 per view, ~77% of SH still replayed or updated each step - Fused loss / SSIM
- ✓ round 8
GS_OPT_FAST_LOSS=1: ground-truth SSIM mean / variance cached per camera, L1 and D-SSIM grads written straight into the image grad by one kernel (0.2765 → 0.0650 ms, 2.80 → 2.93); round 12 also folds in the clamp - Other main levers
- round 3 rewritten forward / backward render kernels (1.27 → 1.66), custom single-launch float4 Adam that skips unwritten grads (round 5 1.76 → 2.10), SH grads kept as a 24 B / Gaussian compact record and rebuilt inside Adam (round 10
GS_OPT_FAST_PREPROC2=1, 2.99 → 3.15), tiles launched in descending Gaussian count + octagon sub-tile mask + PTXex2.approx/rcp.approx(round 11 3.15 → 3.64), single-pass densification (round 9 2.93 → 2.99), persistent buffers (round 12 → 3.70)
§ ARaw trace
Raw work log15 sections
-10.0 hRound 1: Baseline Profiling & Fused Adam (`GS_OPT_FUSED_ADAM=1`)
- Start / End: 2026-11-19 18:18:41Z – 18:32:30Z - Baseline Profiles (unchanged reference): - Mid-densification (--from 7000 --iters 20,/tmp/r1/profile_7k):10.718 ms/itwall | GPU active9.214 ms/it (86.0%)| GPU idle1.504 ms/it (14.0%). Top:PerGaussianRenderCUDA2.648ms (24.7%),Adam2.533ms (23.6%),renderCUDA1.628ms (15.2%), GPU idle 1.504ms (14.0%), bwdpreprocessCUDA0.500ms (4.7%),duplicateWithKeys+RadixSort0.729ms (6.8%), activations/zeroing 0.85ms (7.9%). - Post-densification (--from 20000 --iters 20,/tmp/r1/profile_20k, ~2.03M Gaussians):11.615 ms/itwall | GPU active10.297 ms/it (88.7%)| GPU idle1.318 ms/it (11.3%). Top:PerGaussianRenderCUDA2.942ms (25.3%),Adam2.919ms (25.1%),renderCUDA1.773ms (15.3%), GPU idle 1.318ms (11.3%), bwdpreprocess+cov2D0.650ms (5.6%),duplicateWithKeys+RadixSort0.859ms (7.4%), activations/zeroing 0.85ms (7.3%),fused-ssim0.134ms (1.2%). - Change: Enabletorch.optim.Adam(..., fused=True)behindGS_OPT_FUSED_ADAM=1. - Results:check --quick(/tmp/r1/quick) PASS;time(/tmp/r1/time)264.625 s(windows[74.320, 96.964, 93.341],1.1645x). ---
-9.7 hRound 2: Host Sync Removal, Fused Densification Stats & Bucket Sync Elimination (`GS_OPT_NO_SYNC=1`)
- Start / End: 2026-11-19 18:33:17Z – 18:45:32Z - Profile of R1 (--from 7000 --iters 20,/tmp/r2/profile_7k):9.204 ms/itwall | GPU active7.918 ms/it (86.0%)| GPU idle1.286 ms/it (14.0%). - Changes (GS_OPT_NO_SYNC=1): Eliminatedloss.item(),elapsed_time,network_gui.try_connect(), no-opalpha_maskmultiply; fusedupdateDensificationStatsCUDAreplacing(radii>0).nonzero()+ 8aten::index; reused leafscreenspace_points; eliminatedbucket_sumD2H sync via exact upper bound(num_rendered+31)/32 + num_tiles; fixed 256x over-allocation ofbucket_to_tile; eliminated D2Dpixel_colors/pixel_invDepthscopies; pinned host memory fornum_rendered. - Results:check --quick(/tmp/r2/quick) PASS;time(/tmp/r2/time)242.790 s(windows[66.075, 89.556, 87.159],1.2692x). ---
-9.1 hRound 3: Fast Forward & Backward Tile Rasterizer (`GS_OPT_FAST_RENDER=1`)
- Start / End: 2026-11-19 18:45:52Z – 19:22:20Z - Profile of R2 (--from 7000 --iters 20,/tmp/r3/profile_7k):7.925 ms/itwall | GPU active7.739 ms/it (97.7%)| GPU idle0.185 ms/it (2.3%). Top:PerGaussianRenderCUDA2.639ms (33.3%),renderCUDA1.615ms (20.4%),Adam(fused)1.248ms (15.7%), bwdpreprocess+cov2D0.549ms (6.9%),duplicateWithKeys+RadixSort0.710ms (9.0%). - Changes (GS_OPT_FAST_RENDER=1): 1. Packedsampled_T+sampled_arinto single coalescedfloat4sampled_T_ar; eliminated depth computation andsampled_ard/dL_dinvdepthswhen depth loss is disabled (mark_non_differentiable+set_materialize_grads(False)). 2.renderCUDAFast: shared-mem RGB preload + pre-scaled conic +min_power = -log(255*op) - 1e-4early reject before__expf+ chunked 32-splat loops + exact 2D warp/block max reduction formax_contrib(also fixes upstream's 1Dcub::BlockReduce<uint32_t, 256>race on 2D(16,16)blocks!). 3.PerGaussianRenderCUDAFast: tile-chunkeddim3(num_tiles, 8)× 4 warps/block (128 threads), tile shared memory forpixel_colors/dL_dpixels/n_contrib/bg_term, warp active-pixel compaction via__ballot_sync/__popc, 32-lane coalescedfloat4sampled_T_arloads,min_powerearly reject before__expf, single__frcp_rn(1 - alpha), hoisted0.5*W/0.5*H, skipatomicAddwhen!touched. - Results: -check --quick(/tmp/r3/quick): PASS (exact_items_pass) -time(/tmp/r3/time):185.664 s(windows[51.633, 68.624, 65.407],1.6597x, -57.13 s vs R2, -122.49 s vs ref; peak alloc 5.51 GiB). -check --n1(/tmp/r3/n1): PASS (N1) — PSNR+0.08σ(25.4569), SSIM-0.46σ(0.88457), LPIPS-1.04σ(0.14251),log_count+0.12σ(14.5231). - Promoted R1+R2+R3 (a76fc4c) to/submission/gaussian-splattingand/submission/switches.json! - Profile of R3 (--from 7000 --iters 20,/tmp/r4/profile_7k): -6.154 ms/itwall | GPU active5.982 ms/it (97.2%)| GPU idle0.172 ms/it (2.8%)-renderCUDA:1.615ms -> 0.874ms(1.85x);PerGaussianRenderCUDA:2.639ms -> 1.600ms(1.65x). - Remaining hotspots at 7k:PerGaussianRenderCUDAFast1.600ms (26.0%),Adam(fused)1.260ms (20.5%),renderCUDAFast0.874ms (14.2%), bwdpreprocess+cov2D0.549ms (8.9%),duplicateWithKeys+RadixSort0.743ms (12.1%), PyTorch activations +FillFunctor0.50ms (8.1%), fwdpreprocessCUDA0.142ms (2.3%),fused-ssim0.134ms (2.2%). ---
-1.2 hRound 4: Fused Activations, Merged Backward Preprocess & Fast Grad Zeroing (`GS_OPT_FAST_PREPROC=1`)
- Commit:264603b(branchdev) - Changes (GS_OPT_FAST_PREPROC=1): 1.preprocessCUDAFast<C, RAW_ACT>(forward.cu): earlypz <= 0.2fcull before projection/activations; fusesexp(scales),F.normalize(rotations, eps=1e-12),sigmoid(opacities)inline after culling; keepscov3D[6]in registers and writescov3Dsonly for visible Gaussians; reusesp_viewincomputeCov2DFromView. 2.preprocessBackwardCUDAFast<C, RAW_ACT>(backward.cu): mergescomputeCov2DCUDA+preprocessCUDAinto 1 kernel; early-exits occluded/zero-grad Gaussians before Cov2D/SH/Cov3D/activations; keepsdL_dcov[6]in registers (eliminatesdL_dcov3Dbuffer whencov3D_precompempty); skips SH backward on clamped/zero RGB grad; fusessigmoid/exp/F.normalizebackward inline. 3. Replacedtorch::zeros(FillFunctor) for backward grad buffers withfastZeros(torch::empty+cudaMemsetAsync). - Results: - T1 numerical test (deg=0..3,aa=False/True, zero-norm quat edge case):deg=3 fast_rawimg mean diff4.42e-8, all 6 raw param grad rel mean diff4.9e-7 .. 3.3e-6. -check --quick(/tmp/r4/quick): PASS (exact_items_pass). -time(/tmp/r4/time):174.678 s(windows[55.246, 61.512, 57.920],1.7641x, -10.99 s vs R3; Windows 2 & 3 dropped -7.11 s and -7.49 s; peak alloc 5.44 GiB). - Profile of R4 (--from 7000 --iters 20,/tmp/r5/profile_7k): -5.522 ms/itwall | GPU active5.373 ms/it (97.3%)| GPU idle0.149 ms/it (2.7%). -preprocessBackwardCUDAFast:0.549ms -> 0.322ms; PyTorch activations +FillFunctor:~0.50ms -> 0.133ms(cudaMemsetAsync). - Top remaining hotspots:PerGaussianRenderCUDAFast1.606ms (29.1%),Adam(fused)1.269ms (23.0%),renderCUDAFast0.867ms (15.7%),duplicateWithKeys0.482ms (8.7%),preprocessBackwardCUDAFast0.322ms (5.8%),CUB::RadixSort0.248ms (4.5%),preprocessCUDAFast0.141ms (2.6%),cudaMemsetAsync0.133ms (2.4%),fused-ssim0.134ms (2.4%). ---
-0.3 hRound 5: 1-Launch `float4` Streaming Exact Adam + `skip_zero_grads` + Active-SH-Band Skip (`GS_OPT_CUSTOM_ADAM=1`)
- Commit:f6cb86a(promoted to/submission/gaussian-splatting&/submission/switches.json) - Failed / Superseded Experiment (R5v1 — Lazy Exact Replay on_features_rest): - Built and T1-verified (< 3.1e-6over 200 steps) exact lazy zero-grad Adam replay on_features_restwith warp-cooperativecomputeSHForwardAndReplayCUDA+adamStepLazySHCUDA. - Measured170.799 s(1.8042x, only-3.9 svs R4). Profiling at 7k showed why: on the outside-in 360° truck orbit,vis (radii > 0) = 66%per view, soneed_replay + sh_touched ≈ 77%of_features_restwas still touched every step, split across two unaligned 180B-stride warp-ballot kernels at only1.44–1.97 TB/s(0.592 + 0.348 = 0.940 ms/it). - Final Design (GS_OPT_CUSTOM_ADAM=1): 1.FastExactGaussianAdam(torch.optim.Adam)+ 1-launch block-dispatchedfloat4streaming kerneladamStepFused6CUDA(adam.cu) updating all 6 params (xyz, f_dc, f_rest, opacity, scaling, rotation) in a single launch withuint32_tconstant-divisor magic multiplies (stride = 1, 3, 4, 45) andadamStepPartialSHCUDAforD = 1, 2(skippingf_restcompletely forD = 0). 2.preprocessBackwardCUDAFastemits a 1-byteuint8_t touched_flags[P]mask (bit 0 = geom_touched,bit 1 = sh_touched);RasterizeGaussiansBackwardCUDAallocatesdL_dmeans3D, dL_ddc, dL_dsh, dL_dscales, dL_drotationswithtorch::empty(eliminating ~470 MB/it ofcudaMemsetAsync!) andadamStepFused6CUDAskips readinggradon untouchedfloat4s and skips stores whenm == v == 0. 3. Microbenchmark on Hopper:FastExactAdamhits4.90 TB/seffective BW (0.430 msat 7k vs PyTorch fused Adam0.972 ms,2.26xfaster;0.620 msat 20k vs1.211 ms). 4. Critical bug caught by Gate 3 N1: Initialcheck --n1failed (LPIPS +6.71σ,log_count +3.07σ). Bisected to step 600 counts and step-1 diff: upstreamnp.asarray(pcd.points)gaveself._xyzFortran-ordered stride(1, P)for steps1..599! Fixingfused_point_cloud.contiguous()inscene/gaussian_model.pybrought step-1..10 diffs vs R4 to1e-9 .. 1e-7across all SH degrees0..3! - Results: -check --quick(/tmp/r5/quick): PASS (exact_items_pass). -time(/tmp/r5/time):146.596 s(windows[41.213, 54.202, 51.181],2.1021x, -28.08 s vs R4, -39.07 s vs R3, -161.56 s vs ref;204.63 steps/s). -check --n1(/tmp/r5/n1): PASS (N1) — PSNR-1.94σ(25.378), SSIM-1.55σ(0.88432), LPIPS+0.67σ(0.14308),log_count+1.91σ(14.5328). - Promoted R4+R5 (f6cb86a) to/submission/gaussian-splatting&/submission/switches.json! ---
-0.1 hRound 6: Exact Analytical Row-Slab Ellipse Binning & 32-bit RadixSort (`GS_OPT_FAST_BINNING=1`)
- Commit:7e52bd1(branchdev) - Profile of R5 (--from 7000 --iters 20,/tmp/r6/profile_7k):4.795 ms/itwall | GPU active4.680 ms/it (97.6%)| GPU idle0.114 ms/it (2.4%).adamStepFused6CUDA0.661ms (13.8%),duplicateWithKeys + CUB::RadixSort + identifyTileRanges0.753ms (15.7%),PerGaussianRenderCUDAFast1.598ms (33.3%),renderCUDAFast0.876ms (18.3%). - Changes (GS_OPT_FAST_BINNING=1): 1.EllipseTileIter(auxiliary.h): exact analytical convex ellipse-slab x-projection per tile row (with 1x1 fast path), shared identically bypreprocessCUDAFast(exact tile count) andduplicateWithKeysFast(emits zero dummy sentinel keys!). T1 test on1040×1040(64-bit key) achieved bit-exact0.00e+00image diff vs upstream. 2. 32-bit RadixSort key (tile_id (12b) | depth (20b)via__float_as_uint(depth) >> 11) whennum_tiles <= 4096(with 64-bit fallback), cutting key storage 2x and radix passes from 6 to 4, plus sentinel-freeidentifyTileRangesFast32. 3. Added defensiveis_contiguous()guard inFastExactGaussianAdam.step(). - Results: -check --quick(/tmp/r6/quick): PASS (exact_items_pass, step 3000 count1,092,233vs R31,092,251). -time(/tmp/r6/time):134.399 s(windows[35.928, 54.466, 44.005],2.2928x, -12.20 s vs R5; Window 3 dropped to44.005 s=4.40 ms/itat 2M Gaussians;223.2 steps/s). ---
1.2 hRound 7: 4x4 Dual-Half-Warp Exact-Mask Forward & Exact-Worklist 1-Bucket-Per-Warp Backward (`GS_OPT_FAST_RENDER2=1`)
- Commit:012ea06(promoted to/submission/gaussian-splatting&/submission/switches.json) - Failed / Superseded Experiments: - R7v1 (GS_OPT_WARP_BWD=1— reverse-order per-pixel warp-reduced backward): T1-exact (0.00e+00img diff onblack_bg),check --quickPASS, buttime = 151.545 s(2.0334x, +17.1 s slower than R6). Profiling showed heavy-tile tail waves (2,170 blocks,max 3.216 ms) + up to 8x L2 atomic contention per Gaussian per tile (2.211 msvs1.599 ms), and__launch_bounds__(256,8)slowed forward (1.136 msvs0.883 ms). Reverted. - R7v3/R7v4 (PerPixelBucketRenderCUDA— pixel-major bucketed backward with 8x4 / 4x4 sub-tile masking + warp shuffle grad reduction): T1-exact (rel_l2 ~ 5e-7), beat R6 (1.350 msvs1.584 ms), but 9-float warp reduction + SMEM RMW per hitting splat kept it ~0.08 ms behind worklist systolic (1.270 ms). - Final Design (GS_OPT_FAST_RENDER2=1): 1.renderCUDAFast2(forward.cu): 4x4 dual-half-warp sub-tile layout (tid = hw_id * 16 + hl) + exact conservative 16-bit ellipse sub-tile bitmask (computeEllipseSubtileMask16) transposed via__ballot_syncintobucket_hw_mask[8][16], skipping ~75–85% of non-overlapping splats inwhile (m)(__ffs); skips bucket-0sampled_T_arwrite and uses__stcsstreaming stores for remaining active pixels; compiles to 32 regs, 0 spills (100% occupancy). Dropped forward rasterizer at 7k from0.873 ms -> 0.574 ms(2.84x vs baseline). 2.buildBucketWorklistCUDA<8>+PerGaussianRenderCUDAFast2Worklist<8>(backward.cu): exact zero-sync tile-bucket worklist (worklistinSampleState, 1 bucket per warp = 8 buckets/block, eliminating heavy-tile tail waves and outerbloop); compiles to 48 regs, 0 spills (62.5% occupancy vs 50%); packspc = (n_contrib << 8) | p_xycutting shuffles 9 -> 5; deferss_dLloads insideif (alpha >= 1/255); factored gradient math (19 -> 8 FLOPs/hit); 4x4 sub-tileunion_maskpruning (__reduce_or_sync) +all_fullbranch bypass;__ldcsstreaming reads + bucket-0 skip. Dropped backward rasterizer at 7k from1.584 ms -> 1.267 ms(2.09x vs baseline). - Results: - T1 numerical test (black_bgandnonblack_bg):img rel_l2 = 3.94e-9,radii = 0.0, all 7 param gradrel_l2 = 4.6e-7 .. 4.7e-6. -check --quick(/tmp/r7/quick_r7v5): PASS (exact_items_pass). -time(/tmp/r7/time_r7v5):110.026 s(windows[31.406, 40.740, 37.880],2.8007x, -24.37 s vs R6, -36.57 s vs R5, -198.13 s vs ref;272.64 steps/s; peak alloc4.92 GiB). -check --n1(/tmp/r7/n1_r7v5): PASS (N1) — PSNR-1.40σ(25.3992), SSIM+1.53σ(0.88503), LPIPS-1.08σ(0.14250),log_count+1.49σ(14.5305,2,044,241). - Promoted R6+R7 (012ea06) to/submission/gaussian-splatting&/submission/switches.json! ---
1.6 hRound 8: 3D-Grid Precomputed-GT Fused L1 + D-SSIM Gradient Kernel (`GS_OPT_FAST_LOSS=1`)
- Commit:e46f145(promoted to/submission/gaussian-splatting&/submission/switches.json) - Changes (GS_OPT_FAST_LOSS=1): 1.precompute_gt_ssim_fastCUDA(submodules/fused-ssim/ssim.cu): lazily precomputes & caches(mu2, sigma2_sq)once per training camera (3D grid(ceil(W/32), ceil(H/16), CH)). 2.fused_ssim_dm_fastCUDA+fused_l1_ssim_bwd_fastCUDA: 3D-grid(32, 16, 3)kernels with bank-conflict-free padded SMEM, symmetric 6-tap Gaussian pairing, only 2__syncthreads()per kernel (vs 48/30 upstream), reusable static scratch buffers, fused L1 sign gradient + scaled D-SSIM gradient directly intodL_dimage, and directimage.backward(dL_dimage)(eliminatingl1_loss,ssim_map,dL_dmap,.mean(), andtorch::zeros_like). - Results: - T1 numerical test (3 × 546 × 979):max_abs = 9.10e-13,rel_l2 = 1.37e-7, microbench0.2765 ms -> 0.0650 ms(4.25xfaster). -check --quick(/tmp/r8/quick_r8): PASS (exact_items_pass). -time(/tmp/r8/time_r8):105.279 s(windows[29.766, 39.128, 36.384],2.9270x, -4.75 s vs R7;284.94 steps/s; peak alloc7.57 GiB). ---
1.6 hRound 9: Single-Pass Bit-Exact `densify_and_prune` & `empty_cache()` Removal (`GS_OPT_FAST_DENSIFY=1`)
- Commit:ac758c6(promoted to/submission/gaussian-splatting&/submission/switches.json) - Changes (GS_OPT_FAST_DENSIFY=1): 1._densify_and_prune_fast(scene/gaussian_model.py): computesclone_idx,split_idx(with exact upstreamtorch.normalRNG), and survivingkeep_orig_idx / keep_clone_src_idx / keep_split_idxonce, then builds all 6 params and 12 optimizer states in a single allocation +index_select(out=...)pass (replacing 4 full copies + ~80nonzero()host syncs) and removes the per-100-steptorch.cuda.empty_cache()stall. - Results: - T1 numerical test (max_screen_size=Noneand20): BIT-EXACT0.000e+00on all 6 params + 12 optimizer states; 1.5M microbench194.93 ms -> 10.33 ms(18.88xfaster!). -check --quick(/tmp/r9/quick_r9): PASS (exact_items_pass). -time(/tmp/r9/time_r9):103.099 s(windows[28.461, 38.303, 36.334],2.9889x, -2.18 s vs R8, -6.93 s vs R7;290.96 steps/s; peak alloc7.75 GiB). -check --n1(/tmp/r9/n1_r9): PASS (N1) — PSNR-0.46σ(25.4358), SSIM+1.78σ(0.88509), LPIPS-1.83σ(0.14225),log_count+0.96σ(14.5276). - Promoted R8+R9 (ac758c6) to/submission/gaussian-splatting&/submission/switches.json! ---
2.1 hRound 10: Compact On-The-Fly SH Gradients, Scalar SH Backward & Stackless Adam (`GS_OPT_FAST_PREPROC2=1`)
- Commit:239c5fe(promoted to/submission/gaussian-splatting&/submission/switches.json) - Changes (GS_OPT_FAST_PREPROC2=1): 1.preprocessBackwardCUDAFast<3, true>(backward.cu): replaced 30-regdRGBdx/y/z + sh8..14accumulation with 4-reg scalarDOT_SH(K)dot-products, reordered Part 4 (dL_dscale/rot) before Part 3 (SH) to releasedL_dcov[6], added__launch_bounds__(256, 4)(72 regs -> 64 regs = 50% occ); whensh_compact != nullptr, skips allocating/writing theP x 15 x 3(365 MB)dL_dshtensor and instead emits 24 B/Gaussian (float4(x, y, z, dL_dRGB.x)+float2(dL_dRGB.y, dL_dRGB.z)). 2.adamStepFused6CUDA&adamStepPartialSHCUDA(adam.cu) +evalSHBasisPair(auxiliary.h): eliminated 16B stack frame via unrolledAdamTensorDescselect (37 regs, 0 spills, 0B stack); reconstructs exactdL_dshon-the-fly using branchlessevalSHBasisPair(rem < 42) and hardcodedk=14/0(rem >= 42) from L1-cachedsh_compact(hitting 96.7% of physical HBM3e speed-of-light,4.07 TB/s). 3.FastExactGaussianAdam.step()(diff_gaussian_rasterization/__init__.py): passessh_compactwithout materializingf_rest.gradwhile preserving exact step/state initialization acrossD = 0..3. - Results: - T1 multi-step equivalence (P=4099acrossD=0..3&P=50003atD=3):f_rest rel_l2 = 1.38e-9 .. 1.59e-9, all 18 param/state tensors< 2.2e-7. -check --quick(/tmp/r10/quick_r10): PASS (exact_items_pass). -time(/tmp/r10/time_r10):97.865 s(windows[27.145, 36.206, 34.514],3.1488x, -5.23 s vs R9;306.52 steps/s; peak alloc7.45 GiB). -check --n1(/tmp/r10/n1_r10): PASS (N1) — PSNR-1.30σ(25.4030), SSIM+0.003σ(0.88468), LPIPS-0.27σ(0.14277),log_count+2.21σ(14.5344,2,052,208). - Promoted R10 (239c5fe) to/submission/gaussian-splatting&/submission/switches.json! - Profiles of R10: - 7k (/tmp/r10/prof_r10_7k):3.530 ms/itwall | GPU active3.337 ms (94.6%)| GPU idle0.192 ms (5.4%).preprocessBackwardCUDAFastdropped0.318ms -> 0.148ms(2.15x). Top:PerGaussianRenderCUDAFast2Worklist<8>1.265ms (35.8%),adamStepFused6CUDA0.616ms (17.5%),renderCUDAFast20.572ms (16.2%),preprocessCUDAFast0.149ms (4.2%),preprocessBackwardCUDAFast0.148ms (4.2%),duplicateWithKeysFast320.089ms (2.5%),CUB::RadixSort0.085ms (2.4%),fused_l1_ssim0.064ms (1.8%). - 20k (/tmp/r10/prof_r10_20k):3.546 ms/itwall | GPU active3.455 ms (97.5%)| GPU idle0.090 ms (2.5%). Top:PerGaussianRenderCUDAFast2Worklist<8>1.343ms (37.9%),adamStepFused6CUDA0.785ms (22.2%),renderCUDAFast20.625ms (17.6%),preprocessCUDAFast0.178ms (5.0%),preprocessBackwardCUDAFast0.175ms (4.9%),duplicateWithKeysFast320.091ms (2.6%),CUB::RadixSort0.091ms (2.6%),fused_l1_ssim0.064ms (1.8%). ---
5.0 hRound 11: LPT Tile Scheduling, Octagon Subtile Mask, PTX `fastExp2`/`fastRcp`, `LDS.128` & Branch-Free Systolic Chunks (`GS_OPT_FAST_RENDER3=1`)
- Commit:d3f0d15(promoted to/submission/gaussian-splatting&/submission/switches.json) - Failed / Superseded Experiments (R11a — 256-Splat Checkpointing + Subtile-Major Backward): - Built and T1-verified (img = 0.0, grads~1e-6) 256-splat checkpointing (renderCUDAFast30.559ms vs 0.572ms) with three subtile-major worklist backward designs:PerSubtileWorklistRenderCUDA(4×4 half-warp,1.614 msat 7k),PerSubtile8x4WorklistRenderCUDA(8×4 full-warp,1.425 msat 7k), andSubtile8x4SystolicCUDA(8×4 compacted splat-major systolic,1.322 msat 7k,99.214 sfull run vs R1097.865 s). Also testedWARPS_PER_BLK=4(1.268 msvs1.265 ms). Reverted cleanly. - Root cause: 9-float warp gradient reductions + SMEM atomics (pixel-major) or 62-reg 50% occ +M+31drain bubbles + 8-warp__syncthreads()imbalance (subtile systolic) outweighed subtile sparsity vs 48-regPerGaussianRenderCUDAFast2Worklist<8>. - SASS-Driven Final Design (GS_OPT_FAST_RENDER3=1): 1.buildTileOrderLPTCUDA(rasterizer_impl.cu): 1-blockcub::BlockRadixSort<uint32_t, 256, 16>(0.012 ms) sorting tiles descending bynum_splatsinto deadimgState.bucket_countso heavy foreground tiles launch in Wave 0 (eliminating forward tail-wave stalls). 2.computeEllipseSubtileMask16Octagon(auxiliary.h): exact conservative AABB +±45°diagonal slab octagon test using branchlessuint64_tlookup tables (verified 100% conservative on 10,000 random tilted ellipses). 3.renderCUDAFast3(forward.cu): LPTtile_order, octagon mask, pre-scaledLOG2Econic + 1-instruction PTXex2.approx.ftz.f32(fastExp2, eliminating 4 instructions/hit), packedfloat4 collected_rgb_mp(1LDS.128replacing 3ULEA+3LEA+3LDS.32), and movessampled_T_arwrite insideif (m != 0u && !done)(skipping untouched 4×4 subtiles); compiles to 32 regs, 0 spills (100% occ). 4.PerGaussianRenderCUDAFast3Worklist<8>(backward.cu): octagon mask,LOG2E-scaled conic +fastExp2+ 1-instruction PTXrcp.approx.ftz.f32(fastRcp, eliminating 12-instruction IEEE__frcp_rn+CALL.REL.NOINC+BSSY/BSYNCper hit!), packedfloat4 s_pix_nc&float4 s_dL_bg(1LDS.128per hit), outer 32-pixel chunk loop + branch-freeall_full && full_bucketmiddle chunks (eliminating 11 branch/guard instructions per iteration); compiles to 48 regs, 0 spills (62.5% occ). - Results: - T1 numerical test (black_bg&nonblack_bg):img rel_l2 = 7.6e-8,radii = 0.0, all 7 param grads1.67e-7 .. 1.00e-6. -check --quick(/tmp/r11/quick_fr3): PASS (exact_items_pass). -time(/tmp/r11/time_fr3):84.731 s(windows[23.459, 31.259, 30.013],3.6369x, -13.13 s vs R10, -223.42 s vs ref;354.04 steps/s). -check --n1(/tmp/r11/n1_fr3): PASS (N1) — PSNR-0.35σ(25.4400), SSIM-0.03σ(0.88467), LPIPS-2.70σ(0.14196),log_count+1.09σ(14.5284,2,039,808). - Promoted R11 (d3f0d15) to/submission/gaussian-splatting&/submission/switches.json! - Profiles of R11: - 7k (/tmp/r11/prof_fr3_7k):3.095 ms/itwall | GPU active2.906 ms (93.9%)| GPU idle0.188 ms.PerGaussianRenderCUDAFast3Worklist<8>1.265ms -> 0.941ms(-25.6%),renderCUDAFast30.572ms -> 0.454ms(-20.6%). - 20k (/tmp/r11/prof_fr3_20k):3.071 ms/itwall | GPU active2.979 ms (97.0%)| GPU idle0.092 ms. Top:PerGaussianRenderCUDAFast3Worklist<8>1.006ms (32.8%),adamStepFused6CUDA0.783ms (25.5%),renderCUDAFast30.472ms (15.4%),preprocessCUDAFast0.178ms (5.8%),preprocessBackwardCUDAFast0.174ms (5.7%),duplicateWithKeysFast320.096ms (3.1%),CUB::RadixSort0.091ms (3.0%),fused_l1_ssim0.064ms (2.1%),Memset0.035ms (1.2%),elementwise0.022ms (0.7%),buildTileOrderLPTCUDA0.012ms (0.4%). ---
5.4 hRound 12: Stackless Preprocess, 1-Tile Binning Fast Path, Fused-Clamp Loss, Cached Contiguous Cam/GT, Persistent Buffers & Self-Zeroing Grads (`GS_OPT_FAST_PIPELINE=1`)
- Commit:72a026c(promoted to/submission/gaussian-splatting&/submission/switches.json) - Profile of R11 (20k):3.071 ms/itwall | GPU active2.979 ms (97.0%)| GPU idle0.092 ms. Single-iteration timeline revealed: non-contiguousgt_image(7.6 µsaten::contiguouscopy/iter), non-contiguousviewmatrix/projmatrix(4grid=[1,1,1]copies/iter), 7 PyTorch kernels forclamp(0,1)+ClampBackward1, 12cudaMemsetAsyncs (0.035 ms/it),22.8 µsallocator stall afterMemcpy DtoHon variable-size scratch buffers, and 24B stack frame onpreprocessCUDAFast. - Changes (GS_OPT_FAST_PIPELINE=1): 1.forward.cu: added scalarcomputeCov3DFast, value-passedcomputeCov2DFromView6(eliminated 24B stack frame -> 0B stack, 0 spills, 57 regs), andcomputeColorFromSHFast(reusesp_orig,rsqrtf,__ldg); movedopacity+EllipseTileIterahead of SH &cov3Dsstore sofinal_touched == 0uwrites onlyradii[idx] = rad_intand returns early. 2.rasterizer_impl.cu: added 1-tile fast path induplicateWithKeysFast32(offset_to - off == 1u& 1×1 tile rect), skippingconic_opacityload andEllipseTileIter(31 regs, 100% occ). 3.fused-ssim/ssim.cu,gaussian_renderer/__init__.py,train.py: templatedfused_ssim_dm_fastCUDA<CLAMP>+fused_l1_ssim_bwd_fastCUDA<CLAMP>fusing exact inclusive[0, 1]clamp forward+backward into the loss kernel (eliminatingrendered_image.clamp(0, 1)&ClampBackward1); cached contiguousgt_cand camera_viewmatrix_c/_projmatrix_conce per camera. 4.rasterize_points.cu,backward.cu: persistent 1.25× grow-only reusable scratch buffers (geomBuffer,binningBuffer,imgBuffer,sampleBuffer, guarded bycache_t.use_count() == 1 && cache_t.storage().use_count() == 1for nested-forward safety); persistent pre-zeroeds_dL_dconic,s_dL_dcolors(when!need_colors_grad), ands_dL_dmeans2D(when!need_means2D_grad, iters 15k–30k) self-zeroed insidepreprocessBackwardCUDAFastwhile L1-hot (eliminating 57–81 MB/iter ofcudaMemsetAsync). - Results: - T1 multi-step equivalence (step0..5acrossneed_m2d=T/F, grow/shrinkP, nested forwards):img = 9.3e-8 .. 1.04e-7,radii/tf= 0 mismatches, all grads2.3e-7 .. 1.02e-6;fused_clamp_grad= bit-exact0.000e+00; autograd buffer pointer reuse verified 100%. -check --quick(/tmp/r12/quick): PASS (exact_items_pass). -time(/tmp/r12/time):83.270 s(windows[23.050, 30.734, 29.486],3.7007x, -1.46 s vs R11, -224.88 s vs ref;360.25 steps/s). -check --n1(/tmp/r12/n1): PASS (N1) — PSNR+1.11σ(25.4970), SSIM+0.99σ(0.88491), LPIPS+0.19σ(0.14292),log_count+0.64σ(14.5259,2,034,766). - Promoted R12 (72a026c) to/submission/gaussian-splatting&/submission/switches.json! - Profile of R12 (20k,/tmp/r12/prof20k): -3.012 ms/itwall | GPU active2.946 ms (97.8%)| GPU idle0.066 ms(down from0.092 ms). -Memset0.035ms (12/it) -> 0.013ms (9/it),elementwise0.022ms (6/it) -> 0.004ms (2/it),preprocessCUDAFast0.178ms -> 0.169ms. - Top remaining hotspots:PerGaussianRenderCUDAFast3Worklist<8>1.004ms (33.3%),adamStepFused6CUDA0.782ms (26.0%),renderCUDAFast30.480ms (15.9%),preprocessBackwardCUDAFast0.189ms (6.3%),preprocessCUDAFast0.169ms (5.6%),duplicateWithKeysFast320.107ms (3.6%),CUB::RadixSort0.093ms (3.1%),fused_l1_ssim0.067ms (2.2%). ---
6.5 hRound 13: Zero-CALL Octagon/Ellipse Masks, Hoisted SMEM & Predicated Lane-0 / 4-SHFL `fast_256` Backward, Scalar Templated Backward Preprocess & Fused Buckets+LPT (`GS_OPT_FAST_RENDER4=1`) · continuation
- Commit:65ac7e1(promoted to/submission/gaussian-splatting&/submission/switches.json) - SASS Audit of R12:computeEllipseSubtileMask16Octagonemitted 5 software IEEECALL.REL.NOINC(fdiv+ 4×sqrtf) per splat in bothrenderCUDAFast3andPerGaussianRenderCUDAFast3Worklist<8>;PerGaussianRenderCUDAFast3Worklist<8>executed 10 HopperS2UR SR_CgaCtaId + UMOV + UIADD3 + ULEA + LEA + IMADaddress ops insideif (lane == 0)(BSSY/BRA/BSYNC) on every systolic iter;preprocessBackwardCUDAFastcompiled dead antialiasing + 45dL_dshstores +glm::mat3Cov3D +dnormvdvinto 1,504 insts with 12CALL.REL.NOINCand 4 stack spills;perTileBucketCount + DeviceScan + 32b BlockRadixSorttook 4 launches (17 µs). - Changes (GS_OPT_FAST_RENDER4=1): 1.auxiliary.h: addedfastSqrt(sqrt.approx.ftz.f32),fastLog2(lg2.approx.ftz.f32), inline PTXshflUp1f/shflUp1u,ldSharedV2/V4/U32, predicatedldSharedV4F32Lane0/ldWarpPixelLane0,computeEllipseSubtileMask16OctagonFast(zeroCALLs, conservative2.002fmargin), andEllipseTileIterFast(zeroCALLs, shared identically bypreprocessCUDAFast<3,RAW,2>andduplicateWithKeysFast32<true>). 2.forward.cu:renderCUDAFast4withcomputeEllipseSubtileMask16OctagonFast,fastLog2, and hoisted__cvta_generic_to_sharedSMEM pointers (32 regs, 0 spills,976 -> 776insts,CALL: 5 -> 0). 3.backward.cu:PerGaussianRenderCUDAFast4Worklist<8>withcomputeEllipseSubtileMask16OctagonFast, hoisted SMEM pointers (ptxas hoistedS2UR SR_CgaCtaIdout of both middle loops), predicated@!P2 LDS.128lane-0 loads (zeroBSSY/BRA/BSYNC), and a 4-SHFLfast_256fast path (48 regs, 0 spills,CALL: 5 -> 0);preprocessBackwardCUDAFast2<3, true, true, false>templated onCOMPACT_SHandAAwith scalar Cov3D backward,rsqrtf, inlinednormvdv, and__ldgonshs(64 regs, 0 spills,1504 -> 1016insts,CALL: 12 -> 3,STL/LDL: 4 -> 0). 4.rasterizer_impl.cu: fusedbuildBucketsAndLPTCUDA<<<1, 256>>>combiningBlockScanbucket offsets + 3-passBlockRadixSort(keys, 12, 24)LPT tile ordering into 1 launch (4 -> 1 launches). - Results: - T1 equivalence (dense/sparse,black/nonblack_bg,deg=0/2/3,need_m2d=T/F):img rel_l2 = 0.000e+00(bit-exact!),radii/tf= 0 mismatches, all 7 param grads3.0e-8 .. 7.16e-7. -check --quick(/tmp/r13/quick): PASS (exact_items_pass). -time(/tmp/r13/time, host frozen ref305.362 s, spread0.0068):82.139 s(windows[23.447, 30.038, 28.654],3.7176xvs305.362 sref;365.21 steps/s). -check --n1(/tmp/r13/n1): PASS (N1) — PSNR-0.79σ(25.4231), SSIM-0.37σ(0.88460), LPIPS-0.49σ(0.14270),log_count+0.94σ(14.5275,2,038,140). - Promoted R13 (65ac7e1) to/submission/gaussian-splatting&/submission/switches.json! - Profile of R13 (20k,/tmp/r13/prof20k): -2.919 ms/itwall (-93 µs/it vs R12's3.012 ms/it) | GPU active2.856 ms (97.9%)| GPU idle0.063 ms. - Top hotspots:PerGaussianRenderCUDAFast4Worklist<8>0.981ms (33.6%),adamStepFused6CUDA0.784ms (26.9%),renderCUDAFast40.461ms (15.8%),preprocessBackwardCUDAFast20.177ms (6.1%),preprocessCUDAFast0.163ms (5.6%),duplicateWithKeysFast32<true>0.082ms (2.8%),CUB::RadixSort0.092ms (3.1%),fused_l1_ssim0.067ms (2.3%),Memset0.013ms (0.5%),buildBucketsAndLPTCUDA0.009ms (0.3%). ---
7.4 hRound 14: 256-Splat Checkpointing + 4×4 Subtile-Compacted 8-Lane Quarter-Warp Systolic Backward (`GS_OPT_QUAD_BWD=2`) · continuation
- Commit:502af02(promoted to/submission/gaussian-splatting&/submission/switches.json) - Diagnosis of R13:PerGaussianRenderCUDAFast4Worklist<8>(0.981 ms/it, 33.6% of total) tested all 32 splats against all active pixels of a 16×16 tile (8 × 287 = 2,296warp-iters per 256 splats). Exact ellipse overlap measurements on real 15k truck views (P=2.06M) showed each(tile, splat)pair touches on average only1.80of 4 8×8 quadrants and4.07of 16 4×4 subtiles (5.32across multi-round heavy tiles). - Iterations & SASS Findings: - v1 (QuadSystolicRenderCUDA, 8×8 quads, 32-lane systolic):1.122 msat 20k due toif (i < num_active)/if (has_next_batch)sinkingS2UR + BSSY/BRA/BSYNC(+49 wasted insts/iter). - v2 (QuadSystolicRenderCUDA, predicatedLDS.128/STS.128+ 3-phasefast_64):0.902 msat 20k (-79 µsvs R13;0.939 msvs1.029 mson 15k 20-cam benchmark). - v3 (Subtile8SystolicRenderCUDA, 4×4 subtiles, 8-lane quarter-warpSHFL.UPwidth=8, 16-element descending bitonic sort of subtiles byM_s->1,122warp-iters =0.489×of R13, hardware__fnsbit extraction):1.082 mstotal bwd (-149 µsvs R13); SASS audit revealedptxaslowered__fnsto a 65-inst software binary search (266-inst batch prologue!). - v4 (Subtile8SystolicRenderCUDA, compacteds_sub_splats[16][256]+ unioneds_pix.u {bits; tar;}+ adjacents_pix.dL_bgat+4096 B+float3 s_rgb->22,064 BSMEM = 10 blocks/SM = 62.5% occ, 48 regs,CALL=0, ZEROS2URinside any systolic loop or hit body, ZERO spills inside any systolic loop, spill-free 0B-stackrenderCUDAQuadwith subtile-contiguoussampled_T_ar):0.851 msvs1.029 ms(-178 µs/cam=-17.3%) on 15k 20-cam benchmark! - Changes (GS_OPT_QUAD_BWD=2): 1.auxiliary.h: addedshflUp1f_w8/shflUp1u_w8(shfl.sync.up.b32 ..., 1, 0x1800, 0xffffffff), predicatedldSharedV4F32Pred,ldWarpPixelPred,ldWarpPixelPredU16,stSharedV4F32Pred. 2.forward.cu+rasterizer_impl.cu:buildRoundsAndLPTCUDA+ spill-freerenderCUDAQuad(32 regs, 0B stack, 8× lesssampled_T_arwrites & buffer size, subtile-contiguous layout). 3.backward.cu:buildRoundWorklistCUDA+Subtile8SystolicRenderCUDA(mode=2) &QuadSystolicRenderCUDA(mode=1). - Results: - T1 equivalence on 15k real truck (bg=0.0&bg=0.3):img rel_l2 = 0.000e+00(bit-exact!),radii/tf= 0 mismatches,gm2d/g_dc/g_op4.7e-7 .. 9.3e-7,p9999 = 5.4e-9,rel_bias = -2.6e-9. -check --quick(/tmp/r14/quick_v4): PASS (exact_items_pass). -time(/tmp/r14/time_v4):77.309 s(windows[21.877, 28.262, 27.169],3.9499xvs305.362 sref;388.03 steps/s;-4.830 svs R13; peak mem9.10 GiB). -check --n1(/tmp/r14/n1_v4): PASS (N1) — PSNR-2.18σ(25.3689), SSIM-1.37σ(0.88437), LPIPS-2.19σ(0.14213),log_count+2.00σ(14.5333,2,049,919). - Promoted R14 (502af02) to/submission/gaussian-splatting&/submission/switches.json! ---
9.7 hRound 16 — 16×8 Half-Tile Forward (`GS_OPT_FWD_HALFTILE=1`) + Warp-Coalesced LPT Subtile8 Backward (`GS_OPT_QUAD_BWD=4`) (`be53a4e`, PROMOTED!) · continuation
- Diagnosis of R14 (clock64()X-Ray on 20 real 15k truck cameras): -renderCUDAQuad(0.495 ms/it, 18%):2,170CTAs (16.4CTAs/SM -> 2 waves!),max_cta / avg_cta = 4.86×tail-tile imbalance,syncthreads_wait = 19.1%(~93 µs), 8 warps waiting on slowest warp every 256 splats. -Subtile8SystolicRenderCUDA(0.855 ms/it, 31%):setup = 20.1%(~170 µs, spillingM_sub+5× S2R SR_CgaCtaId+6.72M MUFU.LG2),atom = 16.1%(~136 µs,5.62Msets of 9 globalatomicAdds across 16 subtiles),max_cta / avg = 4.63×with unorderedbuildRoundWorklistCUDA. - Changes (GS_OPT_FWD_HALFTILE=1,GS_OPT_QUAD_BWD=4): 1.auxiliary.h: addedldSharedU8,ldSharedF32, and half-tile octagon maskcomputeEllipseSubtileMask8HalfOctagonFast(earlyy-band cull beforerx/diagonalfastSqrts). 2.forward.cu+forward.h+rasterizer_impl.cu: addedrenderCUDAHalfTile(num_tiles * 2CTAs × 128 threads = 4 warps = 8 subtiles, 256-splat round batch with only 2 barriers/round, combined latency-hiddencollected_rgb_mp, 32 regs, 0 spills, 10,512 B SMEM -> 16 blocks/SM = 100% occ,atomicMax(&max_contrib[tile_id], m)withmax_contribzeroed insidebuildRoundsAndLPTCUDA, bit-exactsampled_T_arlayout). 3.backward.cu+backward.h: addedbuildRoundWorklistLPTCUDA<<<1, 1024>>>(strict deterministic LPT round worklist reusingtile_orderalready inimgState.bucket_count, 29 regs, 0 spills,0.009 ms) andSubtile8SystolicRenderCUDAv2<true>(1-byte conservatives_mp_q[256]killing6.72M MUFU.LG2, once-per-CTA binary-searchM_eff,__shfl_syncbatch_max_s, hoistedsm_splat_base, unconditionalinv_omaBG term, and warp-level__match_any_synccoalescing of matching quarter-warp gradients beforeREDG.E.ADD, 48 regs, 22,320 B SMEM -> 10 blocks/SM). - Controlled A/B on 20 real 15k truck cameras (P=2.06M): - ForwardrenderCUDAHalfTile(0.468 msvs0.494 ms,-26 µs/it,img_rel = 0.00e+00,rad_diff = 0). - BackwardSubtile8SystolicRenderCUDAv2<true>+ LPT (0.744 + 0.009 = 0.753 msvs0.855 + 0.003 = 0.858 ms,-105 µs/it;__match_any_syncalone-90 µs, strict LPT-20 µsvs unordered-6 µsbuilder). - Results: -check --quick(/tmp/r16/quick): PASS (exact_items_pass,final_count = 1,094,300). -time(/tmp/r16/time):72.328 s(windows[19.829, 26.765, 25.734],4.2219xvs305.362 sref;414.75 steps/s;-4.981 svs R14; peak mem9.09 GiB). -check --n1(/tmp/r16/n1): PASS (N1) — PSNR+0.07σ(25.4563), SSIM+0.31σ(0.88475), LPIPS-1.04σ(0.14251),log_count+0.15σ(14.5232,2,029,340). - Promoted R16 (be53a4e) to/submission/gaussian-splatting&/submission/switches.json! ---