- 0
- 0
- 约1.83万字
- 约 14页
- 2026-01-30 发布于浙江
- 举报
ComputerEngineeringandApplications计算机工程与应用2015,51(21)41
面向CPU-GPU架构的源到源自动映射方法
朱正东1,刘袁1,魏洪昌1,颜康1,王寅峰2,董小社1
ZHUZhengdong1,LIUYuan1,WEIHongchang1,YANKang1,WANGYinfeng2,DONGXiaoshe1
1.西安交通大学电子与信息工程学院,西安710049
2.深圳信息职业技术学院,广东深圳518172
1.SchoolofElectronicInformationEngineering,Xi’anJiaotongUniversity,Xi’an710049,China
2.ShenzhenInstituteofInformationTechnology,Shenzhen,Guangdong518172,China
ZHUZhengdong,LIUYuan,WEIHongchang,etal.NovelautomaticmappingtechnologyonCPU-GPUheteroge-neoussystems.ComputerEngineeringandApplications,2015,51(21):41-47.
Abstract:AimingatthedevelopingandportingdifficultiesofGPU-basedapplications,amappingapproachisproposed,whichconvertsserialcomputingsourcecodeintoequivalentparallelcomputingsourcecode.Thisapproachacquireshier-archiesofparallelizableloopsfromserialsources,establishesthecorrespondencebetweenloopstructuresandGPUthreads,andgeneratesthecorefunctioncodeforGPU.Meanwhile,CPUcontrolcodeisgeneratedaccordingtoread/writeattributesofvariablereferences.Acompilerprototypeisimplementedbasedonthisapproach,whichtranslatesCcodeintoCUDAcodeautomatically.FunctionalityandperformanceevaluationsoftheprototypeshowthattheCUDAcodegeneratedisfunctionallyequivalenttotheoriginalCcode,withsignificantimprovementinperformance,thusovercomesthediffi-cultyinportingcompute-intensiveapplicationstoCPU-GPUheterogeneoussystems.
Keywords:GeneralPurposeGraphicProcessingUnit(GPGPU);ComputeUnifiedDeviceArchitecture(CUDA);auto-maticmapping;sourcetosourcecompile
摘要:针对GPU上应用开发移植困难的问题,提出了一种串行计算源程序到并行计算源程序的映射方法。该方法从串行源程序中获得可并行化循环的层次信息,建立循环体结构与GPU线程的对应关系,生成GPU端核心函数代码;根据变量引用读写属性生成CPU端控制代码。基于该方法实现了一个编译原型系统,完成了C语言源程序到CUDA源程序的自动生成。对原型系统在功能和性能方面的测试结果表明,该系统生成的CUDA源程序与C语言源程序在功能上一致,其性能有显著提高,在一定程度上解决了计算密集型应用向CPU-GPU异构多核
您可能关注的文档
最近下载
- 化工装置年度设备检修工程施工组织设计方案.docx VIP
- 成人住院患者跌倒风险评估及预防,中华护理学会团体标准.pptx VIP
- 2026-2030中国凝胶成像仪市场竞争格局与发展前景规划报告.docx
- 儿童心理学【儿童心理学】.pptx VIP
- 二年级数学下册综合练习题 (51套含答案).pdf VIP
- 治疗特征在于纺锤体和着丝粒相关复合物亚基3(SKA3)基因的高表达水平的癌症的方法.pdf VIP
- 1.高考英语阅读理解真题精选(附答案解析)打印版.docx
- 六年级数学上册天天练53.docx VIP
- 第四版(2025)国际压力性损伤溃疡预防和治疗临床指南解读.docx VIP
- 苏斯博士绘本拼读课.pptx VIP
原创力文档

文档评论(0)