Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions cuda_bindings/docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,58 @@ For example:

$ conda install -c conda-forge cuda-python cuda-version=13

Installing with uv
------------------

`uv`_ is a fast Python package and project manager. To install ``cuda-python`` using ``uv``:

.. code-block:: console

$ uv pip install cuda-python

To install with all optional dependencies:

.. code-block:: console

$ uv pip install "cuda-python[all]"

``uv`` can also manage virtual environments automatically:

.. code-block:: console

$ uv venv
$ uv pip install cuda-python

.. _uv: https://docs.astral.sh/uv/

Installing with pixi
--------------------

`pixi`_ is a cross-platform package manager built on top of the conda ecosystem. To install ``cuda-python`` in a pixi project:

.. code-block:: console

$ pixi init my-cuda-project
$ cd my-cuda-project
$ pixi add cuda-python --channel conda-forge --channel nvidia

Or add it to an existing ``pixi.toml``:

.. code-block:: toml

[dependencies]
cuda-python = ">=12.8.0"

.. note::

Use the ``cuda-version`` package to pin the CUDA Toolkit version in your pixi environment:

.. code-block:: console

$ pixi add cuda-version=13 --channel conda-forge

.. _pixi: https://pixi.sh/

Installing from Source
----------------------

Expand Down
48 changes: 48 additions & 0 deletions cuda_core/docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,54 @@ and likewise use ``cuda-version=13`` for CUDA 13.
Note that to use ``cuda.core`` with nvJitLink installed from conda-forge requires ``cuda.bindings`` 12.8.0+.


Installing with uv
------------------

`uv`_ is a fast Python package and project manager. To install ``cuda-core`` using ``uv``:

.. code-block:: console

$ uv pip install cuda-core[cu12]

and likewise use ``[cu13]`` for CUDA 13.

``uv`` can also manage virtual environments automatically:

.. code-block:: console

$ uv venv
$ uv pip install cuda-core[cu12]

.. _uv: https://docs.astral.sh/uv/

Installing with pixi
--------------------

`pixi`_ is a cross-platform package manager built on top of the conda ecosystem. To install ``cuda-core`` in a pixi project:

.. code-block:: console

$ pixi init my-cuda-project
$ cd my-cuda-project
$ pixi add cuda-core --channel conda-forge

Or add it to an existing ``pixi.toml``:

.. code-block:: toml

[dependencies]
cuda-core = "*"

.. note::

Use the ``cuda-version`` package to pin the CUDA Toolkit version in your pixi environment:

.. code-block:: console

$ pixi add cuda-version=12 --channel conda-forge

.. _pixi: https://pixi.sh/

Installing from Source
----------------------

Expand Down