Skip to content

Commit 256dbdb

Browse files
update docs
1 parent fd95813 commit 256dbdb

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ code to work with all of them? No problem! Comes with pre-made array context
1616
implementations for:
1717

1818
- numpy
19+
- cupy
1920
- `PyOpenCL <https://documen.tician.de/pyopencl/array.html>`__
2021
- `JAX <https://jax.readthedocs.io/en/latest/>`__
2122
- `Pytato <https://documen.tician.de/pytato>`__ (for lazy/deferred evaluation)

arraycontext/impl/cupy/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
from __future__ import annotations
2-
3-
41
"""
52
.. currentmodule:: arraycontext
63
7-
A mod :`cupy`-based array context.
4+
A :mod:`cupy`-based array context.
85
96
.. autoclass:: CupyArrayContext
107
"""
118

9+
from __future__ import annotations
10+
11+
1212
__copyright__ = """
1313
Copyright (C) 2024 University of Illinois Board of Trustees
1414
"""

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?=
6+
SPHINXOPTS ?= -W -n
77
SPHINXBUILD ?= python $(shell which sphinx-build)
88
SOURCEDIR = .
99
BUILDDIR = _build

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"pytest": ("https://docs.pytest.org/en/latest/", None),
2424
"python": ("https://docs.python.org/3/", None),
2525
"pytools": ("https://documen.tician.de/pytools", None),
26+
"cupy": ("https://docs.cupy.dev/en/stable/", None),
2627
}
2728

2829
# Some modules need to import things just so that sphinx can resolve symbols in

doc/implementations.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Array context based on :mod:`numpy`
1313

1414
.. automodule:: arraycontext.impl.numpy
1515

16+
17+
Array context based on :mod:`cupy`
18+
--------------------------------------------
19+
20+
.. automodule:: arraycontext.impl.cupy
21+
1622
Array context based on :mod:`pyopencl.array`
1723
--------------------------------------------
1824

doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ code to work with all of them? No problem! Comes with pre-made array context
66
implementations for:
77

88
- :mod:`numpy`
9+
- :mod:`cupy`
910
- :mod:`pyopencl`
1011
- :mod:`jax.numpy`
1112
- :mod:`pytato` (for lazy/deferred evaluation)
1213
- Debugging
1314
- Profiling
1415

1516
:mod:`arraycontext` started life as an array abstraction for use with the
16-
:mod:`meshmode` unstrucuted discretization package.
17+
:mod:`meshmode` unstructured discretization package.
1718

1819
Design Guidelines
1920
-----------------

0 commit comments

Comments
 (0)