Hi,
Could someone help me fix this bug im getting running numba code. I have shared the code in reply.
The error is TypeError: Signature mismatch: 2 argument types given, but function takes 3 arguments
But the function definitely has more than 3 arguments (actual is 6).
$ python3 pyrebel_main_abs_to_con2.py --input deep2.png
len(bound_data)= 31492
count= 17 567
abstraction complete.
Traceback (most recent call last):
File "/home/ps_nithin/temp2/pyrebel/demo/bug_test/pyrebel_main_abs_to_con2.py", line 90, in <module>
abs.abstract_to_concrete(1)
File "/home/ps_nithin/temp2/pyrebel/demo/bug_test/pyrebel/abstract.py", line 536, in abstract_to_concrete
get_max_dist3[math.ceil(len(ba_size_d)/32),32](ba_size_cum_d,ba_size_d,new_bound_data_d,dist_data_d,max_dist_i_d,max_dist_d)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 539, in __call__
return self.dispatcher.call(args, self.griddim, self.blockdim,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 681, in call
kernel = _dispatcher.Dispatcher._cuda_call(self, *args)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 689, in _compile_for_args
return self.compile(tuple(argtypes))
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 932, in compile
kernel = _Kernel(self.py_func, argtypes, **self.targetoptions)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 83, in __init__
cres = compile_cuda(self.py_func, types.void, self.argtypes,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/compiler.py", line 196, in compile_cuda
cres = compiler.compile_extra(typingctx=typingctx,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 739, in compile_extra
return pipeline.compile_extra(func)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 439, in compile_extra
return self._compile_bytecode()
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 505, in _compile_bytecode
return self._compile_core()
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 481, in _compile_core
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 473, in _compile_core
pm.run(self.state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 363, in run
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 356, in run
self._runPass(idx, pass_inst, state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 311, in _runPass
mutated |= check(pss.run_pass, internal_state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 272, in check
mangled = func(compiler_state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typed_passes.py", line 114, in run_pass
typemap, return_type, calltypes, errs = type_inference_stage(
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typed_passes.py", line 95, in type_inference_stage
errs = infer.propagate(raise_errors=raise_errors)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 1075, in propagate
errors = self.constraints.propagate(self)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 160, in propagate
constraint(typeinfer)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 572, in __call__
self.resolve(typeinfer, typevars, fnty)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 595, in resolve
sig = typeinfer.resolve_call(fnty, pos_args, kw_args)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 1569, in resolve_call
return self.context.resolve_function_type(fnty, pos_args, kw_args)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/context.py", line 279, in resolve_function_type
res = self._resolve_user_function_type(func, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/context.py", line 335, in _resolve_user_function_type
return func.get_call_type(self, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 314, in get_call_type
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 311, in get_call_type
sig = temp.apply(nolitargs, nolitkws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 358, in apply
sig = generic(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 621, in generic
disp, new_args = self._get_impl(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 720, in _get_impl
impl, args = self._build_impl(cache_key, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 824, in _build_impl
disp_type.get_call_type(self.context, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 541, in get_call_type
self.dispatcher.get_call_template(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 849, in get_call_template
self.compile_device(tuple(args))
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 883, in compile_device
cres = compile_cuda(self.py_func, return_type, args,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/compiler.py", line 196, in compile_cuda
cres = compiler.compile_extra(typingctx=typingctx,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 739, in compile_extra
return pipeline.compile_extra(func)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 439, in compile_extra
return self._compile_bytecode()
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 505, in _compile_bytecode
return self._compile_core()
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 481, in _compile_core
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 473, in _compile_core
pm.run(self.state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 363, in run
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 356, in run
self._runPass(idx, pass_inst, state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 311, in _runPass
mutated |= check(pss.run_pass, internal_state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 272, in check
mangled = func(compiler_state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typed_passes.py", line 114, in run_pass
typemap, return_type, calltypes, errs = type_inference_stage(
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typed_passes.py", line 95, in type_inference_stage
errs = infer.propagate(raise_errors=raise_errors)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 1075, in propagate
errors = self.constraints.propagate(self)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 160, in propagate
constraint(typeinfer)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 572, in __call__
self.resolve(typeinfer, typevars, fnty)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 595, in resolve
sig = typeinfer.resolve_call(fnty, pos_args, kw_args)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typeinfer.py", line 1569, in resolve_call
return self.context.resolve_function_type(fnty, pos_args, kw_args)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/context.py", line 279, in resolve_function_type
res = self._resolve_user_function_type(func, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/context.py", line 335, in _resolve_user_function_type
return func.get_call_type(self, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 404, in get_call_type
raise exc
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 401, in get_call_type
out = template.apply(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 358, in apply
sig = generic(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 1140, in generic
sig = self._get_signature(self.context, fnty, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 1085, in _get_signature
sig = fnty.get_call_type(typingctx, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 314, in get_call_type
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 311, in get_call_type
sig = temp.apply(nolitargs, nolitkws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 358, in apply
sig = generic(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 621, in generic
disp, new_args = self._get_impl(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 720, in _get_impl
impl, args = self._build_impl(cache_key, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/typing/templates.py", line 824, in _build_impl
disp_type.get_call_type(self.context, args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/types/functions.py", line 541, in get_call_type
self.dispatcher.get_call_template(args, kws)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 849, in get_call_template
self.compile_device(tuple(args))
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/dispatcher.py", line 883, in compile_device
cres = compile_cuda(self.py_func, return_type, args,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/cuda/compiler.py", line 196, in compile_cuda
cres = compiler.compile_extra(typingctx=typingctx,
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 739, in compile_extra
return pipeline.compile_extra(func)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 439, in compile_extra
return self._compile_bytecode()
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 505, in _compile_bytecode
return self._compile_core()
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 481, in _compile_core
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler.py", line 473, in _compile_core
pm.run(self.state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 363, in run
raise e
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 356, in run
self._runPass(idx, pass_inst, state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_lock.py", line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 311, in _runPass
mutated |= check(pss.run_pass, internal_state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/compiler_machinery.py", line 272, in check
mangled = func(compiler_state)
File "/home/ps_nithin/.local/lib/python3.10/site-packages/numba/core/untyped_passes.py", line 105, in run_pass
raise TypeError("Signature mismatch: %d argument types given, "
TypeError: Signature mismatch: 2 argument types given, but function takes 3 arguments
Thanks,