pub struct Library { /* private fields */ }Expand description
One library behind a set of declarations, made of every file in files, each of which must load.
A symbol is looked up in each file in order, as NPP’s functions are spread over eleven.
The NVIDIA libraries have constructors of their own, such as Library::cusparse, which name their files on each platform.
Implementations§
Source§impl Library
impl Library
Sourcepub const fn cuda_driver() -> Self
pub const fn cuda_driver() -> Self
Creates the library for the CUDA driver, whose files carry major version 1.
Its files on Linux:
libcuda.so.1
Its files on Windows:
nvcuda.dll
Sourcepub const fn cuda_runtime() -> Self
pub const fn cuda_runtime() -> Self
Creates the library for the CUDA runtime, whose files carry major version 13.
Its files on Linux:
libcudart.so.13
Its files on Windows:
cudart64_13.dll
Sourcepub const fn nvrtc() -> Self
pub const fn nvrtc() -> Self
Creates the library for NVRTC, whose files carry major version 13.
Its files on Linux:
libnvrtc.so.13
Its files on Windows:
nvrtc64_130_0.dll
Sourcepub const fn nvjitlink() -> Self
pub const fn nvjitlink() -> Self
Creates the library for nvJitLink, whose files carry major version 13.
Its files on Linux:
libnvJitLink.so.13
Its files on Windows:
nvJitLink_130_0.dll
Sourcepub const fn nvvm() -> Self
pub const fn nvvm() -> Self
Creates the library for NVVM, whose files carry major version 4.
Its files on Linux:
libnvvm.so.4
Its files on Windows:
nvvm64_40_0.dll
Sourcepub const fn nvtx() -> Self
pub const fn nvtx() -> Self
Creates the library for NVTX, whose files carry major version 1.
NVTX’s headers implement it inline; this library exports the same functions for languages that cannot use them.
Its files on Linux:
libnvtx3interop.so.1
Its files on Windows:
nvtx3interop.dll
Sourcepub const fn nvml() -> Self
pub const fn nvml() -> Self
Creates the library for NVML, whose files carry major version 1.
Its files on Linux:
libnvidia-ml.so.1
Its files on Windows:
nvml.dll
Sourcepub const fn cublas() -> Self
pub const fn cublas() -> Self
Creates the library for cuBLAS, whose files carry major version 13.
Its files on Linux:
libcublas.so.13
Its files on Windows:
cublas64_13.dll
Sourcepub const fn cublas_lt() -> Self
pub const fn cublas_lt() -> Self
Creates the library for cuBLASLt, whose files carry major version 13.
Its files on Linux:
libcublasLt.so.13
Its files on Windows:
cublasLt64_13.dll
Sourcepub const fn cudnn() -> Self
pub const fn cudnn() -> Self
Creates the library for cuDNN, whose files carry major version 9.
cuDNN loads its own sub-libraries.
Its files on Linux:
libcudnn.so.9
Its files on Windows:
cudnn64_9.dll
Sourcepub const fn cudss() -> Self
pub const fn cudss() -> Self
Creates the library for cuDSS, whose files carry major version 1.
Its files on Linux:
libcudss.so.1
Its files on Windows:
cudss64_1.dll
Sourcepub const fn cufft() -> Self
pub const fn cufft() -> Self
Creates the library for cuFFT, whose files carry major version 12.
Its files on Linux:
libcufft.so.12
Its files on Windows:
cufft64_12.dll
Sourcepub const fn cufile() -> Self
pub const fn cufile() -> Self
Creates the library for cuFile, whose files carry major version 0.
cuFile has no Windows release.
Its files on Linux:
libcufile.so.0
It has no files on Windows.
Sourcepub const fn cupti() -> Self
pub const fn cupti() -> Self
Creates the library for CUPTI, whose files carry major version 13.
Windows’ CUPTI carries its release in its name, as cupti64_2025.4.0.dll, which no fixed name matches.
Its files on Linux:
libcupti.so.13
It has no files on Windows.
Sourcepub const fn curand() -> Self
pub const fn curand() -> Self
Creates the library for cuRAND, whose files carry major version 10.
Its files on Linux:
libcurand.so.10
Its files on Windows:
curand64_10.dll
Sourcepub const fn cusolver() -> Self
pub const fn cusolver() -> Self
Creates the library for cuSOLVER, whose files carry major version 12.
Its files on Linux:
libcusolver.so.12
Its files on Windows:
cusolver64_12.dll
Sourcepub const fn cusparse() -> Self
pub const fn cusparse() -> Self
Creates the library for cuSPARSE, whose files carry major version 12.
Its files on Linux:
libcusparse.so.12
Its files on Windows:
cusparse64_12.dll
Sourcepub const fn cutensor() -> Self
pub const fn cutensor() -> Self
Creates the library for cuTENSOR, whose files carry major version 2.
Its files on Linux:
libcutensor.so.2
Its files on Windows:
cutensor.dll
Sourcepub const fn cutensor_mg() -> Self
pub const fn cutensor_mg() -> Self
Creates the library for cuTENSORMg, whose files carry major version 2.
Its files on Linux:
libcutensorMg.so.2
Its files on Windows:
cutensorMg.dll
Sourcepub const fn cutensor_mp() -> Self
pub const fn cutensor_mp() -> Self
Creates the library for cuTENSORMp, whose files carry major version 2.
cuTENSORMp runs over NCCL, which is Linux-only.
Its files on Linux:
libcutensorMp.so.2
It has no files on Windows.
Sourcepub const fn nccl() -> Self
pub const fn nccl() -> Self
Creates the library for NCCL, whose files carry major version 2.
Its files on Linux:
libnccl.so.2
It has no files on Windows.
Sourcepub const fn npp() -> Self
pub const fn npp() -> Self
Creates the library for NPP, whose files carry major version 13.
NPP’s functions are spread over its core library and ten by domain.
Its files on Linux:
libnppc.so.13libnppial.so.13libnppicc.so.13libnppidei.so.13libnppif.so.13libnppig.so.13libnppim.so.13libnppist.so.13libnppisu.so.13libnppitc.so.13libnpps.so.13
Its files on Windows:
nppc64_13.dllnppial64_13.dllnppicc64_13.dllnppidei64_13.dllnppif64_13.dllnppig64_13.dllnppim64_13.dllnppist64_13.dllnppisu64_13.dllnppitc64_13.dllnpps64_13.dll
Sourcepub const fn nvcomp() -> Self
pub const fn nvcomp() -> Self
Creates the library for nvCOMP, whose files carry major version 6.
Its files on Linux:
libnvcomp.so.6
Its files on Windows:
nvcomp64_6.dll
Sourcepub const fn nvimagecodec() -> Self
pub const fn nvimagecodec() -> Self
Creates the library for nvImageCodec, whose files carry major version 0.
Its files on Linux:
libnvimgcodec.so.0
Its files on Windows:
nvimgcodec_0.dll
Sourcepub const fn nvjpeg() -> Self
pub const fn nvjpeg() -> Self
Creates the library for nvJPEG, whose files carry major version 13.
Its files on Linux:
libnvjpeg.so.13
Its files on Windows:
nvjpeg64_13.dll
Source§impl Library
impl Library
Sourcepub const fn new(name: &'static str, files: &'static [&'static str]) -> Self
pub const fn new(name: &'static str, files: &'static [&'static str]) -> Self
Creates a library named name from the files that make it up on this platform.