Skip to content

Added unit test for copy_if#53

Open
vucinicv wants to merge 1 commit into
nsubtil:masterfrom
vucinicv:unit_tests/copy_if
Open

Added unit test for copy_if#53
vucinicv wants to merge 1 commit into
nsubtil:masterfrom
vucinicv:unit_tests/copy_if

Conversation

@vucinicv

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/copy_if.cu
};

template <target_system system>
scoped_allocation<host, int32> serial_copy_if_pos(scoped_allocation<system, int32>& data)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This is wrong. You can not return a scoped_allocation by value, as the original will have been deallocated by the time you return.

We really need to prevent the API from allowing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants