Previous | Next --- Slide 6 of 63
Back to Lecture Thumbnails
fangyihua

Declarative: do these things. I don't care how you do it. Imperative: do exactly these things and do it as the way I told you to.

Arnie

In the WSP assignment we used

#pragma omp parallel for schedule(dynamic)

with possibly some other options. This is declarative: we are telling the program what to do (do this loop in parallel with dynamic scheduling), but not how to do it.