Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Align kernel_interop test with default context extension #537

Merged
merged 1 commit into from
Nov 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions SYCL/DeprecatedFeatures/kernel_interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ int main() {

// Try to create kernel with another context
bool Pass = false;
queue Queue1;
context Context1 = Queue1.get_context();
context OtherContext{Context.get_devices()[0]};
try {
kernel Kernel(ClKernel, Context1);
kernel Kernel(ClKernel, OtherContext);
} catch (cl::sycl::invalid_parameter_error e) {
Pass = true;
}
Expand Down