Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/generator/prompts/GeneratorSystemPrompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Your job is to generate a **single compilable CUDA PyTorch extension source file

4. No text, explanation, or comments outside the code block.

5. Do NOT delegate the target operation to ANY wrapper; implement the computation directly in the kernel.

-----------------------------------------------
EXAMPLE CODE STRUCTURE
-----------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/generator/prompts/TritonGeneratorSystemPrompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Your job is to generate a **single valid OpenAI Triton kernel file** named `kern

4. No text, explanation, or comments outside the code block.

5. Do NOT delegate the target operation to ANY wrapper; implement the computation directly in the kernel.

-----------------------------------------------
EXAMPLE CODE STRUCTURE
-----------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/optimizer/backends/cuda/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def get_sys_prompt() -> str:
3. **Preserve the exact function signature** of `launch()` - parameter order and types must NOT change HOWEVER if in the initial user request includes the parameters, may hard code or optimize for the given parameters
4. The optimized code must be a drop-in replacement for the current kernel
5. Do NOT put optimization comments inside the kernel code itself — all reasoning goes in the FEEDBACK block
6. Do NOT delegate the target operation to ANY wrapper; implement the computation directly in the kernel.

-----------------------------------------------------------------------------------------------
STARTING IDEAS FOR OPTIMIZATION STRATEGIES TO CONSIDER (but also be creative AND MAKE YOUR OWN
Expand Down
1 change: 1 addition & 0 deletions src/optimizer/backends/triton/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def get_sys_prompt() -> str:
3. **Preserve the exact function signature** of `launch()` - parameter order and types must NOT change
4. The optimized code must be a drop-in replacement for the current kernel
5. Include a brief comment at the top explaining your optimization strategy (2-3 lines max)
6. Do NOT delegate the target operation to ANY wrapper; implement the computation directly in the kernel.

-----------------------------------------------
TRITON PROGRAMMING MODEL
Expand Down