好的串行代码与好的并行代码的区别(Zz)
好的串行代码 | 好的并行代码 |
Good sequential code minimizes total number of operations. | Good parallel code often performs redundant operations to reduce communication. |
Good sequential algorithms minimize space usage | Good parallel code often requires extra space to permit temporal decoupling |
Sequential idioms stress linear problem decomposition | Good parallel code usually requires multiway problem decomposition and multiway aggregation of results |