We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab22e21 commit 863c7adCopy full SHA for 863c7ad
numba_dpex/tests/core/types/DpctlSyclQueue/test_box.py
@@ -0,0 +1,27 @@
1
+# SPDX-FileCopyrightText: 2020 - 2023 Intel Corporation
2
+#
3
+# SPDX-License-Identifier: Apache-2.0
4
+
5
+"""
6
+Tests for boxing for dpnp.ndarray
7
8
9
+import dpnp
10
+import pytest
11
+from dpctl import SyclQueue
12
13
+from numba_dpex import dpjit
14
15
16
+def test_boxing_without_parent():
17
+ """Test unboxing of the queue that does not have parent"""
18
19
+ @dpjit
20
+ def func() -> SyclQueue:
21
+ arr = dpnp.empty(10)
22
+ queue = arr.sycl_queue
23
+ return queue
24
25
+ q: SyclQueue = func()
26
27
+ assert len(q.sycl_device.filter_string) > 0
0 commit comments