RT info:eu-repo/semantics/article T1 Controllers: an abstraction to ease the use of hardware accelerators A1 Moretón Fernández, Ana A1 Ortega Arranz, Héctor A1 Llanos Ferraris, Diego Rafael AB Nowadays the use of hardware accelerators, such as the graphics processing units or XeonPhi coprocessors, is key in solving computationally costly problems that require high performance computing. However, programming solutions for an efficient deployment for these kind of devices is a very complex task that relies on the manual management of memory transfers and configuration parameters. The programmer has to carry out a deep study of the particular data that needs to be computed at each moment, across different computing platforms, also considering architectural details. We introduce the controller concept as an abstract entity that allows the programmer to easily manage the communications and kernel launching details on hardware accelerators in a transparent way. This model also provides the possibility of defining and launching central processing unit kernels in multi-core processors with the same abstraction and methodology used for the accelerators. It internally combines different native programming models and technologies to exploit the potential of each kind of device. Additionally, the model also allows the programmer to simplify the proper selection of values for several configuration parameters that can be selected when a kernel is launched. This is done through a qualitative characterization process of the kernel code to be executed. Finally, we present the implementation of the controller model in a prototype library, together with its application in several case studies. Its use has led to reductions in the development and porting costs, with significantly low overheads in the execution times when compared to manually programmed and optimized solutions which directly use CUDA and OpenMP. PB SAGE YR 2017 FD 2017 LK http://uvadoc.uva.es/handle/10324/29124 UL http://uvadoc.uva.es/handle/10324/29124 LA eng NO International Journal of High Performance Computing Applications NO Producción Científica DS UVaDOC RD 28-nov-2024