systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deron Eriksson <deroneriks...@gmail.com>
Subject Turn off parallelism in parfor?
Date Fri, 12 Feb 2016 20:09:43 GMT
Hi,

Is it possible to turn off parallelism in a parfor loop using a function
parameter? I tried setting 'par' to 1.

If I print i in a for loop, the results come back in order:
     for (i in 1:5) { print(i) }
gives
    1
    2
    3
    4
    5

If I print i in a parfor loop (with par=1), the results don't come back in
order:
    parfor (i in 1:5, par=1) { print(i) }
gives (something similar to)
    4
    2
    5
    1
    3

Is par=1 (I tried par=0 too) turning off parallelism but the print output
isn't reflecting that?

Deron

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