并行计算-review.pdf

并行计算-review

Review 1 Example  Compute n values and add them together.  Serial solution: Copyright © 2010, Elsevier Inc. All rights Reserved 2 Example (cont.)  We have p cores, p much smaller than n.  Each core performs a partial sum of approximately n/p values. Each core uses it’s own private variables and executes this block of code independently of the other cores.

文档评论(0)

1亿VIP精品文档

相关文档