Skip to content

Commit b2515d9

Browse files
Deb, Diptorupreazulhoque
authored andcommitted
(numba/dppy) Fix generation of the gufunc function name for parfors to make sure Intel Advisor works (#81)
* Create deterministic gufunc_name for njit kernel with parfor
1 parent b4f99ef commit b2515d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dppy_lowerer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,7 @@ def print_arg_with_addrspaces(args):
423423

424424

425425
# Determine the unique names of the scheduling and gufunc functions.
426-
gufunc_name = "__numba_parfor_gufunc_%s" % (
427-
hex(hash(parfor)).replace("-", "_"))
426+
gufunc_name = "__numba_parfor_gufunc_%s" % (parfor.id)
428427

429428
if config.DEBUG_ARRAY_OPT:
430429
# print("sched_func_name ", type(sched_func_name), sched_func_name)

0 commit comments

Comments
 (0)