G
guba
Hello,
I am searching for an easy way for a coarse-grained
parallel processing of a for-loop (image processing
with PerlMagick/Win on a QuadCore). Because no
communication is nedded the for-loop
for ($i = $count_min; $i =< $count_max; $i++) {
read selected source images
image composing
write result image on HD
};
could theoretically be splitted in 4 loops
$count_min..int($count_max/4)
int($count_max/4)+1..int($count_max/2)
int($count_max/2)+1..int(3*$count_max/4)
int(3*$count_max/4)+1..$count_max
that are processed in parallel (each on a Core).
cpan offers 300 results for "parallel" but I don't
know where to start. Thank you very much for hints!
Guenter
I am searching for an easy way for a coarse-grained
parallel processing of a for-loop (image processing
with PerlMagick/Win on a QuadCore). Because no
communication is nedded the for-loop
for ($i = $count_min; $i =< $count_max; $i++) {
read selected source images
image composing
write result image on HD
};
could theoretically be splitted in 4 loops
$count_min..int($count_max/4)
int($count_max/4)+1..int($count_max/2)
int($count_max/2)+1..int(3*$count_max/4)
int(3*$count_max/4)+1..$count_max
that are processed in parallel (each on a Core).
cpan offers 300 results for "parallel" but I don't
know where to start. Thank you very much for hints!
Guenter