Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-3016

Error in Codegen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemDS 2.1
    • None
    • None

    Description

      The codegen is failing with the following error,

      To reproduce the error run the testGridSearchLmCP test with the codegen flag enabled. 

      [ERROR] Codegen failed to optimize the following HOP DAG: [ERROR] Codegen failed to optimize the following HOP DAG: (3579) PRead X [400,20,1000,-1] [0,0,0 -> 0MB] [rblk], CP(3578) rix (3579) [200,20,1000,-1] [0,0,0 -> 0MB], CP(3577) TWrite Xtest (3578) [200,20,1000,-1] [0,0,0 -> 0MB], CP(3593) PRead y [400,1,1000,-1] [0,0,0 -> 0MB] [rblk], CP(3592) rix (3593) [200,1,1000,-1] [0,0,0 -> 0MB], CP(3591) TWrite ytest (3592) [200,1,1000,-1] [0,0,0 -> 0MB], CP(3597) rix (3579) [200,20,1000,-1] [0,0,0 -> 0MB], CP(3599) rix (3593) [200,1,1000,-1] [0,0,0 -> 0MB], CP(3602) m(list) [3,1,1000,-1] [0,0,0 -> 0MB], CP(3609) dg(seq) [5,1,1000,-1] [0,0,0 -> 0MB], CP(3607) b(^) (3609) [5,1,1000,-1] [0,0,0 -> 0MB], CP(3614) dg(seq) [7,1,1000,-1] [0,0,0 -> 0MB], CP(3613) b(^) (3614) [7,1,1000,-1] [0,0,0 -> 0MB], CP(3618) dg(seq) [3,1,1000,-1] [0,0,0 -> 0MB], CP(3617) b(^) (3618) [3,1,1000,-1] [0,0,0 -> 0MB], CP(3606) m(list) (3607,3613,3617) [3,1,1000,-1] [0,0,0 -> 0MB], CP(3621) m(list) [0,1,1000,-1] [0,0,0 -> 0MB], CP(3622) m(list) [0,1,1000,-1] [0,0,0 -> 0MB], CP(3596) fcall (3597,3599,3602,3606,3621,3622) [-1,-1,1000,-1] [0,0,- -> 0MB], CP(3630) r(r') (3597) [20,200,1000,-1] [0,0,0 -> 0MB](3629) ba(+*) (3630,3597) [20,20,1000,-1] [0,0,0 -> 0MB], CP(3632) dg(rand) [20,1,1000,20] [0,0,0 -> 0MB], CP(3631) r(rdiag) (3632) [20,20,1000,20] [0,0,0 -> 0MB], CP(3628) b(+) (3629,3631) [20,20,1000,-1] [0,0,0 -> 0MB], CP(3636) ba(+*) (3630,3599) [20,1,1000,-1] [0,0,0 -> 0MB], CP(3627) b(solve) (3628,3636) [20,1,1000,-1] [0,0,0 -> 0MB], CP(3626) TWrite B2 (3627) [20,1,1000,-1] [0,0,0 -> 0MB], CP
      org.apache.sysds.runtime.DMLRuntimeException: java.lang.RuntimeException: Cannot pass empty inputs to the CNodeTpl at org.apache.sysds.hops.codegen.SpoofCompiler.optimize(SpoofCompiler.java:607) at org.apache.sysds.hops.recompile.Recompiler.recompile(Recompiler.java:373) at org.apache.sysds.hops.recompile.Recompiler.recompileHopsDag(Recompiler.java:156) at org.apache.sysds.hops.recompile.Recompiler.recompileHopsDag(Recompiler.java:177) at org.apache.sysds.hops.codegen.SpoofCompiler.generateCodeFromHopDAGsToInst(SpoofCompiler.java:436) at org.apache.sysds.hops.codegen.SpoofCompiler.generateCodeFromProgramBlock(SpoofCompiler.java:419) at org.apache.sysds.hops.codegen.SpoofCompiler.generateCode(SpoofCompiler.java:332) at org.apache.sysds.parser.DMLTranslator.codgenHopsDAG(DMLTranslator.java:318) at org.apache.sysds.parser.DMLTranslator.getRuntimeProgram(DMLTranslator.java:466) at org.apache.sysds.api.DMLScript.execute(DMLScript.java:406) at org.apache.sysds.api.DMLScript.executeScript(DMLScript.java:269) at org.apache.sysds.test.AutomatedTestBase.main(AutomatedTestBase.java:1464) at org.apache.sysds.test.AutomatedTestBase.runTest(AutomatedTestBase.java:1420) at org.apache.sysds.test.AutomatedTestBase.runTest(AutomatedTestBase.java:1321) at org.apache.sysds.test.functions.builtin.BuiltinGridSearchTest.runGridSearch(BuiltinGridSearchTest.java:110) at org.apache.sysds.test.functions.builtin.BuiltinGridSearchTest.testGridSearchLmCP(BuiltinGridSearchTest.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)Caused by: java.lang.RuntimeException: Cannot pass empty inputs to the CNodeTpl at org.apache.sysds.hops.codegen.cplan.CNodeTpl.<init>(CNodeTpl.java:38) at org.apache.sysds.hops.codegen.cplan.CNodeCell.<init>(CNodeCell.java:61) at org.apache.sysds.hops.codegen.template.TemplateCell.constructCplan(TemplateCell.java:157) at org.apache.sysds.hops.codegen.SpoofCompiler.rConstructCPlans(SpoofCompiler.java:733) at org.apache.sysds.hops.codegen.SpoofCompiler.rConstructCPlans(SpoofCompiler.java:745) at org.apache.sysds.hops.codegen.SpoofCompiler.rConstructCPlans(SpoofCompiler.java:745) at org.apache.sysds.hops.codegen.SpoofCompiler.optimize(SpoofCompiler.java:495) ... 39 more
      

      Attachments

        Activity

          People

            mboehm7 Matthias Boehm
            ssiddiqi Shafaq Siddiqi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: