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

[UR] call urGetAdapter before creating a device from native handle #12619

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

pbalcer
Copy link
Contributor

@pbalcer pbalcer commented Feb 6, 2024

This solves the same issues as #12432, but for urDeviceCreateWithNativeHandle. I considered a more generalized solution (e.g., calling urGetAdapter in piPluginInit), but I'm not sure that's worth it considering PI is going away. All the other CreateWithNativeHandle functions require either platform or a device to already exist.

This solves the same issues as intel#12432, but for urDeviceCreateWithNativeHandle.
Copy link
Contributor

@nrspruit nrspruit left a comment

Choose a reason for hiding this comment

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

LGTM

@pbalcer
Copy link
Contributor Author

pbalcer commented Feb 7, 2024

@intel/llvm-gatekeepers please merge

@ldrumm ldrumm merged commit 0ae3c87 into intel:sycl Feb 7, 2024
11 checks passed
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