Skip to content

Commit 35ae798

Browse files
committed
document static cudart requirement
1 parent 1256bc1 commit 35ae798

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cuda_bindings/docs/source/install.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ $ conda install -c conda-forge cuda-python
4444
### Requirements
4545

4646
* CUDA Toolkit headers[^1]
47+
* static CUDA runtime[^2]
4748

4849
[^1]: User projects that `cimport` CUDA symbols in Cython must also use CUDA Toolkit (CTK) types as provided by the `cuda.bindings` major.minor version. This results in CTK headers becoming a transitive dependency of downstream projects through CUDA Python.
4950

51+
[^2]: The static CUDA runtime (`libcudart_static.a` on Linux, `cudart_static.lib` on Windows) is part of CUDA Toolkit. If CUDA is installed from conda, it is contained in the `cuda-cudart-static` package.
52+
5053
Source builds require that the provided CUDA headers are of the same major.minor version as the `cuda.bindings` you're trying to build. Despite this requirement, note that the minor version compatibility is still maintained. Use the `CUDA_HOME` (or `CUDA_PATH`) environment variable to specify the location of your headers. For example, if your headers are located in `/usr/local/cuda/include`, then you should set `CUDA_HOME` with:
5154

5255
```console
5356
$ export CUDA_HOME=/usr/local/cuda
57+
$ export LIBRARY_PATH=$CUDA_HOME/lib64:$LIBRARY_PATH
5458
```
5559

5660
See [Environment Variables](environment_variables.md) for a description of other build-time environment variables.

0 commit comments

Comments
 (0)