systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Boehm (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYSTEMML-2370) IPA fails for function with unbound output
Date Thu, 07 Jun 2018 05:33:00 GMT
Matthias Boehm created SYSTEMML-2370:
----------------------------------------

             Summary: IPA fails for function with unbound output
                 Key: SYSTEMML-2370
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-2370
             Project: SystemML
          Issue Type: Bug
            Reporter: Matthias Boehm


{code}
foo = function(matrix[double] X) return(boolean x) {
  if( sum(X) > 1 )
    print("X "+sum(X));
  x = TRUE;
}

X = matrix(7, 10, 10);
foo(X);
{code}

{code}
Caused by: org.apache.sysml.hops.HopsException: Failed to extract output statistics of function
.defaultNS::foo.
	at org.apache.sysml.hops.ipa.InterProceduralAnalysis.extractFunctionCallReturnStatistics(InterProceduralAnalysis.java:635)
	at org.apache.sysml.hops.ipa.InterProceduralAnalysis.propagateStatisticsIntoFunctions(InterProceduralAnalysis.java:491)
	at org.apache.sysml.hops.ipa.InterProceduralAnalysis.propagateStatisticsIntoFunctions(InterProceduralAnalysis.java:445)
	at org.apache.sysml.hops.ipa.InterProceduralAnalysis.propagateStatisticsAcrossBlock(InterProceduralAnalysis.java:361)
	at org.apache.sysml.hops.ipa.InterProceduralAnalysis.analyzeProgram(InterProceduralAnalysis.java:199)
	at org.apache.sysml.parser.DMLTranslator.rewriteHopsDAG(DMLTranslator.java:271)
	at org.apache.sysml.api.DMLScript.execute(DMLScript.java:706)
	at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:517)
	... 30 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.apache.sysml.hops.ipa.InterProceduralAnalysis.extractFunctionCallReturnStatistics(InterProceduralAnalysis.java:588)
	... 37 more
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message