learning-software-engineering / learning-software-engineering.github.io

MIT License
16 stars 206 forks source link

add openmp overview #526

Closed justinwli930 closed 3 months ago

justinwli930 commented 3 months ago

419

justinwli930 commented 3 months ago

Looks good. For the calculating the sum of an array in parallel, would it be possible to add a sequential version? I think it makes understanding parallel code in OpenMP is not so different from sequential code.

Good point! Will add it.

leowrites commented 3 months ago

Looks good. I like the examples but could you explain a bit about the clauses that you are using (specifically what reduction and for are doing?)

justinwli930 commented 3 months ago

Looks good. I like the examples but could you explain a bit about the clauses that you are using (specifically what reduction and for are doing?)

Good point. Will do!