Closed rtohid closed 3 years ago
@rtohid this is a side effect of the delayed compilation we have put in place a while ago. However I think we could simply compile the function right away if debug=True
is set.
Thanks @hkaiser. I get similar behavior with debug=True
.
Thanks @hkaiser. I get similar behavior with
debug=True
.
Sure, I didn't imply debug=1
would be different from debug=True
. What I meant is that we should change https://github.com/STEllAR-GROUP/phylanx/blob/master/python/phylanx/ast/physl.py#L515 to:
if PhylanxSession.is_initialized or self.kwargs.get('debug', False):
to force compiling a function when it is seen first if debug
is enabled.
Thanks @hkaiser. I'd misunderstood. This works, I'll create a pull request later today.
Setting the debug option to
true
should print the PhySL code at function definition not function call.NOT working
working
with output: