ZMC2019 commited on
Commit
c02464e
·
verified ·
1 Parent(s): 48e046f

400 tasks: kernel-optimization agent, profiler permissions, relaxed exact gates (part 14)

Browse files

Every task now states that ncu needs GPU performance counters (ERR_NVGPUCTRPERM without them) and that nsys is the fallback; task.toml records the SYS_ADMIN requirement for the runner.

26 tasks previously gated at tol=0. Ten emit only integers and stay exact. The other sixteen carry a float payload and now accept a real tolerance -- 1e-3 for bf16, 1e-5 for fp32. The ceiling comes from the metric: GB/s is credited from the shape-derived byte count, so re-encoding the payload narrower moves less data than it is paid for. Measured fp8 round-trip 2.7e-2 (27x the bf16 gate) and fp16-for-fp32 2.1e-4 (21x the fp32 gate) -- both still rejected, while a kernel at 0.4x the gate passes.

26 legacy task.toml files normalized to schema 1.1.

Files changed (38) hide show
  1. tasks/quantization-gemm/w4a16-dequant-gemm/instruction.md +6 -0
  2. tasks/quantization-gemm/w4a16-dequant-gemm/task.toml +3 -0
  3. tasks/quantization-gemm/zamba-shared-attn-lora-backward/instruction.md +6 -0
  4. tasks/quantization-gemm/zamba-shared-attn-lora-backward/task.toml +3 -0
  5. tasks/quantization-gemm/zamba-shared-attn-lora-qkv/instruction.md +6 -0
  6. tasks/quantization-gemm/zamba-shared-attn-lora-qkv/task.toml +3 -0
  7. tasks/raw-cuda/cuda-blockwise-softmax/instruction.md +7 -0
  8. tasks/raw-cuda/cuda-blockwise-softmax/task.toml +3 -0
  9. tasks/raw-cuda/cuda-fp8-cast-pack/instruction.md +7 -0
  10. tasks/raw-cuda/cuda-fp8-cast-pack/task.toml +3 -0
  11. tasks/raw-cuda/cuda-histogram-atomics/instruction.md +7 -0
  12. tasks/raw-cuda/cuda-histogram-atomics/task.toml +3 -0
  13. tasks/raw-cuda/cuda-linear-recurrence/instruction.md +7 -0
  14. tasks/raw-cuda/cuda-linear-recurrence/task.toml +3 -0
  15. tasks/raw-cuda/cuda-radix-partition/instruction.md +7 -0
  16. tasks/raw-cuda/cuda-radix-partition/task.toml +3 -0
  17. tasks/raw-cuda/cuda-relu2-aggregation/instruction.md +7 -0
  18. tasks/raw-cuda/cuda-relu2-aggregation/task.toml +3 -0
  19. tasks/raw-cuda/cuda-topk-indices/instruction.md +7 -0
  20. tasks/raw-cuda/cuda-topk-indices/task.toml +3 -0
  21. tasks/raw-cuda/cuda-transpose-vectorized/instruction.md +7 -0
  22. tasks/raw-cuda/cuda-transpose-vectorized/task.toml +3 -0
  23. tasks/raw-cuda/cuda-warp-scan-segmented/instruction.md +7 -0
  24. tasks/raw-cuda/cuda-warp-scan-segmented/task.toml +3 -0
  25. tasks/raw-cuda/flash-attention-fwd/instruction.md +7 -0
  26. tasks/raw-cuda/flash-attention-fwd/task.toml +3 -0
  27. tasks/raw-cuda/gptq-w4a16-gemm/instruction.md +7 -0
  28. tasks/raw-cuda/gptq-w4a16-gemm/task.toml +3 -0
  29. tasks/raw-cuda/qserve-w4a8-gemm/instruction.md +7 -0
  30. tasks/raw-cuda/qserve-w4a8-gemm/task.toml +3 -0
  31. tasks/sampling-speculative-decoding/beam-search-step/environment/measure.py +1 -1
  32. tasks/sampling-speculative-decoding/beam-search-step/instruction.md +19 -3
  33. tasks/sampling-speculative-decoding/beam-search-step/task.toml +3 -0
  34. tasks/sampling-speculative-decoding/beam-search-step/tests/verify_env.py +1 -1
  35. tasks/sampling-speculative-decoding/draft-tree-build/instruction.md +6 -0
  36. tasks/sampling-speculative-decoding/draft-tree-build/task.toml +3 -0
  37. tasks/sampling-speculative-decoding/fused-topk-topp-filter/instruction.md +6 -0
  38. tasks/sampling-speculative-decoding/fused-topk-topp-filter/task.toml +3 -0
