Skip to content

Comments

[Backport to 13] Integer dot product translation#1561

Merged
svenvh merged 1 commit intoKhronosGroup:llvm_release_130from
Quetzonarch:integer_dot_product_translation_fix_130
Jul 29, 2022
Merged

[Backport to 13] Integer dot product translation#1561
svenvh merged 1 commit intoKhronosGroup:llvm_release_130from
Quetzonarch:integer_dot_product_translation_fix_130

Conversation

@Quetzonarch
Copy link
Contributor

Backport of #1174

This proposed change is a fix for translation of IR from OCL-like source when dot function is called with integer arguments (ints or vectors of chars or shorts) to properly support cl_khr_integer_dot_product extension. Previously dot would always be translated to its version with floating point arguments. With this fix the call to dot function should be translated into a proper OpCode, based on the arguments used.

Contains slight adjustments in OCLToSPIRV to fit older version.

Fixed translation of IR from source when dot function is called with
integer arguments (ints, vectors of chars or shorts) to properly
support cl_khr_integer_dot_product extension. Previously dot would
always be translated to its version with floating point arguments.
@svenvh svenvh merged commit d7280d3 into KhronosGroup:llvm_release_130 Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants