Skip to main content

Core utilities and environments for Wafer GPU kernel optimization

Project description

wafer-core

Core utilities and environments for Wafer GPU kernel optimization.

Features

  • CUDA Compilation Tools: Compile CUDA files to PTX/SASS, detect GPU architecture
  • Tool Finding: Locate CUDA toolkit executables (nvcc, nvdisasm)
  • Telemetry: Decorator-based telemetry system with hooks
  • Environments: GPU kernel optimization environments
  • Remote Execution: SSH and Modal-based remote GPU execution
  • Sessions: Agent session management
  • Logging: Structured logging with color and JSON formatters

Installation

pip install wafer-core

Note: For full functionality including environments and sessions, you may also need to install rollouts:

pip install git+https://github.com/arb8020/research.git#subdirectory=rollouts

The core tools (CUDA compilation, tool finding, telemetry) work without rollouts.

Quick Start

from wafer_core import compile_cuda, detect_arch, find_nvcc

# Detect GPU architecture
arch_info = detect_arch()
print(f"Detected architecture: {arch_info['arch']}")

# Compile CUDA file
result = compile_cuda("kernel.cu", arch="sm_90")
print(f"PTX: {result.ptx}")
print(f"SASS: {result.sass}")

# Find nvcc
nvcc_path = find_nvcc()
if nvcc_path:
    print(f"Found nvcc at: {nvcc_path}")

Documentation

See the Wafer documentation for more information.

License

MIT License

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

wafer_core-0.1.0.tar.gz (283.5 kB view details)

Uploaded Source

Built Distribution

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

wafer_core-0.1.0-py3-none-any.whl (167.9 kB view details)

Uploaded Python 3

File details

Details for the file wafer_core-0.1.0.tar.gz.

File metadata

  • Download URL: wafer_core-0.1.0.tar.gz
  • Upload date:
  • Size: 283.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for wafer_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d4d73ad7de588b8edbd6a4a4d02aef050f4df6d538a37696cef8027dc0d90cf
MD5 1ba427309eb8bef287f8e7e8eb06d47c
BLAKE2b-256 1ba83a5ac9790a01d017219550730c7cb5c046c1cc7023930e7d35f1bb5ce316

See more details on using hashes here.

File details

Details for the file wafer_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wafer_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 167.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for wafer_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf35347ec3d0ac4658b109d096b996b8bc43b832ccadf37853591cdc3913d10
MD5 a8ab54aa45caaac98f5d5911057049ea
BLAKE2b-256 d4673c9ccfcab85d9b2c150f1a8b9c289ffab6f08cee6e226943cdfe76f3f94c

See more details on using hashes here.

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