• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2021, Vol. 43 ›› Issue (12): 2105-2114.

Previous Articles     Next Articles

Evaluation of OpenCL computing software stack

ZHU Hao1,2,ZHOU Bo-yang2,LU Xue-shan3,DU Yi-mo4   

  1. (1.Defense Innovation Institute,Academy of Military Sciences,Beijing 100000;

    2.College of Computer Science and Technology,National University of Defense Technology,Changsha 410073;

    3.PLA Air Force Logistics Department,Beijing 100000;4.Troop 31008,Beijing 100091,China)


  • Received:2020-11-20 Revised:2021-03-02 Accepted:2021-12-25 Online:2021-12-25 Published:2021-12-21

Abstract: With the development of intelligent computing and big data applications, the demand for accelerators such as GPU is increasing. Computing software stacks such as CUDA and OpenCL software stacks are the key to making full use of GPU hardware performance. Considering the portability and implementation of software stacks on domestic fundamental OS and hardware platforms (such as Phytium CPU and Kylin OS) in future, this paper focuses on open-source OpenCL software stacks. The performance of OpenCL applications on different platforms is tested and analyzed. The performance of GPU computing on different OpenCL software stacks, such as Mesa, ROCm, etc., is evaluated. The impact of drivers and kernels in the software stack on GPU computing is evaluated. The entire test covers the time overhead of various stages of OpenCL calculations such as compilation, data transmission, and kernel execution. The test and evaluation found that it is more urgent and more suitable to use GPU for accelerated computing on domestic platforms. ROCm is an ideal OpenCL open source software stack with better performance and stability, and can be further optimized compared with close-source software stacks. 


Key words: OpenCL, computing software stack, GPU computing, domestic fundamental software and hardware platform