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

Commit a479325

Browse files
[SYCL] Align kernel_interop test with default context extension (#537)
1 parent 1b5a2a2 commit a479325

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

SYCL/DeprecatedFeatures/kernel_interop.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ int main() {
5252

5353
// Try to create kernel with another context
5454
bool Pass = false;
55-
queue Queue1;
56-
context Context1 = Queue1.get_context();
55+
context OtherContext{Context.get_devices()[0]};
5756
try {
58-
kernel Kernel(ClKernel, Context1);
57+
kernel Kernel(ClKernel, OtherContext);
5958
} catch (cl::sycl::invalid_parameter_error e) {
6059
Pass = true;
6160
}

0 commit comments

Comments
 (0)