Skip to content

Commit 146986d

Browse files
author
cuda-python-bot
committed
Deploy doc preview for PR 1316 (e72f8a0)
1 parent 3072e55 commit 146986d

82 files changed

Lines changed: 196 additions & 196 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 8dc718944e33f87188ab5dbb11ff09aa
3+
config: ab5cb85196b616d5f6216cfd867ac2ec
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/pr-preview/pr-1316/cuda-core/latest/_sources/developer-guide.rst.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ File Types
192192

193193
The ``cuda/core`` package uses three types of files:
194194

195-
1. **``.pyx`` files**: Cython implementation files containing the actual
195+
1. **.pyx files**: Cython implementation files containing the actual
196196
code
197-
2. **``.pxd`` files**: Cython declaration files containing type
197+
2. **.pxd files**: Cython declaration files containing type
198198
definitions and function signatures for C-level access
199-
3. **``.py`` files**: Pure Python files for utilities and high-level
199+
3. **.py files**: Pure Python files for utilities and high-level
200200
interfaces
201201

202202
File Naming Conventions
@@ -217,10 +217,10 @@ Relationship Between ``.pxd`` and ``.pyx`` Files
217217
For each ``.pyx`` file that defines classes or functions used by other
218218
Cython modules, create a corresponding ``.pxd`` file:
219219

220-
- **``.pxd`` file**: Contains ``cdef`` class declarations,
220+
- **.pxd file**: Contains ``cdef`` class declarations,
221221
``cdef``/``cpdef`` function signatures, and ``cdef`` attribute
222222
declarations
223-
- **``.pyx`` file**: Contains the full implementation including Python
223+
- **.pyx file**: Contains the full implementation including Python
224224
methods, docstrings, and implementation details
225225

226226
**Example:**
@@ -275,12 +275,12 @@ For complex subpackages that require extra structure (like
275275

276276
1. **Private submodules**: Each component is implemented in a private
277277
submodule (e.g., ``_buffer.pyx``, ``_device_memory_resource.pyx``)
278-
2. **Submodule ``__all__``**: Each submodule defines its own ``__all__``
278+
2. **Submodule __all__**: Each submodule defines its own ``__all__``
279279
list
280-
3. **Subpackage ``__init__.py``**: The subpackage ``__init__.py`` uses
280+
3. **Subpackage __init__.py**: The subpackage ``__init__.py`` uses
281281
``from ._module import *`` to assemble the package
282282

283-
**Example structure for ``_memory/`` subpackage:**
283+
**Example structure for _memory/ subpackage:**
284284

285285
``_memory/_buffer.pyx``:
286286

@@ -335,19 +335,19 @@ improve maintainability).
335335
Guidelines
336336
~~~~~~~~~~
337337

338-
1. **Always create ``.pxd`` files for shared Cython types**: If a class
338+
1. **Always create .pxd files for shared Cython types**: If a class
339339
or function is ``cimport``\ ed by other modules, provide a ``.pxd``
340340
declaration file.
341341

342-
2. **Keep ``.pxd`` files minimal**: Only include declarations needed for
342+
2. **Keep .pxd files minimal**: Only include declarations needed for
343343
Cython compilation. Omit implementation details, docstrings, and
344344
Python-only code.
345345

346-
3. **Use ``__all__`` when helpful**: Define ``__all__`` to control
346+
3. **Use __all__ when helpful**: Define ``__all__`` to control
347347
exported symbols when it simplifies or clarifies the module
348348
structure.
349349

350-
4. **Use ``from ._module import *`` in subpackage ``__init__.py``**:
350+
4. **Use from ._module import * in subpackage __init__.py**:
351351
This pattern assembles the subpackage API from its submodules. Use
352352
``# noqa: F403`` to suppress linting warnings about wildcard imports.
353353

@@ -476,7 +476,7 @@ Additional Rules
476476
Do not use blank lines within a group unless using multi-line import
477477
formatting.
478478

479-
5. **``try/except`` Blocks**: Import fallbacks (e.g., for optional
479+
5. **try/except blocks**: Import fallbacks (e.g., for optional
480480
dependencies) should be placed in the appropriate group (external or
481481
cuda-core) using ``try/except`` blocks.
482482

@@ -756,13 +756,13 @@ header). This enables:
756756
Guidelines
757757
^^^^^^^^^^
758758

759-
1. **Use ``from __future__ import annotations``**: This should be
759+
1. **Use from __future__ import annotations**: This should be
760760
present in all ``.py`` and ``.pyx`` files with type annotations.
761761

