singe-cufft-sys 0.1.0-alpha.5

Low-level FFI bindings for the NVIDIA cuFFT fast Fourier transform library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use singe_cuda_find::{emit_rerun_if_env_changed, find_cuda_runtime};

fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    emit_rerun_if_env_changed();

    link_libraries();
}

fn link_libraries() {
    if let Ok(Some(cudart)) = find_cuda_runtime() {
        println!("cargo:rustc-link-search={}", cudart.library_path.display());
        println!("cargo:rustc-link-lib=static=cudart_static");
        println!("cargo:include={}", cudart.include_path.display());
        println!("cargo:rustc-link-lib=cufft");
    }
}