Skip to content

Add agentic kernel optimizer (openenv)#71

Draft
MirkoDeVita98 wants to merge 6 commits into
mainfrom
openenv
Draft

Add agentic kernel optimizer (openenv)#71
MirkoDeVita98 wants to merge 6 commits into
mainfrom
openenv

Conversation

@MirkoDeVita98
Copy link
Copy Markdown
Collaborator

Introduces an agentic optimization loop that uses Claude Opus to automatically find faster PTO-DSL kernel implementations. The agent iteratively edits, builds, tests, and benchmarks a kernel until it achieves a speedup over the baseline.

KernelSearchEnv : environment wrapping edit/build/test/benchmark as discrete actions
agent_search.py : agentic loop with tool use; Claude proposes edits and reacts to build/test/bench feedback
TOML config per kernel (hadamard_config.toml, geglu_config.toml) : specifies paths, commands, tuning notes, and context docs to embed in the prompt
_bench_wrapper.py script for geglu_dynamic_multicore

Kernel sources are never modified in-place; the agent works in a _opt/ folder copy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant