Skip to content

Commit 5768d7f

Browse files
Update on "Make torch.cuda.gds APIs public"
Follow up to #145748 that turned USE_CUFILE on for CUDA 12.6 and 12.8 binaries [ghstack-poisoned]
2 parents fa05d4e + 791ea3b commit 5768d7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

torch/cuda/gds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def fn(*args, **kwargs): # type: ignore[no-untyped-def]
3838
def gds_register_buffer(s: Storage) -> None:
3939
"""Registers a storage on a CUDA device as a cufile buffer.
4040
41-
.. Example::
41+
Example::
4242
4343
>>> # xdoctest: +SKIP("gds filesystem requirements")
4444
>>> src = torch.randn(1024, device="cuda")
@@ -54,7 +54,7 @@ def gds_register_buffer(s: Storage) -> None:
5454
def gds_deregister_buffer(s: Storage) -> None:
5555
"""Deregisters a previously registered storage on a CUDA device as a cufile buffer.
5656
57-
.. Example::
57+
Example::
5858
5959
>>> # xdoctest: +SKIP("gds filesystem requirements")
6060
>>> src = torch.randn(1024, device="cuda")
@@ -81,7 +81,7 @@ class GdsFile:
8181
flags (int): Flags to pass to ``os.open`` when opening the file. ``os.O_DIRECT`` will
8282
be added automatically.
8383
84-
.. Example::
84+
Example::
8585
8686
>>> # xdoctest: +SKIP("gds filesystem requirements")
8787
>>> src1 = torch.randn(1024, device="cuda")

0 commit comments

Comments
 (0)