A CPU-GPU Data Transfer Optimization Approach Based on Code Migration and Merging

Cong Fu, Zhenhua Wang, Yanlong Zhai

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

5 Citations (Scopus)

Abstract

Porting applications to CPU-GPU architecture remains a challenge to average programmers, which have to explicitly manage data transfers between the host and device memories. In this paper, we proposed an approach to optimize the data transfer operations between CPU and GPU by analysing the data dependency and reorganizing source code. We found that not only the data transmission through PCIe bus is time consuming, but also the preparation and cleaning work for data transfer operations. This cost will be dramatically increased if the program contains many kernel calls. Therefore, we firstly defined and analyzed the data copy in (out) path for each data transfer operation utilizing compiler techniques. The data copy in or copy out operation can be migrated along with its data copy path. Multiple data transfer operations could be merged into one operation if they are of the same transfer direction and their data copy paths have overlap. Migrating and merging multiple data transfer operations could obviously reduce the number of data exchange times and the system resource consumption.

Original languageEnglish
Title of host publicationProceedings - 2017 16th International Symposium on Distributed Computing and Applications to Business, Engineering and Science, DCABES 2017
EditorsGuo Yucheng
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages23-26
Number of pages4
ISBN (Electronic)9781538621622
DOIs
Publication statusPublished - 1 Jul 2017
Externally publishedYes
Event16th International Symposium on Distributed Computing and Applications to Business, Engineering and Science, DCABES 2017 - AnYang, He Nan, China
Duration: 16 Nov 201719 Nov 2017

Publication series

NameProceedings - 2017 16th International Symposium on Distributed Computing and Applications to Business, Engineering and Science, DCABES 2017
Volume2018-September

Conference

Conference16th International Symposium on Distributed Computing and Applications to Business, Engineering and Science, DCABES 2017
Country/TerritoryChina
CityAnYang, He Nan
Period16/11/1719/11/17

Keywords

  • GPU
  • code migration
  • data transfer
  • merging
  • optimization

Fingerprint

Dive into the research topics of 'A CPU-GPU Data Transfer Optimization Approach Based on Code Migration and Merging'. Together they form a unique fingerprint.

Cite this