Issue |
MATEC Web Conf.
Volume 208, 2018
2018 3rd International Conference on Measurement Instrumentation and Electronics (ICMIE 2018)
|
|
---|---|---|
Article Number | 05002 | |
Number of page(s) | 6 | |
Section | Computer Science and Intelligent Technology | |
DOI | https://doi.org/10.1051/matecconf/201820805002 | |
Published online | 26 September 2018 |
An Early Performance Comparison of CUDA and OpenACC
1
Department of Computer Science, Concordia University Chicago, River Forest IL, USA
2
Institute of Industrial and Business Management, National Taipei University of Technology, Taipei, Taiwan
This paper presents a performance comparison between CUDA and OpenACC. The performance analysis focuses on programming models and underlying compilers. In addition, we proposed a Performance Ratio of Data Sensitivity (PRoDS) metric to objectively compare traditional subjective performances: how sensitive OpenACC and CUDA implementations are to change in data size. The results show that in terms of kernel running time, the OpenACC performance is lower than the CUDA performance because PGI compiler needs to translate OpenACC kernels into object code while CUDA codes can be directly run. Besides, OpenACC programs are more sensitive to data changes than the equivalent CUDA programs with optimizations, but CUDA is more sensitive to data changes than OpenACC if there are no optimizations. Overall we found that OpenACC is a reliable programming model and a good alternative to CUDA for accelerator devices.
© The Authors, published by EDP Sciences, 2018
This is an open access article distributed under the terms of the Creative Commons Attribution License 4.0 (http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.