Skip to content

Commit 094f852

Browse files
author
Diptorup Deb
authored
Merge pull request #1018 from IntelPython/redesign/test_suite
Redesign numba-dpex test suite
2 parents 000d5cd + 5655ab7 commit 094f852

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+572
-1348
lines changed

numba_dpex/tests/core/runtime/test_llvm_registration.py

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88

99

1010
def test_llvm_symbol_registered():
11-
""" "Register the helper function in _dpexrt_python so that we can insert calls to them via llvmlite.
12-
13-
1. DPEXRT_sycl_usm_ndarray_from_python
14-
15-
2.DPEXRT_sycl_usm_ndarray_to_python_acqref
16-
11+
"""Checks if the functions in the _dpexrt_python module are accessible
12+
using llvmlite.
1713
"""
1814
assert (
1915
llb.address_of_symbol("DPEXRT_sycl_usm_ndarray_from_python")
@@ -29,3 +25,33 @@ def test_llvm_symbol_registered():
2925
llb.address_of_symbol("NRT_ExternalAllocator_new_for_usm")
3026
== runtime._dpexrt_python.NRT_ExternalAllocator_new_for_usm
3127
)
28+
29+
assert (
30+
llb.address_of_symbol("DPEXRT_sycl_queue_from_python")
31+
== runtime._dpexrt_python.DPEXRT_sycl_queue_from_python
32+
)
33+
34+
assert (
35+
llb.address_of_symbol("DPEXRT_sycl_queue_to_python")
36+
== runtime._dpexrt_python.DPEXRT_sycl_queue_to_python
37+
)
38+
39+
assert (
40+
llb.address_of_symbol("DPEXRTQueue_CreateFromFilterString")
41+
== runtime._dpexrt_python.DPEXRTQueue_CreateFromFilterString
42+
)
43+
44+
assert (
45+
llb.address_of_symbol("DpexrtQueue_SubmitRange")
46+
== runtime._dpexrt_python.DpexrtQueue_SubmitRange
47+
)
48+
49+
assert (
50+
llb.address_of_symbol("DPEXRT_MemInfo_alloc")
51+
== runtime._dpexrt_python.DPEXRT_MemInfo_alloc
52+
)
53+
54+
assert (
55+
llb.address_of_symbol("DPEXRT_MemInfo_fill")
56+
== runtime._dpexrt_python.DPEXRT_MemInfo_fill
57+
)

numba_dpex/tests/core/runtime/test_nrt_python.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

numba_dpex/tests/core/runtime/test_runtime.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)