[ https://issues.apache.org/jira/browse/SYSTEMML-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Boehm closed SYSTEMML-2343. ------------------------------------ Resolution: Fixed Assignee: Matthias Boehm Fix Version/s: SystemML 1.2 > Invalid function removal for eval input to pwrite/print > ------------------------------------------------------- > > Key: SYSTEMML-2343 > URL: https://issues.apache.org/jira/browse/SYSTEMML-2343 > Project: SystemML > Issue Type: Bug > Reporter: Matthias Boehm > Assignee: Matthias Boehm > Priority: Major > Fix For: SystemML 1.2 > > > The following script fails with missing function and misleading error > message. The root cause is incorrect meta data management in the functional > call graph of IPA which did not properly detect eval functions under > persistent writes or print/tostring. > {code} > foo1 = function (matrix[double] M) return (matrix[double] ret) { > ret = M + 1 > } > foo2 = function (matrix[double] M) return (matrix[double] ret) { > ret = M + 2 > } > M = matrix ("1 2 3 4 5 6", rows=3, cols=2) > A = eval("foo1", M) > B = eval("foo2", A) > print ("A = \n" + toString(A)) > print ("B = \n" + toString(B)) > {code} > {code} > Caused by: org.apache.sysml.runtime.DMLRuntimeException: namespace .defaultNS > is undefined > at > org.apache.sysml.runtime.controlprogram.Program.getFunctionProgramBlock(Program.java:93) > at > org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:101) > at > org.apache.sysml.runtime.instructions.cp.EvalNaryCPInstruction.processInstruction(EvalNaryCPInstruction.java:67) > at > org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:252) > ... 36 more > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)