File size: 2,564 Bytes
63d5e8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
 "board": "Quant",
 "id": "020_nvfp4_linear_layer",
 "name": "NVFP4 linear layer",
 "language": "CUDA C++",
 "files": [
  {
   "path": "src/cute/arch/copy_sm90_tma.hpp",
   "lines": 1511,
   "bytes": 58872
  },
  {
   "path": "src/cutlass/arch/barrier.h",
   "lines": 957,
   "bytes": 32060
  },
  {
   "path": "src/cutlass/gemm/collective/builders/sm100_common.inl",
   "lines": 1011,
   "bytes": 46588
  },
  {
   "path": "src/cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp",
   "lines": 1294,
   "bytes": 63087
  },
  {
   "path": "src/cutlass_api.h",
   "lines": 35,
   "bytes": 2424
  },
  {
   "path": "src/cutlass_cfg.cuh",
   "lines": 290,
   "bytes": 15875
  },
  {
   "path": "src/cutlass_gemm_b.cu",
   "lines": 20,
   "bytes": 984
  },
  {
   "path": "src/cutlass_gemm_h.cu",
   "lines": 28,
   "bytes": 1474
  },
  {
   "path": "src/kernel.cu",
   "lines": 3136,
   "bytes": 167106
  },
  {
   "path": "src/kernel.h",
   "lines": 57,
   "bytes": 4100
  },
  {
   "path": "src/main.cpp",
   "lines": 675,
   "bytes": 32987
  },
  {
   "path": "src/nvfp4_nosmem_epi.cuh",
   "lines": 278,
   "bytes": 14301
  },
  {
   "path": "src/nvfp4_tma_epi.cuh",
   "lines": 244,
   "bytes": 13052
  }
 ],
 "origin": "search agent (Claude)",
 "result": {
  "public": true,
  "sol_score": 0.919794,
  "speedup": 9.3304,
  "board_row": true,
  "note": "the row the public SOL-ExecBench board shows for this problem, as of 2026-11-11"
 },
 "idea": "Quant kernel (grid barrier for the global amax) packs x to NVFP4 + scales, then a CUTLASS block-scaled tcgen05 GEMM; small M uses a custom weight-stationary GEMM.",
 "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",
    "-DCUTLASS_ENABLE_GDC_FOR_SM100=1",
    "-Xptxas=-O3"
   ],
   "ld_flags": [
    "-lcuda"
   ],
   "cflags": [
    "-O3",
    "-DNDEBUG"
   ]
  },
  "sources": [
   "kernel.h",
   "cutlass_api.h",
   "cutlass_cfg.cuh",
   "kernel.cu",
   "cutlass_gemm_b.cu",
   "main.cpp",
   "cute/arch/copy_sm90_tma.hpp",
   "cutlass_gemm_h.cu",
   "cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp",
   "cutlass/gemm/collective/builders/sm100_common.inl",
   "nvfp4_nosmem_epi.cuh",
   "nvfp4_tma_epi.cuh",
   "cutlass/arch/barrier.h"
  ]
 }
}