加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

缓存并行编程算法

发布时间:2020-12-15 00:20:55 所属栏目:Java 来源:网络整理
导读:我已经阅读了很多关于缓存易读算法和流树等.我了解基础知识我还没有看到是为什么他们对并行编程有好处?我想我看到约翰·哈罗普(John Harrop)表示,他们是革命性的. 解决方法 在文章中 http://www.1024cores.net/home/parallel-computing/cache-oblivious-alg
我已经阅读了很多关于缓存易读算法和流树等.我了解基础知识我还没有看到是为什么他们对并行编程有好处?我想我看到约翰·哈罗普(John Harrop)表示,他们是革命性的.

解决方法

在文章中
http://www.1024cores.net/home/parallel-computing/cache-oblivious-algorithms

他们指出

The idea behind cache-oblivious algorithms is efficient usage of processor caches and reduction of memory bandwidth requirements. Both things are equally important for single-threaded algorithms,but especially crucial for parallel algorithms,because available memory bandwidth is usually shared between hardware threads and frequently becomes a bottleneck for scalability.

访问内存可以是并行算法中的瓶颈,因此具有尝试利用缓存内存的算法可以更有效率.

在同一篇文章中,他们继续描述缓存隐藏算法如何利用可用的缓存:

Cache-oblivious algorithms work by recursively dividing a problem’s dataset into smaller parts and then doing as much computations of each part as possible. Eventually subproblem dataset fits into cache,and we can do significant amount of computations on it without accessing memory

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读