Skip to content

Commit 5676ff7

Browse files
author
Diptorup Deb
committed
sum.py now works. Lots to test, failures need to be investigated.
1 parent f308ece commit 5676ff7

File tree

3 files changed

+216
-204
lines changed

3 files changed

+216
-204
lines changed

numba_dppy/compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ def compile_kernel(sycl_queue, pyfunc, args, access_types, debug=False):
140140
print("compile_kernel", args)
141141
debug = True
142142
if not sycl_queue:
143-
# This will be get_current_queue
143+
# Get the current queue set in the dpctl queue manager.
144144
sycl_queue = dpctl.get_current_queue()
145145
cres = compile_with_dppy(pyfunc, None, args, debug=debug)
146146
kernel = cres.library.get_function(cres.fndesc.llvm_func_name)
147-
breakpoint()
148-
# target.set_dppy_kernel(kernel)
147+
149148
# kernel = cres.target_context.prepare_ocl_kernel(func, cres.signature.args)
149+
150150
# A reference to the target context is stored in the DPPYKernel to
151151
# reference the context later in code generation. For example, we link
152152
# the kernel object with a spir_func defining atomic operations only

numba_dppy/extended_numba_itanium_mangler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
from numba.core import itanium_mangler, types
16-
from numba_dppy.utils import target
1716

1817

1918
def mangle_type_or_value(typ):

0 commit comments

Comments
 (0)