KhronosGroup / KhronosGroup/OpenCL-Docs

SPIR-V environment specification misses requirements for Work-group Collective Functions.

Open
#650 1 comment 0 reactions 0 assignees View on GitHub
SPIR-V Environment Spec
Dominant language
Python
Stars
420
Forks
131
Avg merge
5d 13h
Merged PRs (30d)
11

Description

From https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_C.html#work-group-functions:
> We use the generic type name gentype to indicate the built-in data types half [69], int, uint, long [70], ulong, float or double [71] as the type for the arguments.
> ...
> gentype work_group_broadcast(gentype a, size_t local_id)

Which means that `OpGroupBroadcast` should not be allowed for OpTypeInt with Width equal to 8 or 16.

Contributor guide

Open the contributing guide

Research direction

Start with the linked OpenCL C work-group functions specification and the SPIR-V environment specification's OpGroupBroadcast requirements. Confirm that 8- and 16-bit OpTypeInt operands are excluded, then verify the specification text consistently reflects that restriction.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.