Skip to content

[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

Merged

Conversation

romanovvlad
Copy link
Contributor

Add missing constructors and propety methods for context, program and sampler.

Add missing constructors and propety methods for context, program and sampler.
@romanovvlad romanovvlad requested a review from a team as a code owner August 25, 2020 14:31
alexbatashev
alexbatashev previously approved these changes Aug 25, 2020
Copy link
Contributor

@alexbatashev alexbatashev left a 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");
Copy link
Contributor

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.

@romanovvlad romanovvlad merged commit 30b8acc into intel:sycl Aug 26, 2020
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
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.

2 participants