Skip to content

Commit 06c6161

Browse files
committed
lintrunner apply
1 parent 0146260 commit 06c6161

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

advanced_source/cpp_custom_ops_sycl.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Follow the structure to create a custom SYCL operator:
3030
.. code-block:: text
3131
3232
sycl_example/
33-
├── setup.py
33+
├── setup.py
3434
├── sycl_extension
3535
│ ├── __init__.py
3636
│ ├── muladd.sycl
@@ -40,7 +40,7 @@ Follow the structure to create a custom SYCL operator:
4040
Setting up the Build System
4141
---------------------------
4242

43-
If you need to compile **SYCL** code (for example, ``.sycl`` files), use `torch.utils.cpp_extension.SyclExtension <https://docs.pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.SyclExtension>`_.
43+
If you need to compile **SYCL** code (for example, ``.sycl`` files), use `torch.utils.cpp_extension.SyclExtension <https://docs.pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.SyclExtension>`_.
4444
The setup process is very similar to C++/CUDA, except the compilation arguments need to be adjusted for SYCL.
4545

4646
Using ``sycl_extension`` is as straightforward as writing the following ``setup.py``:
@@ -174,7 +174,7 @@ in a separate ``TORCH_LIBRARY_IMPL`` block:
174174
TORCH_LIBRARY_IMPL(sycl_extension, XPU, m) {
175175
m.impl("mymuladd", &mymuladd_xpu);
176176
}
177-
177+
178178
} // namespace sycl_extension
179179
180180
@@ -185,7 +185,7 @@ Create a Python Interface
185185
Create a Python interface for our operator in the ``sycl_extension/ops.py`` file:
186186

187187
.. code-block:: python
188-
188+
189189
import torch
190190
from torch import Tensor
191191
__all__ = ["mymuladd"]

0 commit comments

Comments
 (0)