-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Change in buffer management for integrated GPUs. #2631
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
Conversation
Signed-off-by: rdeodhar <[email protected]>
: (MemObj->MapHostPtr ? nullptr : MappedPtr)); | ||
|
||
if (BufferUsesHostMem) { | ||
(*Event)->HostSyncforMap = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not be needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, by signalling the event completion in map/unmap we don't need this flag at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
/summary:run |
// | ||
// On integrated devices the buffer has been allocated in host memory. | ||
if (Buffer->OnHost) { | ||
// Wait on incoming events before doing the copy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if the call is not blocking, BlockingMap = false
? we would be making this call blocking, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the map operation will do the copy immediately and then signal the output event.
…ersion. (#2631) Align with llvm/llvm-project@5fd5b8a. Co-authored-by: Sven van Haastregt <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@a84bfcaf829995c
…ests Enable cmd-buf local memory update CTS tests on L0
Enable cmd-buf local memory update CTS tests on L0
This change special-cases GPU devices with integrated memory. Buffers for these devices is allocated in host shared memory, improving performance of buffer data transfers.
Signed-off-by: rdeodhar [email protected]