tasks/quantization-gemm/w4a16-dequant-gemm/instruction.md CHANGED
@@ -202,6 +202,12 @@ p.shared_memory_per_block_optin # opt-in dynamic smem, the number that matters
202
  already installed, and no library implementation of this kernel exists on the machine.
203
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
204
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
 
 
 
 
 
 
205
 
206
  ## How the grading actually runs (so there are no surprises)
207
 
 
202
  already installed, and no library implementation of this kernel exists on the machine.
203
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
204
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
205
+ - **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
206
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
207
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run.
208
+ That is an environment permission, not something you can fix from inside — fall back to `nsys` plus
209
+ A/B ablation (change one thing, re-time it) instead of spending your budget fighting it. Note that
210
+ `ncu --version` succeeds either way; it never touches a counter.
211
 
212
  ## How the grading actually runs (so there are no surprises)
213
 
tasks/quantization-gemm/w4a16-dequant-gemm/task.toml CHANGED
@@ -22,6 +22,9 @@ timeout_sec = 14400.0
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
 
 
 
25
  [environment]
26
  build_timeout_sec = 3600.0
27
  cpus = 8
 
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
25
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
26
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
27
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
28
  [environment]
29
  build_timeout_sec = 3600.0
30
  cpus = 8
tasks/quantization-gemm/zamba-shared-attn-lora-backward/instruction.md CHANGED
@@ -197,6 +197,12 @@ p.shared_memory_per_block_optin # opt-in dynamic smem, the number that matters
197
  already installed, and no library implementation of this kernel exists on the machine.
198
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
199
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
 
 
 
 
 
 
200
 
201
  ## How the grading actually runs (so there are no surprises)
202
 
 
197
  already installed, and no library implementation of this kernel exists on the machine.
198
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
199
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
200
+ - **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
201
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
202
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run.
203
+ That is an environment permission, not something you can fix from inside — fall back to `nsys` plus
204
+ A/B ablation (change one thing, re-time it) instead of spending your budget fighting it. Note that
205
+ `ncu --version` succeeds either way; it never touches a counter.
206
 
207
  ## How the grading actually runs (so there are no surprises)
208
 
tasks/quantization-gemm/zamba-shared-attn-lora-backward/task.toml CHANGED
@@ -22,6 +22,9 @@ timeout_sec = 14400.0
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
 
 
 
25
  [environment]
26
  build_timeout_sec = 3600.0
27
  cpus = 8
 
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
25
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
26
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
27
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
28
  [environment]
29
  build_timeout_sec = 3600.0
30
  cpus = 8
tasks/quantization-gemm/zamba-shared-attn-lora-qkv/instruction.md CHANGED
@@ -183,6 +183,12 @@ p.shared_memory_per_block_optin # opt-in dynamic smem, the number that matters
183
  already installed, and no library implementation of this kernel exists on the machine.
184
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
185
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
 
 
 
 
 
 
186
 
187
  ## How the grading actually runs (so there are no surprises)
188
 
 
183
  already installed, and no library implementation of this kernel exists on the machine.
184
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
185
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
186
+ - **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
187
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
188
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run.
189
+ That is an environment permission, not something you can fix from inside — fall back to `nsys` plus
190
+ A/B ablation (change one thing, re-time it) instead of spending your budget fighting it. Note that
191
+ `ncu --version` succeeds either way; it never touches a counter.
192
 
193
  ## How the grading actually runs (so there are no surprises)
194
 
tasks/quantization-gemm/zamba-shared-attn-lora-qkv/task.toml CHANGED
@@ -22,6 +22,9 @@ timeout_sec = 14400.0
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
 
 
 
25
  [environment]
26
  build_timeout_sec = 3600.0
27
  cpus = 8
 
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
25
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
26
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
27
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
28
  [environment]
29
  build_timeout_sec = 3600.0
30
  cpus = 8
tasks/raw-cuda/cuda-blockwise-softmax/instruction.md CHANGED
@@ -62,3 +62,10 @@ Both must pass for reward 1.0.
62
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
63
  you are measured; you only edit `solution.cu`.
64
  - **No internet access.**
 
 
 
 
 
 
 
 
62
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
63
  you are measured; you only edit `solution.cu`.
64
  - **No internet access.**
