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] [Closed] (SYSTEMML-2370) IPA fails for function with unbound output
Date Tue, 19 Jun 2018 00:38:00 GMT

     [ https://issues.apache.org/jira/browse/SYSTEMML-2370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthias Boehm closed SYSTEMML-2370.
------------------------------------
       Resolution: Fixed
         Assignee: Matthias Boehm
    Fix Version/s: SystemML 1.2

> 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
>            Assignee: Matthias Boehm
>            Priority: Major
>             Fix For: SystemML 1.2
>
>
> {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