Skip to content

[SYCLomatic] Fixing dpct::device_vector usage in copy_if test#240

Closed
danhoeflinger wants to merge 2 commits intooneapi-src:SYCLomaticfrom
danhoeflinger:dev/dhoeflin/copy_if_test_fix
Closed

[SYCLomatic] Fixing dpct::device_vector usage in copy_if test#240
danhoeflinger wants to merge 2 commits intooneapi-src:SYCLomaticfrom
danhoeflinger:dev/dhoeflin/copy_if_test_fix

Conversation

@danhoeflinger
Copy link
Contributor

Device vector was used in a way which reached into the underlying pointers and used queue.memcpy() rather than using its implicit host/device copy functionality. For USM this worked, but for the buffer variety this caused a segfault.

This PR changes the usage pattern to match onedpl_test_vector.cpp, and resolves the crash.

This seems to have been a known runtime failure, as there was a comment describing this, which I have removed.

Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
@danhoeflinger
Copy link
Contributor Author

Closing this in favor of #243, which includes these changes.

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.

1 participant