65
+
66
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
67
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
68
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
69
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
70
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
71
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-blockwise-softmax/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-fp8-cast-pack/instruction.md CHANGED
@@ -59,3 +59,10 @@ Both must pass for reward 1.0.
59
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
60
  you are measured; you only edit `solution.cu`.
61
  - **No internet access.**
 
 
 
 
 
 
 
 
59
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
60
  you are measured; you only edit `solution.cu`.
61
  - **No internet access.**
62
+
63
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
64
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
65
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
66
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
67
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
68
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-fp8-cast-pack/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-histogram-atomics/instruction.md CHANGED
@@ -59,3 +59,10 @@ Both must pass for reward 1.0.
59
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
60
  you are measured; you only edit `solution.cu`.
61
  - **No internet access.**
 
 
 
 
 
 
 
 
59
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
60
  you are measured; you only edit `solution.cu`.
61
  - **No internet access.**
62
+
63
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
64
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
65
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
66
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
67
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
68
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-histogram-atomics/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-linear-recurrence/instruction.md CHANGED
@@ -54,3 +54,10 @@ submission is graded on whatever device it lands on.
54
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
55
  you're measured, but you only edit `solution.cu`.
56
  - **No internet access.**
 
 
 
 
 
 
 
 
54
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
55
  you're measured, but you only edit `solution.cu`.
56
  - **No internet access.**
57
+
58
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
59
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
60
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
61
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
62
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
63
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-linear-recurrence/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-radix-partition/instruction.md CHANGED
@@ -64,3 +64,10 @@ Both must pass for reward 1.0.
64
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
65
  you are measured; you only edit `solution.cu`.
66
  - **No internet access.**
 
 
 
 
 
 
 
 
64
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
65
  you are measured; you only edit `solution.cu`.
66
  - **No internet access.**
67
+
68
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
69
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
70
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
71
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
72
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
73
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-radix-partition/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-relu2-aggregation/instruction.md CHANGED
@@ -55,3 +55,10 @@ submission is graded on whatever device it lands on.
55
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
56
  you're measured; you only edit `solution.cu`.
57
  - **No internet access.**
 
 
 
 
 
 
 
 
55
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
56
  you're measured; you only edit `solution.cu`.
57
  - **No internet access.**
58
+
59
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
60
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
61
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
62
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
63
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
64
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-relu2-aggregation/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-topk-indices/instruction.md CHANGED
@@ -54,3 +54,10 @@ submission is graded on whatever device it lands on.
54
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
55
  you're measured; you only edit `solution.cu`.
56
  - **No internet access.**
 
 
 
 
 
 
 
 
54
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
55
  you're measured; you only edit `solution.cu`.
56
  - **No internet access.**
57
+
58
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
59
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
60
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
61
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
62
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
63
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-topk-indices/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-transpose-vectorized/instruction.md CHANGED
@@ -59,3 +59,10 @@ Both must pass for reward 1.0.
59
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
60
  you are measured; you only edit `solution.cu`.
61
  - **No internet access.**
 
 
 
 
 
 
 
 
59
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
60
  you are measured; you only edit `solution.cu`.
61
  - **No internet access.**
62
+
63
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
64
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
65
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
66
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
67
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
68
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-transpose-vectorized/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/cuda-warp-scan-segmented/instruction.md CHANGED
@@ -60,3 +60,10 @@ Both must pass for reward 1.0.
60
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
61
  you are measured; you only edit `solution.cu`.
62
  - **No internet access.**
 
 
 
 
 
 
 
 
60
  uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see exactly how
61
  you are measured; you only edit `solution.cu`.
62
  - **No internet access.**
63
+
64
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
65
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
66
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
67
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
68
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
69
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/cuda-warp-scan-segmented/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/flash-attention-fwd/instruction.md CHANGED
@@ -66,3 +66,10 @@ submission is graded on whatever device it lands on.
66
  grader uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to
67
  see exactly how you're measured; you only edit `solution.cu`.
68
  - **No internet access.**
 
 
 
 
 
 
 
 
66
  grader uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to
67
  see exactly how you're measured; you only edit `solution.cu`.
68
  - **No internet access.**
69
+
70
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
71
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
72
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
73
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
74
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
75
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/flash-attention-fwd/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/gptq-w4a16-gemm/instruction.md CHANGED
@@ -95,3 +95,10 @@ submission is graded on whatever device it lands on.
95
  grader uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see
96
  exactly how you're measured; you only edit `solution.cu`.
