The while loop had variable trip count (GPU scalar in condition), requiring CPU-GPU sync. Replaced with fixed max_chunks_per_expert iterations. Unused chunks are zero buffers (harmless for GEMM).
The while loop had variable trip count (GPU scalar in condition), requiring CPU-GPU sync. Replaced with fixed max_chunks_per_expert iterations. Unused chunks are zero buffers (harmless for GEMM).