29306

A Comparison of OpenCL, CUDA, and HIP as Compilation Targets for a Functional Array Language

Troels Henriksen
University of Copenhagen, Copenhagen, Denmark
1st ACM SIGPLAN International Workshop on Functional Programming for Productivity and Performance (FProPer’24), 2024

@article{henriksen2024comparison,

   title={A Comparison of OpenCL, CUDA, and HIP as Compilation Targets for a Functional Array Language},

   author={Henriksen, Troels},

   year={2024}

}

This paper compares OpenCL, CUDA, and HIP as compilation targets for Futhark, a functional array language. We compare the performance of OpenCL versus CUDA, and OpenCL versus HIP, on the code generated by the Futhark compiler on a collection of 48 application benchmarks on two different GPUs. Despite the generated code in most cases being equivalent, we observe significant performance differences on the same hardware, ranging from 0.42x to 1.72x in the most extreme cases. We identify the root causes of most of these differences, many of which are due to relatively superficial details such as inconsistent defaults regarding compiler optimisation and numerical accuracy, although a few remain mysterious.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: