1
votes

Can anyone who has successfully used the Octave Forge package "parallel" (latest version 2.2.0) share some of their experience on how to use it?

For a start, I'd like to execute a for loop in parallel on a single computer, something similar to the following code in Matlab

matlabpool open 4;

for i = 1:n_pts
    % Execute something in parallel
end

matlabpool close;

I just installed the package but I cannot find any useful documentation on how to actually use it.

Thanks!

1

1 Answers

0
votes

To my knowledge there is no "parallel for" in octave yet.

But if you need something calculated for each i, you can use the example "simple" I just created in Octave wiki, replacing x_vector with 1:n_pts, and the function "fun" with yours.