97
  - **No internet access.**
 
 
 
 
 
 
 
 
95
  grader uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see
96
  exactly how you're measured; you only edit `solution.cu`.
97
  - **No internet access.**
98
+
99
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
100
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
101
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
102
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
103
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
104
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/gptq-w4a16-gemm/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/raw-cuda/qserve-w4a8-gemm/instruction.md CHANGED
@@ -107,3 +107,10 @@ submission is graded on whatever device it lands on.
107
  grader uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see
108
  exactly how you're measured; you only edit `solution.cu`.
109
  - **No internet access.**
 
 
 
 
 
 
 
 
107
  grader uses a different seed). `/app/harness.cu` is the same harness used for grading — read it to see
108
  exactly how you're measured; you only edit `solution.cu`.
109
  - **No internet access.**
110
+
111
+ **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
112
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
113
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run. That
114
+ is an environment permission, not something you can fix from inside — fall back to `nsys` plus A/B
115
+ ablation (change one thing, re-time it) rather than spending your budget fighting it. `ncu --version`
116
+ succeeds either way; it never touches a counter.
tasks/raw-cuda/qserve-w4a8-gemm/task.toml CHANGED
@@ -20,6 +20,9 @@ timeout_sec = 600.0
20
  [agent]
21
  timeout_sec = 14400.0
22
 
 
 
 
23
  [environment]
24
  build_timeout_sec = 3600.0
25
  cpus = 8
 
20
  [agent]
21
  timeout_sec = 14400.0
22
 
23
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
24
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
25
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
26
  [environment]
27
  build_timeout_sec = 3600.0
28
  cpus = 8
tasks/sampling-speculative-decoding/beam-search-step/environment/measure.py CHANGED
@@ -20,7 +20,7 @@ sys.path.insert(0, "/app")
20
  from reference import beam_search_step as _ref
21
  from beam_step import beam_search_step as _agent
22
 
23
- TOL = 0.0
24
  NAMES = ('next_beam', 'next_token', 'next_score')
25
 
26
  FULL = [(896, 4, 131072), (448, 8, 131072), (224, 16, 131072), (448, 4, 262144), (640, 6, 131072)]
 
20
  from reference import beam_search_step as _ref
21
  from beam_step import beam_search_step as _agent
22
 
23
+ TOL = 1e-05
24
  NAMES = ('next_beam', 'next_token', 'next_score')
25
 
26
  FULL = [(896, 4, 131072), (448, 8, 131072), (224, 16, 131072), (448, 4, 262144), (640, 6, 131072)]
tasks/sampling-speculative-decoding/beam-search-step/instruction.md CHANGED
@@ -99,7 +99,7 @@ as a **single `float32` addition** of two `float32` inputs: computing it in fp32
99
  rounding once, gives bit-identical results. **One candidate ranked out of order, or one score computed as
100
  `logprob + beam_score` in bf16, scores 0.**
101
 
102
- **`tol = 0` here is a measured, deliberate choice, not a defaulted one.** This is a *selection* kernel, not
103
  an arithmetic one: the only float operation is one fp32 add, and the specified ordering (score descending,
104
  then flat index ascending) is a **total order**, so the correct answer is a single well-defined bit pattern
105
  and every correct implementation must produce it. That was verified rather than assumed — two independent
@@ -168,7 +168,7 @@ Everything here is **float32** — log-probabilities in, scores out — and it m
168
  float32. This is a *ranking* path: `bfloat16` has 8 mantissa bits, and the graded data's smallest gap at the
169
  top-`W` boundary is about **16 ulps of fp32**, i.e. far below one bf16 ulp, so a bf16 comparison merges
170
  candidates that are genuinely distinct and reorders the beam. **fp8 and bf16 are not permitted anywhere on
171
- the value path**, and there is no tolerance to hide it in: the gate is exactly `0`.
172
 
173
  The candidate score is `beam_scores[b, w] + logprobs[b, w, v]`, a **single fp32 add**. Do it in fp32 (or in
174
  a wider type, rounding once at the end) and the result is bit-identical to the reference. Do not
@@ -183,11 +183,21 @@ The **tie-break** is a correctness requirement, not an optimisation: equal score
183
  index. Implement every comparison in your reduction as a lexicographic `(score desc, index asc)` compare —
184
  the cheapest way is the packed `uint64` key the reference builds.
185
 
