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.5.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.5.0-py3-none-any.whl (947.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evokernel-0.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 fdf128bc759639b31d71482fab0caf586aba8b69c9f6b772d7ae9d0c5dc1babf
MD5 e0c531f78dacf6cef26d79b22fec09ee
BLAKE2b-256 cb5f189d6242c8940ec79c939a08d5e558e2561baf075732b665853de2fa7b0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for evokernel-0.5.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.5.0-py3-none-any.whl.

File metadata

  • Download URL: evokernel-0.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba10d54a377f2f21febc1a0f8a26e1c7dbde6d60c3eee6bf62ac0388a3a41db
MD5 afec54397f4a2bada65477e6083f5ab6
BLAKE2b-256 0f5d43d72fc81dd57dc0538608c9687e8d9f8bcdc6f33d2bd586420eec9baa54

See more details on using hashes here.

Provenance

The following attestation bundles were made for evokernel-0.5.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