You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ramon Calvo 886981e120 fix: correct python file path 1 year ago
src fix: correct python file path 1 year ago
.gitignore feat: sum two vecs in CUDA 1 year ago
Cargo.toml feat: sum two vecs in CUDA 1 year ago
README.md feat: sum two vecs in CUDA 1 year ago
build.rs fix: correct python file path 1 year ago
pyproject.toml fix: correct python file path 1 year ago

README.md

Installation

You need to install triton and torch on your system or create a venv with:

# With uv 
uv sync

# Or manually
python -m venv .venv
source .venv/bin/activate
pip install build
pip install -e .

Then, set the Rust nightly toolchain and build:

rustup toolchain install nightly
cargo run

The cargo build hooks will take care of compiling the PTX files with Python.