Skip to content

[SYCL][E2E] P2P must use Device USM, not Shared #15242

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 1 commit into from
Sep 3, 2024

Conversation

aelovikov-intel
Copy link
Contributor

@aelovikov-intel aelovikov-intel commented Aug 30, 2024

As discussed in #14095 (comment).

@aelovikov-intel
Copy link
Contributor Author

Windows task failed at
image
, unrelated.

@aelovikov-intel
Copy link
Contributor Author

aelovikov-intel commented Aug 30, 2024

image

I haven't done anything like that ("removed request"), @uditagarwal97 , please continue with the review :)

@@ -50,15 +50,15 @@ int main() {
h_sum += value;
}

int *d_sum = malloc_shared<int>(1, Queues[0]);
int *d_sum = malloc_device<int>(1, Queues[0]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we first check if malloc_device is even supported on the device? Like:

if (dev.get_info<info::device::usm_device_allocations>())
...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would be a separate change - we're already using it on the next line.

Copy link
Contributor

Choose a reason for hiding this comment

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

@JackAKirk Please update this test (and other P2P tests, if applicable) to also check if device allocations are supported on the device(s).

@aelovikov-intel aelovikov-intel merged commit d6a851e into intel:sycl Sep 3, 2024
13 of 14 checks passed
@aelovikov-intel aelovikov-intel deleted the p2p-device-usm branch September 3, 2024 15:18
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