| Crates.io | rustkernel-derive |
| lib.rs | rustkernel-derive |
| version | 0.2.0 |
| created_at | 2026-01-14 16:27:46.363361+00 |
| updated_at | 2026-01-19 20:04:52.579041+00 |
| description | Procedural macros for RustKernels GPU kernel library |
| homepage | |
| repository | https://github.com/mivertowski/RustKernels |
| max_upload_size | |
| id | 2043185 |
| size | 52,391 |
Procedural macros for the RustKernels GPU kernel library.
#[gpu_kernel]: Define a GPU kernel with metadata#[derive(KernelMessage)]: Derive serialization for kernel messagesAdd to your Cargo.toml:
[dependencies]
rustkernel-derive = "0.1.0"
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
}
Apache-2.0