10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Parallel Operation<br />

Parallel Loops<br />

step and for loops can be parallelized by using the keywords para_step and para_for. The body<br />

of the loop defines jobs that can be executed in parallel (one job for each run of the loop).<br />

Note<br />

It is not possible to parallelize while loops because the loop variable is managed inside the<br />

body of the loop itself and therefore it cannot be parallelized.<br />

para_for/para_step to Parallelize Loops<br />

Adding para_ in front of a loop requests ECL to parallelize the loop if the content of the loop<br />

does not contain concurrency errors. When the loop is executed, it creates a job for each<br />

iteration. Then these jobs are executed in parallel.<br />

Example: ten iterations of the loop are parallelized:<br />

.define_task t_for_para<br />

set i = 0<br />

para_for (i = 10k;<br />

+ i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!