Skip to content

[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

Merged
merged 10 commits into from
Oct 20, 2020

Conversation

rdeodhar
Copy link
Contributor

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]

@rdeodhar rdeodhar marked this pull request as ready for review October 13, 2020 22:25
: (MemObj->MapHostPtr ? nullptr : MappedPtr));

if (BufferUsesHostMem) {
(*Event)->HostSyncforMap = true;
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

see comments

smaslov-intel
smaslov-intel previously approved these changes Oct 16, 2020
@romanovvlad
Copy link
Contributor

/summary:run

//
// On integrated devices the buffer has been allocated in host memory.
if (Buffer->OnHost) {
// Wait on incoming events before doing the copy
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@romanovvlad romanovvlad merged commit 2ae1bc9 into intel:sycl Oct 20, 2020
@rdeodhar rdeodhar deleted the ibuf3 branch January 15, 2021 17:32
iclsrc pushed a commit that referenced this pull request Jul 26, 2024
kbenzie pushed a commit to kbenzie/intel-llvm that referenced this pull request Feb 17, 2025
…ests

Enable cmd-buf local memory update CTS tests on L0
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
Enable cmd-buf local memory update CTS tests on L0
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.

4 participants