Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit bc2844e

Browse files
authored
Add xpu to the docs (#211)
1 parent 1201847 commit bc2844e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/writing-kernels.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ for an example with multiple kernel sections.
131131
The following options can be set for a kernel:
132132

133133
- `backend` (required): the compute backend of the kernel. The currently
134-
supported backends are `cuda`, `metal`, and `rocm`.
134+
supported backends are `cuda`, `metal`, `rocm`, and `xpu`.
135135
- `depends` (required): a list of dependencies. The supported dependencies
136136
are listed in [`deps.nix`](../lib/deps.nix).
137137
- `src` (required): a list of source files and headers.
@@ -159,6 +159,11 @@ are available:
159159
- `rocm-archs`: a list of ROCm architectures that the kernel should be
160160
compiled for.
161161

162+
#### xpu
163+
164+
- `sycl_flags`: a list of additional flags to be passed to the SYCL
165+
compiler.
166+
162167
## Torch bindings
163168

164169
### Defining bindings

0 commit comments

Comments
 (0)