762-
2. **Use ``|`` for unions**: Prefer ``X | Y | None`` over
762+
2. **Use | for unions**: Prefer ``X | Y | None`` over
763763
``Union[X, Y]`` or ``Optional[X]``.
764764

765-
3. **Avoid ``TYPE_CHECKING`` blocks**: With
765+
3. **Avoid TYPE_CHECKING blocks**: With
766766
``from __future__ import annotations``, forward references work
767767
without ``TYPE_CHECKING`` guards.
768768

@@ -1113,8 +1113,8 @@ CUDA Exceptions
11131113

11141114
The project defines custom exceptions for CUDA-specific errors:
11151115

1116-
- **``CUDAError``**: Base exception for CUDA driver errors
1117-
- **``NVRTCError``**: Exception for NVRTC compiler errors (inherits from
1116+
- **CUDAError**: Base exception for CUDA driver errors
1117+
- **NVRTCError**: Exception for NVRTC compiler errors (inherits from
11181118
``CUDAError``)
11191119

11201120
Use these instead of generic exceptions when reporting CUDA failures.

docs/pr-preview/pr-1316/cuda-core/latest/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '0.5.1.dev38',
2+
VERSION: '0.5.1.dev39',
33
LANGUAGE: 'en',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',

docs/pr-preview/pr-1316/cuda-core/latest/api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="_static/documentation_options.js?v=49139664"></script>
4848
<script src="_static/doctools.js?v=9bcbadda"></script>
4949
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>

docs/pr-preview/pr-1316/cuda-core/latest/api_private.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="_static/documentation_options.js?v=49139664"></script>
4848
<script src="_static/doctools.js?v=9bcbadda"></script>
4949
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>

docs/pr-preview/pr-1316/cuda-core/latest/conduct.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="_static/documentation_options.js?v=49139664"></script>
4848
<script src="_static/doctools.js?v=9bcbadda"></script>
4949
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>

docs/pr-preview/pr-1316/cuda-core/latest/contribute.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="_static/documentation_options.js?v=49139664"></script>
4848
<script src="_static/doctools.js?v=9bcbadda"></script>
4949
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>

docs/pr-preview/pr-1316/cuda-core/latest/developer-guide.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="_static/documentation_options.js?v=49139664"></script>
4848
<script src="_static/doctools.js?v=9bcbadda"></script>
4949
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>
@@ -745,11 +745,11 @@ <h2>Package Layout<a class="headerlink" href="#package-layout" title="Link to th
745745
<h3>File Types<a class="headerlink" href="#file-types" title="Link to this heading">#</a></h3>
746746
<p>The <code class="docutils literal notranslate"><span class="pre">cuda/core</span></code> package uses three types of files:</p>
747747
<ol class="arabic simple">
748-
<li><p><strong>``.pyx`` files</strong>: Cython implementation files containing the actual
748+
<li><p><strong>.pyx files</strong>: Cython implementation files containing the actual
749749
code</p></li>
750-
<li><p><strong>``.pxd`` files</strong>: Cython declaration files containing type
750+
<li><p><strong>.pxd files</strong>: Cython declaration files containing type
751751
definitions and function signatures for C-level access</p></li>
752-
<li><p><strong>``.py`` files</strong>: Pure Python files for utilities and high-level
752+
<li><p><strong>.py files</strong>: Pure Python files for utilities and high-level
753753
interfaces</p></li>
754754
</ol>
755755
</section>
@@ -769,10 +769,10 @@ <h3>File Naming Conventions<a class="headerlink" href="#file-naming-conventions"
769769
<p>For each <code class="docutils literal notranslate"><span class="pre">.pyx</span></code> file that defines classes or functions used by other
770770
Cython modules, create a corresponding <code class="docutils literal notranslate"><span class="pre">.pxd</span></code> file:</p>
771771
<ul class="simple">
772-
<li><p><strong>``.pxd`` file</strong>: Contains <code class="docutils literal notranslate"><span class="pre">cdef</span></code> class declarations,
772+
<li><p><strong>.pxd file</strong>: Contains <code class="docutils literal notranslate"><span class="pre">cdef</span></code> class declarations,
773773
<code class="docutils literal notranslate"><span class="pre">cdef</span></code>/<code class="docutils literal notranslate"><span class="pre">cpdef</span></code> function signatures, and <code class="docutils literal notranslate"><span class="pre">cdef</span></code> attribute
774774
declarations</p></li>
775-
<li><p><strong>``.pyx`` file</strong>: Contains the full implementation including Python
775+
<li><p><strong>.pyx file</strong>: Contains the full implementation including Python
776776
methods, docstrings, and implementation details</p></li>
777777
</ul>
778778
<p><strong>Example:</strong></p>
@@ -819,12 +819,12 @@ <h4>Complex Subpackages<a class="headerlink" href="#complex-subpackages" title="
819819
<ol class="arabic simple">
820820
<li><p><strong>Private submodules</strong>: Each component is implemented in a private
821821
submodule (e.g., <code class="docutils literal notranslate"><span class="pre">_buffer.pyx</span></code>, <code class="docutils literal notranslate"><span class="pre">_device_memory_resource.pyx</span></code>)</p></li>
822-
<li><p><strong>Submodule ``__all__``</strong>: Each submodule defines its own <code class="docutils literal notranslate"><span class="pre">__all__</span></code>
822+
<li><p><strong>Submodule __all__</strong>: Each submodule defines its own <code class="docutils literal notranslate"><span class="pre">__all__</span></code>
823823
list</p></li>
824-
<li><p><strong>Subpackage ``__init__.py``</strong>: The subpackage <code class="docutils literal notranslate"><span class="pre">__init__.py</span></code> uses
824+
<li><p><strong>Subpackage __init__.py</strong>: The subpackage <code class="docutils literal notranslate"><span class="pre">__init__.py</span></code> uses
825825
<code class="docutils literal notranslate"><span class="pre">from</span> <span class="pre">._module</span> <span class="pre">import</span> <span class="pre">*</span></code> to assemble the package</p></li>
826826
</ol>
827-
<p><strong>Example structure for ``_memory/`` subpackage:</strong></p>
827+
<p><strong>Example structure for _memory/ subpackage:</strong></p>
828828
<p><code class="docutils literal notranslate"><span class="pre">_memory/_buffer.pyx</span></code>:</p>
829829
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;Buffer&#39;</span><span class="p">,</span> <span class="s1">&#39;MemoryResource&#39;</span><span class="p">]</span>
830830

@@ -873,16 +873,16 @@ <h4>Complex Subpackages<a class="headerlink" href="#complex-subpackages" title="
873873
<section id="guidelines">
874874
<h3>Guidelines<a class="headerlink" href="#guidelines" title="Link to this heading">#</a></h3>
875875
<ol class="arabic simple">
876-
<li><p><strong>Always create ``.pxd`` files for shared Cython types</strong>: If a class
876+
<li><p><strong>Always create .pxd files for shared Cython types</strong>: If a class
877877
or function is <code class="docutils literal notranslate"><span class="pre">cimport</span></code>ed by other modules, provide a <code class="docutils literal notranslate"><span class="pre">.pxd</span></code>
878878
declaration file.</p></li>
879-
<li><p><strong>Keep ``.pxd`` files minimal</strong>: Only include declarations needed for
879+
<li><p><strong>Keep .pxd files minimal</strong>: Only include declarations needed for
880880
Cython compilation. Omit implementation details, docstrings, and
881881
Python-only code.</p></li>
882-
<li><p><strong>Use ``__all__`` when helpful</strong>: Define <code class="docutils literal notranslate"><span class="pre">__all__</span></code> to control
882+
<li><p><strong>Use __all__ when helpful</strong>: Define <code class="docutils literal notranslate"><span class="pre">__all__</span></code> to control
883883
exported symbols when it simplifies or clarifies the module
884884
structure.</p></li>
885-
<li><p><strong>Use ``from ._module import *`` in subpackage ``__init__.py``</strong>:
885+
<li><p><strong>Use from ._module import * in subpackage __init__.py</strong>:
886886
This pattern assembles the subpackage API from its submodules. Use
887887
<code class="docutils literal notranslate"><span class="pre">#</span> <span class="pre">noqa:</span> <span class="pre">F403</span></code> to suppress linting warnings about wildcard imports.</p></li>
888888
<li><p><strong>Migrate to subpackage structure when complex</strong>: When a top-level
@@ -986,7 +986,7 @@ <h3>Additional Rules<a class="headerlink" href="#additional-rules" title="Link t
986986
<li><p><strong>Blank Lines</strong>: Use blank lines to separate the five import groups.
987987
Do not use blank lines within a group unless using multi-line import
988988
formatting.</p></li>
989-
<li><p><strong>``try/except`` Blocks</strong>: Import fallbacks (e.g., for optional
989+
<li><p><strong>try/except blocks</strong>: Import fallbacks (e.g., for optional
990990
dependencies) should be placed in the appropriate group (external or
991991
cuda-core) using <code class="docutils literal notranslate"><span class="pre">try/except</span></code> blocks.</p></li>
992992
</ol>
@@ -1235,11 +1235,11 @@ <h4>Forward References and <code class="docutils literal notranslate"><span clas
12351235
<section id="guidelines-1">
12361236
<span id="id18"></span><h4>Guidelines<a class="headerlink" href="#guidelines-1" title="Link to this heading">#</a></h4>
12371237
<ol class="arabic simple">
1238-
<li><p><strong>Use ``from __future__ import annotations``</strong>: This should be
1238+
<li><p><strong>Use from __future__ import annotations</strong>: This should be
12391239
present in all <code class="docutils literal notranslate"><span class="pre">.py</span></code> and <code class="docutils literal notranslate"><span class="pre">.pyx</span></code> files with type annotations.</p></li>
1240-
<li><p><strong>Use ``|`` for unions</strong>: Prefer <code class="docutils literal notranslate"><span class="pre">X</span> <span class="pre">|</span> <span class="pre">Y</span> <span class="pre">|</span> <span class="pre">None</span></code> over
1240+
<li><p><strong>Use | for unions</strong>: Prefer <code class="docutils literal notranslate"><span class="pre">X</span> <span class="pre">|</span> <span class="pre">Y</span> <span class="pre">|</span> <span class="pre">None</span></code> over
12411241
<code class="docutils literal notranslate"><span class="pre">Union[X,</span> <span class="pre">Y]</span></code> or <code class="docutils literal notranslate"><span class="pre">Optional[X]</span></code>.</p></li>
1242-
<li><p><strong>Avoid ``TYPE_CHECKING`` blocks</strong>: With
1242+
<li><p><strong>Avoid TYPE_CHECKING blocks</strong>: With
12431243
<code class="docutils literal notranslate"><span class="pre">from</span> <span class="pre">__future__</span> <span class="pre">import</span> <span class="pre">annotations</span></code>, forward references work
12441244
without <code class="docutils literal notranslate"><span class="pre">TYPE_CHECKING</span></code> guards.</p></li>
12451245
<li><p><strong>Import types normally</strong>: Even if a type is only used in
@@ -1572,8 +1572,8 @@ <h2>Errors and Warnings<a class="headerlink" href="#errors-and-warnings" title="
15721572
<h3>CUDA Exceptions<a class="headerlink" href="#cuda-exceptions" title="Link to this heading">#</a></h3>
15731573
<p>The project defines custom exceptions for CUDA-specific errors:</p>
15741574
<ul class="simple">
1575-
<li><p><strong>``CUDAError``</strong>: Base exception for CUDA driver errors</p></li>
1576-
<li><p><strong>``NVRTCError``</strong>: Exception for NVRTC compiler errors (inherits from
1575+
<li><p><strong>CUDAError</strong>: Base exception for CUDA driver errors</p></li>
1576+
<li><p><strong>NVRTCError</strong>: Exception for NVRTC compiler errors (inherits from
15771577
<code class="docutils literal notranslate"><span class="pre">CUDAError</span></code>)</p></li>
15781578
</ul>
15791579
<p>Use these instead of generic exceptions when reporting CUDA failures.</p>

docs/pr-preview/pr-1316/cuda-core/latest/generated/cuda.core.Buffer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="../_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="../_static/documentation_options.js?v=49139664"></script>
4848
<script src="../_static/doctools.js?v=9bcbadda"></script>
4949
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>

docs/pr-preview/pr-1316/cuda-core/latest/generated/cuda.core.Device.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

4646

47-
<script src="../_static/documentation_options.js?v=ed6b127d"></script>
47+
<script src="../_static/documentation_options.js?v=49139664"></script>
4848
<script src="../_static/doctools.js?v=9bcbadda"></script>
4949
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
5050
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
@@ -53,7 +53,7 @@
5353
<script>
5454
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
5555
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://nvidia.github.io/cuda-python/cuda-core/nv-versions.json';
56-
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev38';
56+
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '0.5.1.dev39';
5757
DOCUMENTATION_OPTIONS.show_version_warning_banner =
5858
false;
5959
</script>

0 commit comments

Comments
 (0)