Skip to content

Commit 6f71198

Browse files
[SYCL][Docs] Correctly use sourceBundle in build shorthand description (#17446)
The description of the `build` shorthand uses `ctxt`, despite there being no such argument associated. This commit fixes this by using the devices from the `sourceBundle` argument. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent b48a15a commit 6f71198

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_compiler.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ Any remaining kernels (those that are not compatible with any of the devices in
285285
The new bundle has the same associated context as `sourceBundle`, and the new
286286
bundle's set of associated devices is `devs` (with duplicate devices removed).
287287

288-
_Effects (2)_: Equivalent to `build(sourceBundle, ctxt.get_devices(), props)`.
288+
_Effects (2)_: Equivalent to
289+
`build(sourceBundle, sourceBundle.get_devices(), props)`.
289290

290291
_Returns:_ The newly created kernel bundle, which has `executable` state.
291292

0 commit comments

Comments
 (0)