Skip to main content

CUDA kernel optimization agent powered by OpenEvolve

Project description

EvoKernel

CUDA kernel optimization agent powered by OpenEvolve.

Quick Start

# Install as CLI tool (requires Python 3.10-3.13)
pipx install evokernel
# or with uv
uv tool install evokernel

# Setup Modal (GPU evaluator)
modal setup

# Configure OpenRouter API key
evokernel setup

# Run in any project directory
evokernel

Development Install

git clone https://github.com/haladir-ai/EvoKernel.git
cd EvoKernel
uv tool install .

Usage

Just run evokernel in a directory with CUDA kernels and chat with the agent:

> optimize my_kernel.cu

> check status

> show the best result

> apply changes

Current Features

  • Speedup optimization: Maximizes kernel throughput via evolutionary search
  • EVOLVE markers: Define which code regions to optimize
  • Modal GPU evaluation: Compile and benchmark on cloud A100 (default)
  • Local GPU evaluation: Run benchmarks on your own GPU (for codebases with dependencies)
  • LLM ensemble: Uses Gemini, Claude, GPT via OpenRouter

Evaluator Modes

Mode Use Case
modal (default) Self-contained kernels, no local GPU needed
local Kernels with custom headers/dependencies

Roadmap (Not Yet Implemented)

  • Memory optimization goal: Minimize memory usage instead of speedup
  • Target hardware selection: Optimize for specific GPUs (A100, H100, V100)
  • Energy efficiency goal: Minimize power consumption

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evokernel-0.4.0.tar.gz (821.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evokernel-0.4.0-py3-none-any.whl (947.3 kB view details)

Uploaded Python 3

File details

Details for the file evokernel-0.4.0.tar.gz.

File metadata

  • Download URL: evokernel-0.4.0.tar.gz
  • Upload date:
  • Size: 821.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for evokernel-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d5a0e32b076c4e9b91b81460ca547bd004734e396800f6903d441ac7d7e9d1dd
MD5 4493dbba3b9ebbe8e74d15ba0dd31465
BLAKE2b-256 101613b7e5985fc40d6250d89690a47741270d6a98198fb7cd66220c105128a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for evokernel-0.4.0.tar.gz:

Publisher: publish.yml on haladir-ai/EvoKernel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file evokernel-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: evokernel-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 947.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for evokernel-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de1cb2b0c5665fb3be331a468637d41bcb29f02f8302d8baf76a3d7476c1f980
MD5 0a055a90a40be1e1519c0f6f4a0bd696
BLAKE2b-256 a2c63630bfe9826274614940203e8a771766f4caa3534bc00de10d6362482c9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for evokernel-0.4.0-py3-none-any.whl:

Publisher: publish.yml on haladir-ai/EvoKernel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page