Skip to content

Conversation

@bader
Copy link
Contributor

@bader bader commented Dec 13, 2025

Current implementation of marray default constructor uses
list-initialization to initialize elements, which leads to
"value-initalization" of each element instead of default-initialization
required by the SYCL specification.

The fix caught a few places in the tests where marray is used in the
constexpr context without initialization.

Current implementation of marray default constructor uses
list-initialization to initialize elements, which leads to
"value-initalization" of each element instead of default-initialization
required by the SYCL specification.

The fix caught a few places in the tests where marray is used in the
constexpr context without initialization.
@bader bader requested a review from a team as a code owner December 13, 2025 05:40
@bader bader requested a review from turinevgeny December 13, 2025 05:41
@bader bader changed the title [SYCL] Use compiler's implementaton for default marray constructor [SYCL] Use compiler's implementation for default marray constructor Dec 13, 2025
Default marray constructor does not zero initializes int32_t type elements.
@bader bader requested a review from a team as a code owner December 13, 2025 06:23
@bader
Copy link
Contributor Author

bader commented Dec 15, 2025

@intel/sycl-matrix-reviewers, ping.

@bader
Copy link
Contributor Author

bader commented Dec 16, 2025

@intel/sycl-matrix-reviewers, please, take a look.

Copy link
Contributor

@YixingZhang007 YixingZhang007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! Thank you!

@github-actions
Copy link
Contributor

@intel/llvm-gatekeepers please consider merging

@bader bader merged commit ba4f090 into intel:sycl Dec 16, 2025
33 of 34 checks passed
@bader bader deleted the marray-constexpr branch December 16, 2025 18:29
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.

3 participants