首页> 外国专利> Hardware prefetcher for indirect access patterns

Hardware prefetcher for indirect access patterns

机译:硬件预取器,用于间接访问模式

摘要

Two techniques address bottlenecking in processors. The first is indirect prefetching. The technique can be especially useful for graph analytics and sparse matrix applications. For graph analytics and sparse matrix applications, the addresses of most random memory accesses come from an index array B which is sequentially scanned by an application. The random accesses are actually indirect accesses in the form A[B[i]]. A hardware component is introduced to detect this pattern. The hardware can then read B a certain distance ahead, and prefetch the corresponding element in A. For example, if the “prefetch distance” is k, when B[i] is accessed, the hardware reads B[i+k], and then A[B[i+k]. For partial cacheline accessing, the indirect accesses are usually accessing random memory locations and only accessing a small portion of a cacheline. Instead of loading the whole cacheline into L1 cache, the second technique only loads a part of the cacheline.
机译:两种技术解决了处理器中的瓶颈。首先是间接预取。该技术对于图形分析和稀疏矩阵应用特别有用。对于图分析和稀疏矩阵应用程序,大多数随机存储器访问的地址都来自索引数组B,该索引数组由应用程序顺序扫描。随机访问实际上是形式为A [B [i]]的间接访问。引入了硬件组件来检测此模式。然后,硬件可以读取B某个距离,然后预取A中的相应元素。例如,如果“预取距离”为k,则在访问B [i]时,硬件将读取B [i + k],并且然后是A [B [i + k]。对于部分高速缓存行访问,间接访问通常是访问随机存储器位置,并且仅访问高速缓存行的一小部分。第二种技术不是将整个高速缓存行加载到L1高速缓存中,而是仅加载一部分高速缓存行。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号