cu-embed 0.1.0

Compile CUDA kernels with nvcc, embed cubin/PTX artifacts, and load the best module at runtime.
1
2
3
4
5
6
7
8
9
10
11
12
13
#[allow(dead_code)]
#[path = "src/build_support.rs"]
mod build_support;
#[allow(dead_code)]
#[path = "src/manifest.rs"]
mod manifest;

fn main() {
    build_support::Builder::new()
        .source_dir("src/kernels")
        .build()
        .expect("failed to build embedded CUDA kernels");
}