186
- This is one of the few tasks in this suite where the gate is **exactly zero**, and that is measured: two
187
  independently written selection algorithms reproduce the reference bit-for-bit on every graded shape. It is
188
  achievable precisely *because* nothing here accumulates. If you find yourself needing tolerance, you have
189
  introduced arithmetic that the specification does not contain.
190
 
 
 
 
 
 
 
 
 
 
 
191
  ### What the tolerance does NOT permit
192
 
193
  The tolerance exists **only** to absorb low-precision arithmetic noise. You are responsible for a **faithful
@@ -232,6 +242,12 @@ p.shared_memory_per_block_optin # opt-in dynamic smem, the number that matters
232
  already installed, and no library implementation of this kernel exists on the machine.
233
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
234
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
 
 
 
 
 
 
235
 
236
  ## How the grading actually runs (so there are no surprises)
237
 
 
99
  rounding once, gives bit-identical results. **One candidate ranked out of order, or one score computed as
100
  `logprob + beam_score` in bf16, scores 0.**
101
 
102
+ **`tol` here is a measured, deliberate choice, not a defaulted one.** This is a *selection* kernel, not
103
  an arithmetic one: the only float operation is one fp32 add, and the specified ordering (score descending,
104
  then flat index ascending) is a **total order**, so the correct answer is a single well-defined bit pattern
105
  and every correct implementation must produce it. That was verified rather than assumed — two independent
 
168
  float32. This is a *ranking* path: `bfloat16` has 8 mantissa bits, and the graded data's smallest gap at the
169
  top-`W` boundary is about **16 ulps of fp32**, i.e. far below one bf16 ulp, so a bf16 comparison merges
170
  candidates that are genuinely distinct and reorders the beam. **fp8 and bf16 are not permitted anywhere on
171
+ the value path**, and the gate is far too tight to hide it in.
172
 
173
  The candidate score is `beam_scores[b, w] + logprobs[b, w, v]`, a **single fp32 add**. Do it in fp32 (or in
174
  a wider type, rounding once at the end) and the result is bit-identical to the reference. Do not
 
183
  index. Implement every comparison in your reduction as a lexicographic `(score desc, index asc)` compare —
184
  the cheapest way is the packed `uint64` key the reference builds.
185
 
186
+ The gate here is **`1e-05`** — tight, because this is a ranking path — and that is measured: two
187
  independently written selection algorithms reproduce the reference bit-for-bit on every graded shape. It is
188
  achievable precisely *because* nothing here accumulates. If you find yourself needing tolerance, you have
189
  introduced arithmetic that the specification does not contain.
190
 
191
+ **Where the tolerance comes from (measured, not guessed).** The numerical *floor* here is `0.0`: this
192
+ kernel moves values rather than recomputing them, and an independently written implementation reproduces
193
+ the reference bit for bit. The gate is nonetheless set at **`1e-05`**, deliberately above that floor, so a
194
+ correct kernel that reaches the same values by a slightly different numerical route is not rejected on a
195
+ technicality. What the gate must still catch is a **re-encoding of the payload**: your score is
196
+ `bytes / time` with the byte count derived from the float32 shapes, so storing the payload narrower moves less
197
+ data than you are credited for. Round-tripping the payload through fp16 measures **2.1e-4**,
198
+ i.e. **21x** this gate, and is rejected. Integer outputs are compared **exactly** and no tolerance
199
+ applies to them.
200
+
201
  ### What the tolerance does NOT permit
202
 
203
  The tolerance exists **only** to absorb low-precision arithmetic noise. You are responsible for a **faithful
 
242
  already installed, and no library implementation of this kernel exists on the machine.
243
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
244
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
245
+ - **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
246
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
247
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run.
248
+ That is an environment permission, not something you can fix from inside — fall back to `nsys` plus
249
+ A/B ablation (change one thing, re-time it) instead of spending your budget fighting it. Note that
250
+ `ncu --version` succeeds either way; it never touches a counter.
251
 
252
  ## How the grading actually runs (so there are no surprises)
253
 
tasks/sampling-speculative-decoding/beam-search-step/task.toml CHANGED
@@ -22,6 +22,9 @@ timeout_sec = 14400.0
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
 
 
 
25
  [environment]
26
  build_timeout_sec = 3600.0
27
  cpus = 8
 
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
25
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
26
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
27
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
28
  [environment]
29
  build_timeout_sec = 3600.0
30
  cpus = 8
tasks/sampling-speculative-decoding/beam-search-step/tests/verify_env.py CHANGED
@@ -31,7 +31,7 @@ import torch
31
 
