rustkernel-derive 0.1.1

Procedural macros for RustKernels GPU kernel library
Documentation

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