-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
cuda::std::tuple
trivially copyable (#2127)
* Make `cuda::std::tuple` trivially copyable This is similar to the situation with `cuda::std::pair` We have a lot of users that rely on types being trivially copyable, so that they can utilize memcpy and friends. Previously, `cuda::std::tuple` did not satisfy this because it needs to handle reference types. Given that we already specialize `__tuple_leaf` depending on whether the class is empty or not, we can simply add a third specialization that handles the trivially copyable types and one that synthesizes assignment. Co-authored-by: Bernhard Manfred Gruber <[email protected]>
- Loading branch information
1 parent
fadb135
commit 4634d81
Showing
4 changed files
with
196 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.