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.
This comment was marked helpful 0 times.
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.
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.
This comment was marked helpful 0 times.
In the WSP assignment we used
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.
This comment was marked helpful 0 times.