KhronosGroup / KhronosGroup/SYCL-Docs

For a sub-device's kernel_bundle, should it contain the sub-device in the context or is root-device enough?

Open
#313 11 comments 0 reactions 0 assignees View on GitHub
clarification
Dominant language
JavaScript
Stars
158
Forks
80
Avg merge
7d 6h
Merged PRs (30d)
5

Description

One of the `queue`s constructors contains the following:

> This device must either be contained by syclContext or it must be a [descendent device](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#descendent-device) of some device that is contained by that context

However, it's not clear from the spec if the same is applicable for `kernel_bundle`s. The closest I found is

> 4.11.1. Overview
> A kernel bundle is a high-level abstraction which represents a set of [kernels](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#kernel) that are associated with a [context](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#context) and can be executed on a number of [devices](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#device), where each device is associated with that same context

Does "associated with that same context" include sub-devices of the devices in the context? If so, where is that term formally defined?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with SYCL spec section 4.11.1, the definition of a kernel bundle, and the quoted queue-constructor requirement. Check whether “associated with that same context” formally covers sub-devices, then clarify the specification's wording or reference; done means the relationship is unambiguous.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.