Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL][L0] Skip uninitialized buffer migration copy #7168

Merged
merged 2 commits into from
Oct 25, 2022

Conversation

smaslov-intel
Copy link
Contributor

Signed-off-by: Sergey V Maslov sergey.v.maslov@intel.com

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
@smaslov-intel smaslov-intel requested a review from a team as a code owner October 24, 2022 22:43
Comment on lines +8866 to +8867
if (ZeHandleSrc == ZeHandle)
NeedCopy = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note, that in the case that I was fixing (single root-device context with multiple sub-devices in it) this alone is probably enough, but I thought that handling LastDeviceWithValidAllocation == nullptr is also a good idea and it avoids many copies by itself even without this check

@againull
Copy link
Contributor

Sergey, there is one failure which may be related to the changes:


Failed Tests (1):
SYCL :: Plugin/interop-level-zero-interop-task-mem.cpp

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
@smaslov-intel
Copy link
Contributor Author

Sergey, there is one failure which may be related to the changes:

Failed Tests (1): SYCL :: Plugin/interop-level-zero-interop-task-mem.cpp

Yeah, it is. I've added small additional fix.

@againull againull merged commit b0c3404 into intel:sycl Oct 25, 2022
@smaslov-intel smaslov-intel deleted the perf.new branch October 25, 2022 18:20
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.

2 participants