Skip to content

Conversation

@cperkinsintel
Copy link
Contributor

the queue_impl(PI) constructor is creating a new device_impl, but that is not strictly correct. Presently this SYCL implementation assumes there is a 1:1 relationship between devicePI and device_impl. By creating a new one, there will now be two device_impls (one already in the context) for the same devicePI. In this PR we are simply finding the matching device_impl in the Context and using that rather than creating a new one, preserving the 1:1 relationship.

Signed-off-by: Chris Perkins chris.perkins@intel.com

…t is not strictly correct. Presently this SYCL implementation assumes there is a 1:1 relationship between devicesPI and devic_impl. By creating a new one, there will now be two device_impls (one already in the context) for the same devicePI. In this PR we are simply finding the matching device_impl in the Context and using that rather than creating a nnew one.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@cperkinsintel cperkinsintel marked this pull request as ready for review July 12, 2022 00:26
@cperkinsintel cperkinsintel requested a review from a team as a code owner July 12, 2022 00:26
@cperkinsintel
Copy link
Contributor Author

ping to reviewers. This is on the MFL and will need expediting.

Copy link
Contributor

@sergey-semenov sergey-semenov left a comment

Choose a reason for hiding this comment

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

Could you please add a test for this change?

Also, since the interop constructor now actually makes a check and throws an exception, we'll need to align it with #5882 in whichever PR gets merged last.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@againull againull merged commit 4b2a158 into intel:sycl Jul 13, 2022
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.

3 participants