Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

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

Closed
danhoeflinger wants to merge 2 commits into
oneapi-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 into
oneapi-src:SYCLomaticfrom
danhoeflinger:dev/dhoeflin/copy_if_test_fix

Conversation

@danhoeflinger

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant