Skip to content

Commit

Permalink
Fix error behavior for initialize_to_identity
Browse files Browse the repository at this point in the history
Cherry pick KhronosGroup#651 from main
(cherry picked from commit 8424248)
  • Loading branch information
tomdeakin authored and gmlueck committed Nov 7, 2024
1 parent bb4f2c7 commit e99c77c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13885,9 +13885,10 @@ property::reduction::initialize_to_identity
identity value passed to the reduction interface, or to the identity
value determined by the [code]#known_identity# trait if no identity value
was specified. If no identity value was specified and an identity value
cannot be determined by the [code]#known_identity# trait, the compiler
must raise a diagnostic. When this property is set, the original value of
the reduction variable is not included in the reduction.
cannot be determined by the [code]#known_identity# trait, the
implementation must throw an [code]#exception# with the
[code]#errc::invalid# error code. When this property is set, the original
value of the reduction variable is not included in the reduction.

|====

Expand Down

0 comments on commit e99c77c

Please sign in to comment.