SYCL: Implement sub_group_mask copy assignment operator #10885
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #10564 (comment). It's not clear why the copy assignment operator was deleted instead of providing a proper implementation and this causes issues downstream, e.g., in https://github.com/desul/desul/blob/d2a78e176e0a30f5893c596012d1115df5289be7/atomics/include/desul/atomics/Compare_Exchange_SYCL.hpp#L106.
This pull request rather implements the copy assignment operator for
sub_group_mask
than deleting it. It looks like the copy constructor and the copy assignment operator could be defaulted instead but maybe (implicitly) deleting the move constructor and move copy assignment operator is intentional.