Crates.io | cuda-runtime-sys |
lib.rs | cuda-runtime-sys |
version | 0.3.0-alpha.1 |
source | src |
created_at | 2019-12-30 14:25:40.697528 |
updated_at | 2019-12-30 14:25:40.697528 |
description | Rust binding to CUDA Runtime APIs |
homepage | |
repository | https://github.com/rust-cuda/cuda-sys |
max_upload_size | |
id | 193517 |
size | 178,938 |
Rust binding to CUDA Driver (libcuda.so
)
and Runtime (libcudart.so
) APIs
This crate does NOT include CUDA itself. You need to install on your own.
nvidia/cuda
container
libcuda.so
to dynamic link path.
You need to add it to your ld path LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs
or using ldconfig
.apt
, yum
, pacman
, and so on), the install path may be different.$CUDA_LIBRARY_PATH
(e.g. /opt/cuda/lib64
) environment value adds paths to the list of library searching.
$CUDA_LIBRARY_PATH
is not required on Windows when CUDA is installed via the official Windows installer.CUDA_PATH
environment variable has been set.Q. Program does not start (can be compiled) with following error message:
error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory
A. Driver API (libcuda.so
) is sometimes installed in a separate directory. You need to find it, and add to LD_LIBRARY_PATH
:
LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs
Dual-licensed to be compatible with the Rust project. Licensed under the Apache License, Version 2.0 or the MIT license, at your option. This file may not be copied, modified, or distributed except according to those terms.
You should check the End User License Agreement, which describes NVIDIA Software License Agreement and CUDA Supplement to Software License Agreement.