rustkernel-derive

Crates.iorustkernel-derive
lib.rsrustkernel-derive
version0.2.0
created_at2026-01-14 16:27:46.363361+00
updated_at2026-01-19 20:04:52.579041+00
descriptionProcedural macros for RustKernels GPU kernel library
homepage
repositoryhttps://github.com/mivertowski/RustKernels
max_upload_size
id2043185
size52,391
Michael Ivertowski (mivertowski)

documentation

README

rustkernel-derive

Crates.io Documentation License

Procedural macros for the RustKernels GPU kernel library.

Features

  • #[gpu_kernel]: Define a GPU kernel with metadata
  • #[derive(KernelMessage)]: Derive serialization for kernel messages

Installation

Add to your Cargo.toml:

[dependencies]
rustkernel-derive = "0.1.0"

Usage

use rustkernel_derive::gpu_kernel;

#[gpu_kernel(
    id = "graph/pagerank",
    mode = "ring",
    domain = "GraphAnalytics",
    throughput = 100_000,
    latency_us = 1.0
)]
pub struct PageRank {
    // kernel fields
}

License

Apache-2.0

Commit count: 48

cargo fmt