systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ethan Xu <ethan.yifa...@gmail.com>
Subject parfor fails
Date Thu, 14 Apr 2016 20:33:56 GMT
Hello,

I have a quick question. The following script fails with this error:

org.apache.sysml.runtime.DMLRuntimeException: PARFOR: Failed to execute
loop in parallel.

Here is the dml script:

x=read($X);

print("number of rows of x = " + nrow(x));
print("number of cols of x = " + ncol(x));

parfor(i in 1:ncol(x), check=0){
    a = x[,i];
    print("number of 0's in col " + i + " = " + sum(a == 0));
}

where X is a 35 million by 2396 matrix (coded and dummy coded numerical
matrix) on HDFS. The script runs fine with regular 'for' loops.

Could someone explain why this script cannot run in parallel? Was it a
wrong way to code parfor?

Thanks,

Ethan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message