首页> 外国专利> Fast vector masking algorithm for conditional data selection in SIMD architectures

Fast vector masking algorithm for conditional data selection in SIMD architectures

机译:SIMD体系结构中用于条件数据选择的快速矢量屏蔽算法

摘要

Techniques are disclosed for generating fast vector masking SIMD code corresponding to source code having a conditional statement, where the SIMD code replaces the conditional statements with vector SIMD operations. One technique includes performing conditional masking using vector operations, bit masking operations, and bitwise logical operations. The need for conditional statements in SIMD code is thereby removed, allowing SIMD hardware to avoid having to use branch prediction. This reduces the number of pipeline stalls and results in increased utilization of the SIMD computational units.
机译:公开了用于生成与具有条件语句的源代码相对应的快速向量掩蔽SIMD代码的技术,其中,SIMD代码用向量SIMD操作代替条件语句。一种技术包括使用向量运算,位掩码运算和按位逻辑运算来执行条件掩码。从而消除了对SIMD代码中的条件语句的需要,从而使SIMD硬件可以避免必须使用分支预测。这减少了管线停顿的数量,并导致了SIMD计算单元利用率的提高。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号