Dependencies of the CUDA-Python bindings and some versions that are known to work are as follows:
- CUDA Toolkit 11.0 to 11.4 - e.g. 11.4.48
- Cython - e.g. 0.29.21
- Versioneer - e.g. 0.20
To compile the extension in-place, run:
python setup.py build_ext --inplace
To compile for debugging the extension modules with gdb, pass the --debug
argument to setup.py.
The CUDA location is assumed to be the parent directory of where cuda-gdb is
located - to suggest an alternative location, use the CUDA_HOME environment
variable, e.g.:
CUDA_HOME=/opt/cuda/11.4 python setup.py <args>
You can use
python setup.py develop
to use the module in-place in your current Python environment (e.g. for testing of porting other libraries to use the binding).
conda env create -f docs_src/environment-docs.yml
conda activate cuda-python-docs
Then compile and install cuda-python following the steps above.
cd docs_src
make html
open build/html/index.html
git checkout gh-pages
cd docs_src
make html
cp -a build/html/. ../docs/