Skip to content

Commit ba54684

Browse files
authored
Merge pull request #22 from HiDiHlabs/gpu_eigendecomp
Add GPU support
2 parents c914c17 + 4319d04 commit ba54684

7 files changed

Lines changed: 220 additions & 86 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.venv
2+
.python-version
3+
*.lock
4+
multispaeti.egg-info
5+
__pycache__
6+
7+
.vscode
8+
9+
# sphinx
10+
generated
11+
build

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ repos:
2424
rev: v1.15.0
2525
hooks:
2626
- id: mypy
27+
additional_dependencies:
28+
- "numpy"
2729
- repo: https://github.com/codespell-project/codespell
2830
rev: v2.4.1
2931
hooks:

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
build:
33
os: ubuntu-22.04
44
tools:
5-
python: "3.10"
5+
python: "3.11"
66
sphinx:
77
configuration: docs/source/conf.py
88
python:

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
exclude_patterns: list[str] = []
5151

5252
intersphinx_mapping = dict(
53+
cupy=("https://docs.cupy.dev/en/stable/", None),
5354
matplotlib=("https://matplotlib.org/stable/", None),
5455
numpy=("https://numpy.org/doc/stable/", None),
5556
python=("https://docs.python.org/3", None),

docs/source/installation.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ To install ``multispaeti`` from `PyPI <https://pypi.org/>`_ using ``pip`` just r
1111
1212
pip install multispaeti
1313
14+
GPU support
15+
___________
16+
17+
In most cases support for GPU computations (using `CuPy <https://cupy.dev/>`_) can be
18+
installed via
19+
20+
.. code-block:: bash
21+
22+
# for CUDA12
23+
pip install multispaeti[cuda12]
24+
25+
# or for CUDA11
26+
pip install multispaeti[cuda11]
27+
28+
However, in cases where this doesn't work we recommended referring to the
29+
`CuPy documentation <https://docs.cupy.dev/en/stable/install.html>`_.
30+
1431

1532
conda-forge and ``conda``
1633
-------------------------
@@ -26,6 +43,12 @@ conda-forge and ``conda``
2643
Of course, it is also possible to use ``mamba`` instead of ``conda``
2744
to speed up the installation.
2845

46+
GPU support
47+
___________
48+
49+
For support of GPU computations please refer to the
50+
`CuPy documentation <https://docs.cupy.dev/en/stable/install.html>`_.
51+
2952

3053
From GitHub
3154
-----------

0 commit comments

Comments
 (0)