Repository navigation
Commit a76263c
docs(cuda.core): document PinnedMemoryResource.allocate parameters (NVIDIA#2713)
* docs(cuda.core): document PinnedMemoryResource.allocate parameters
The override's one-line docstring is what autodoc renders, so the
generated page for the public class documented neither the required
keyword-only stream argument nor the return value, and never
mentioned the RuntimeError raised when the device does not support
the requested host memory pool.
Give the override the full numpydoc body. The .pyi stub is
regenerated by the stubgen-pyx-cuda-core pre-commit hook.
Closes NVIDIA#2712.
Signed-off-by: Vyron Vasileiadis <[email protected]>
* docs(cuda.core): drop device-access claim from PinnedMemoryResource.allocate
The Returns text said the buffer is accessible from the device that the
stream belongs to. PinnedMemoryResource creates its pool from
CUmemPoolProps alone and never calls cuMemPoolSetAccess, and the driver
documents host-located pools as accessible from the host CPU by
default, so only the host access is established.
Signed-off-by: Vyron Vasileiadis <[email protected]>
---------
Signed-off-by: Vyron Vasileiadis <[email protected]>
Co-authored-by: Andy Jost <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>1 parent f9212dd commit a76263c
2 files changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
88 | 110 | | |
89 | 111 | | |
90 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
117 | 139 | | |
118 | 140 | | |
119 | 141 | | |
| |||
0 commit comments