首页> 外国专利> Single instruction multiple data (SIMD) code generation for parallel loops using versioning and scheduling

Single instruction multiple data (SIMD) code generation for parallel loops using versioning and scheduling

机译:使用版本控制和调度为并行循环生成单指令多数据(SIMD)代码

摘要

Embodiments of the present invention address deficiencies of the art in respect to loop parallelization for a target architecture implementing a shared memory model and provide a novel and non-obvious method, system and computer program product for SIMD code generation for parallel loops using versioning and scheduling. In an embodiment of the invention, within a code compilation data processing system a parallel SIMD loop code generation method can include identifying a loop in a representation of source code as a parallel loop candidate, either through a user directive or through auto-parallelization. The method also can include selecting a trip count condition responsive to a scheduling policy set for the code compilation data processing system and also on a minimal simdizable threshold, determining a trip count and an alignment constraint for the selected loop, and generating a version of a parallel loop in the source code according to the alignment constraint and a comparison of the trip count to the trip count condition.
机译:本发明的实施例解决了在关于实现共享存储器模型的目标体系结构的循环并行化方面的现有技术的缺陷,并且提供了一种新颖且非显而易见的方法,系统和计算机程序产品,用于使用版本控制和调度来为并行循环生成SIMD代码。 。在本发明的实施例中,在代码编译数据处理系统内,并行SIMD循环代码生成方法可以包括通过用户指令或通过自动并行化将源代码表示中的循环识别为并行循环候选。该方法还可以包括:响应于为代码编译数据处理系统设置的调度策略并且还基于最小可模拟阈值来选择行程计数条件;确定所选循环的行程计数和对齐约束;以及生成行程的版本。根据对齐约束以及行程计数与行程计数条件的比较,在源代码中进行并行循环。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号