singe-cuda 0.1.0

Safe Rust wrappers for the CUDA driver and runtime APIs, including runtime compilation of CUDA C++ and NVTX annotations.
Documentation
1
2
3
4
5
6
7
8
use std::path::PathBuf;

/// Returns the path of the NVRTC shared library, loading it if it is not yet.
/// Returns `None` if NVRTC does not load.
#[must_use]
pub fn library_path() -> Option<PathBuf> {
    singe_cuda_sys::nvrtc_paths().ok()?.into_iter().next()
}