32
  REWARD_DIR = "/logs/verifier"
33
  MODULE_PATH = "/app/beam_step.py"
34
- TOL = 0.0
35
  NAMES = ('next_beam', 'next_token', 'next_score')
36
 
37
  GRADER_SHAPES = [(1024, 4, 131072), (512, 8, 131072), (256, 16, 131072), (512, 4, 262144), (768, 5, 131072)]
 
31
 
32
  REWARD_DIR = "/logs/verifier"
33
  MODULE_PATH = "/app/beam_step.py"
34
+ TOL = 1e-05
35
  NAMES = ('next_beam', 'next_token', 'next_score')
36
 
37
  GRADER_SHAPES = [(1024, 4, 131072), (512, 8, 131072), (256, 16, 131072), (512, 4, 262144), (768, 5, 131072)]
tasks/sampling-speculative-decoding/draft-tree-build/instruction.md CHANGED
@@ -253,6 +253,12 @@ p.shared_memory_per_block_optin # opt-in dynamic smem, the number that matters
253
  already installed, and no library implementation of this kernel exists on the machine.
254
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
255
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
 
 
 
 
 
 
256
 
257
  ## How the grading actually runs (so there are no surprises)
258
 
 
253
  already installed, and no library implementation of this kernel exists on the machine.
254
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
255
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
256
+ - **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
257
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
258
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run.
259
+ That is an environment permission, not something you can fix from inside — fall back to `nsys` plus
260
+ A/B ablation (change one thing, re-time it) instead of spending your budget fighting it. Note that
261
+ `ncu --version` succeeds either way; it never touches a counter.
262
 
263
  ## How the grading actually runs (so there are no surprises)
264
 
tasks/sampling-speculative-decoding/draft-tree-build/task.toml CHANGED
@@ -22,6 +22,9 @@ timeout_sec = 14400.0
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
 
 
 
25
  [environment]
26
  build_timeout_sec = 3600.0
27
  cpus = 8
 
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
25
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
26
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
27
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
28
  [environment]
29
  build_timeout_sec = 3600.0
30
  cpus = 8
tasks/sampling-speculative-decoding/fused-topk-topp-filter/instruction.md CHANGED
@@ -217,6 +217,12 @@ p.shared_memory_per_block_optin # opt-in dynamic smem, the number that matters
217
  already installed, and no library implementation of this kernel exists on the machine.
218
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
219
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
 
 
 
 
 
 
220
 
221
  ## How the grading actually runs (so there are no surprises)
222
 
 
217
  already installed, and no library implementation of this kernel exists on the machine.
218
  - Manage any long-running background job (a build, an `ncu`/`nsys` profile) by its **recorded PID** — see
219
  `/app/CLAUDE.md` and `/app/PROCESS_MANAGEMENT.md`.
220
+ - **Profilers.** `nsys` works here and answers the first question — is the time actually inside your
221
+ kernel, or in launch gaps and dispatch? `ncu` reads GPU performance counters, which the container may
222
+ not be permitted to access: if it prints `ERR_NVGPUCTRPERM`, counters are unavailable on this run.
223
+ That is an environment permission, not something you can fix from inside — fall back to `nsys` plus
224
+ A/B ablation (change one thing, re-time it) instead of spending your budget fighting it. Note that
225
+ `ncu --version` succeeds either way; it never touches a counter.
226
 
227
  ## How the grading actually runs (so there are no surprises)
228
 
tasks/sampling-speculative-decoding/fused-topk-topp-filter/task.toml CHANGED
@@ -22,6 +22,9 @@ timeout_sec = 14400.0
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
 
 
 
25
  [environment]
26
  build_timeout_sec = 3600.0
27
  cpus = 8
 
22
 
23
  # GPU request: honored by Modal/GKE/Daytona. On the local docker backend set environment.override_gpus: 0
24
  # in the job config and attach a GPU via configs/gpu_overlay_nvidia.yaml (see RUNNING.md §5).
25
+ # Profiling: `ncu` needs GPU performance counters — the runner must add the SYS_ADMIN capability
26
+ # (docker `--cap-add SYS_ADMIN`) or the host must set NVreg_RestrictProfilingToAdminUsers=0.
27
+ # Without it ncu exits with ERR_NVGPUCTRPERM. `nsys` works without any extra capability.
28
  [environment]
29
  build_timeout_sec = 3600.0
30
  cpus = 8