E08 · Dorn/cuda/61

Full sample results

Scores

MethodScoreScaleDataset rank
(0–100)
GPT-6.1 Sol130–20; mean of three runs
30.6Δ 9.5
DeepSeek V4 Pro13.330–20; mean of three runs
61.0Δ 39.8
BTTF0.2470–1; higher is more readable
9.5Δ 11.7
Human2.81–5; original rating
21.2

Loading feature diagnosis…

Source code

GPT-6.1 Sol explanations

Run 1 · 13/20

Code Structure: The sequence of accumulation, synchronization, reduction, activation, and gradient calculation is logically organized, but the snippet ends without closing braces.

Nesting: Moderate nesting reflects CUDA execution constraints, though the nested thread checks add indentation.

Clarity of intent: Familiar operations and descriptive array names help, but abbreviations such as iw, i_w, M, and outn, unexplained indexing offsets, and undocumented reduction helpers require domain knowledge.

Code length: Compact, with little obvious redundancy.

Action granularity: Most lines perform one action; inline conditional assignments slightly reduce scanability.

Reading flow: Blank lines separate stages naturally, but inconsistent spacing, missing explanatory comments, and the incomplete ending interrupt comprehension.

Run 2 · 13/20

Code Structure: Organized into weighted accumulation, reduction, activation, and gradient calculation, but the snippet ends without closing braces.

Nesting: Moderate nesting through a loop and two thread-selection conditions; manageable but less easy to scan.

Clarity of intent: CUDA operations and descriptive array names indicate the purpose, while terse identifiers such as iw, M, n, and nSelAct and unexplained indexing conventions require domain knowledge.

Code length: Compact and mostly necessary, though long indexing expressions add cognitive load.

Action granularity: Generally one action per line, but inline conditional assignments compress conditions and operations together.

Reading flow: Execution proceeds naturally from initialization to outputs and gradients, with whitespace separating stages; absent comments, mixed naming styles, and the incomplete ending reduce readability.

Run 3 · 13/20

Code Structure: Organized into accumulation, reduction, activation, and gradient computation, but the missing closing braces make the snippet incomplete.

Nesting: Moderate nesting combines a loop, warp condition, and thread-zero condition without becoming deeply tangled.

Clarity of intent: CUDA operations and output calculations suggest neural-network processing, but terse names such as iw, M, n, and nSelAct and unexplained indexing reduce clarity.

Code length: Compact and mostly purposeful, though complex index expressions require careful reading.

Action granularity: Most lines perform one action; inline conditional assignments slightly reduce scanability.

Reading flow: Execution proceeds naturally from weighted inputs to outputs and gradients, with whitespace separating stages, but macro-heavy expressions and CUDA-specific reduction helpers require domain knowledge.

BTTF feature contributions

Score 0.247 / 1