You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0a67d90
Browse filesBrowse the repository at this point in the historyBrowse files
- 'git diff --no-index --exit-code -- cuda_bindings/_build_shared.py cuda_core/_build_shared.py || { echo "ERROR: cuda_bindings/_build_shared.py and cuda_core/_build_shared.py must be byte-identical. Copy one onto the other and commit both." >&2; exit 1; }'
96
-
- "_"# fake script name, because bash considers $0 (the first argument) to be the script name
97
-
98
88
- id: no-markdown-in-docs-source
99
89
name: Prevent markdown files in docs/source directories
[`cuda.bindings`](https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html), or
On native Windows outside WSL, complete its Windows setup before cloning.
121
+
The recipe preserves release tags and configures symlinks and submodule
122
+
updates for development.
123
+
118
124
Requirements
119
125
^^^^^^^^^^^^
120
126
@@ -126,7 +132,12 @@ Requirements
126
132
127
133
[^2]: The CUDA Runtime static library (``libcudart_static.a`` on Linux, ``cudart_static.lib`` on Windows) is part of the CUDA Toolkit. If using conda packages, it is contained in the ``cuda-cudart-static`` package.
128
134
129
-
[^3]: The version is derived from git tags via ``setuptools-scm``, so the clone must include tags reaching back to at least the latest ``v*`` tag. Clone with ``git clone https://github.com/NVIDIA/cuda-python.git``; do not use ``--depth`` or ``--no-tags``, since a shallow clone builds without error but produces a bogus version such as ``0.1.dev1+g0d22cb444``. See `Cloning the repository <https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md>`_ for details and recovery steps.
135
+
[^3]: The version is derived from git tags via ``setuptools-scm``, so the clone
136
+
must include tags reaching back to at least the latest ``v*`` tag. Do not use
137
+
``--depth`` or ``--no-tags``: a clone without reachable tags can build with a
138
+
bogus version such as ``0.1.dev1+g0d22cb444``. See `Cloning the repository
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. The build checks the header before it compiles anything. A mismatch stops the build with a message that names the ``cuda.h`` it found and the version this source tree needs. Use the ``CUDA_PATH`` (or ``CUDA_HOME``) environment variable to specify the location of your headers. If both are set, ``CUDA_PATH`` takes precedence. For example, if your headers are located in ``/usr/local/cuda/include``, then you should set ``CUDA_PATH`` with:
132
143
@@ -143,10 +154,11 @@ See :doc:`Environment Variables <environment_variables>` for a description of ot
143
154
Editable Install
144
155
^^^^^^^^^^^^^^^^
145
156
146
-
You can use:
157
+
From the repository root, run:
147
158
148
159
.. code-block:: console
149
160
161
+
$ cd cuda_bindings
150
162
$ pip install -v -e .
151
163
152
-
to install the module as editable in your current Python environment (e.g. for testing of porting other libraries to use the binding).
164
+
This installs the module as editable in your current Python environment (e.g. for testing or porting other libraries to use the bindings).
0 commit comments