{ "board": "L1", "id": "044_moe_expert_computation", "name": "MoE expert computation", "language": "CUDA C++", "files": [ { "path": "src/cutlass_path.cu", "lines": 576, "bytes": 30547 }, { "path": "src/cutlass_path.h", "lines": 63, "bytes": 3813 }, { "path": "src/cutlass_stg_a.cu", "lines": 17, "bytes": 904 }, { "path": "src/cutlass_stg_b.cu", "lines": 21, "bytes": 902 }, { "path": "src/cutpath_core.h", "lines": 711, "bytes": 41109 }, { "path": "src/kernel.cu", "lines": 3401, "bytes": 201698 }, { "path": "src/kernel.h", "lines": 95, "bytes": 6324 }, { "path": "src/main.cpp", "lines": 568, "bytes": 30889 } ], "origin": "search agent (Claude)", "result": { "public": true, "sol_score": 0.948983, "speedup": 2.4137, "board_row": true, "note": "the row the public SOL-ExecBench board shows for this problem, as of 2026-11-11" }, "idea": "One persistent 2-SM tcgen05 megakernel: in-kernel routing and token gather, gate/up with SwiGLU, down with weighted red.add; large batches run the down step as CUTLASS grouped GEMMs.", "spec": { "languages": [ "cuda_cpp" ], "target_hardware": [ "B200", "LOCAL" ], "entry_point": "main.cpp::run", "binding": "torch", "destination_passing_style": false, "dependencies": [], "compile_options": { "cuda_cflags": [ "-std=c++17", "-O3", "-gencode=arch=compute_100a,code=sm_100a", "--expt-relaxed-constexpr", "-DNDEBUG", "--use_fast_math", "-Xptxas", "-O3", "--extra-device-vectorization", "-DMOE_DIL_S=1", "-DCUTLASS_ENABLE_GDC_FOR_SM100=1" ], "ld_flags": [ "-lcuda" ], "cflags": [ "-DMOE_DIL_S=1" ] }, "sources": [ "cutlass_path.cu", "cutlass_path.h", "cutpath_core.h", "kernel.cu", "kernel.h", "main.cpp", "cutlass_stg_a.cu", "cutlass_stg_b.cu" ] } }