-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add missing constructors and propety methods #2368
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] Add missing constructors and propety methods #2368
Conversation
Add missing constructors and propety methods for context, program and sampler.
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.
LGTM. Please, fix tests.
static_cast<pi_context_properties>(PI_CONTEXT_PROPERTIES_CUDA_PRIMARY), | ||
static_cast<pi_context_properties>(UseCUDAPrimaryContext), 0}; | ||
|
||
getPlugin().call<PiApiKind::piContextCreate>( | ||
props, DeviceIds.size(), DeviceIds.data(), nullptr, nullptr, &MContext); | ||
Props, DeviceIds.size(), DeviceIds.data(), nullptr, nullptr, &MContext); | ||
#else | ||
cl::sycl::detail::pi::die("CUDA support was not enabled at compilation time"); |
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.
Not related to this patch, but this message is misleading. If I saw this in my program, I would have started looking for dpcpp compiler options to enable CUDA.
Fix "use after release" issues
Add missing constructors and propety methods for context, program and sampler.