摘要: 相对于传统的串行程序移植,并行系统间的代码移植因体系结构间的巨大差异而变得极为复杂。为此,针对统一计算设备架构(CUDA)程序向其他异构多核平台的移植,提出CUDA架构到Cell的映射方案。通过模型映射、并行粒度提升、共享变量清除和运行时优化,使CUDA程序的大规模并行线程可以在Cell平台上正确执行。实验结果证明,翻译后的程序在Cell的执行效率可达到Cell平台上手动编写程序的72%。
关键词:
源代码移植,
异构多核,
模型映射,
共享变量清除,
运行时优化
Abstract: Compared with traditional serial program migration, parallel program migration becomes sophisticated for the huge diversity of different architectures. To migrate Compute Unified Device Architecture(CUDA) programs to other heterogeneous multi-cores, a method of mapping CUDA architecture to Cell is proposed. Through executing model mapping, enhancing parallel granularity, memory mapping and optimization, the mass threads in CUDA can execute correctly in Cell architecture by source code migration. Experimental result shows the executing speed of translated programs can achieve 72% of native compiled programs.
Key words:
source code migration,
heterogeneous multi-core,
model mapping,
shared variable removing,
runtime optimization
中图分类号:
岳峰, 庞建民, 张一弛, 余勇. CUDA程序到Cell平台的源代码移植[J]. 计算机工程, 2012, 38(24): 279-282.
YUE Feng, LONG Jian-Min, ZHANG Yi-Chi, TU Yong. Source Code Migration of CUDA Program to Cell Platform[J]. Computer Engineering, 2012, 38(24): 279-282.