Per accedir als documents amb el text complet, si us plau, seguiu el següent enllaç:

Leveraging OmpSs to exploit hardware accelerators
Sainz, Florentino; Mateo Bellido, Sergi; Beltran, Vicenç; Bosque, José L.; Martorell Bofill, Xavier; Ayguadé Parra, Eduard
Universitat Politècnica de Catalunya. Departament d'Arquitectura de Computadors; Universitat Politècnica de Catalunya. CAP - Grup de Computació d´Altes Prestacions
CUDA and OpenCL are the most widely used programming models to exploit hardware accelerators. Both programming models provide a C-based programming language to write accelerator kernels and a host API used to glue the host and kernel parts. Although this model is a clear improvement over a low-level and ad-hoc programming model for each hardware accelerator, it is still too complex and cumbersome for general adoption. For large and complex applications using several accelerators, the main problem becomes the explicit coordination and management of resources required between the host and the hardware accelerators that introduce a new family of issues (scheduling, data transfers, synchronization,...) that the programmer must take into account. In this paper, we propose a simple extension to OmpSs - a data-flow programming model - that dramatically simplifies the integration of accelerated code, in the form of CUDA or OpenCL kernels, into any C, C++ or Fortran application. Our proposal fully replaces the CUDA and OpenCL host APIs with a few pragmas, so we can leverage any kernel written in CUDA C or OpenCL C without any performance impact. Our compiler generates all the boilerplat code while our runtime system takes care of kernels scheduling, data transfers between host and accelerators and synchronizations between host and kernels parts. To evaluate our approach, we have ported several native CUDA and OpenCL applications to OmpSs by replacing all the CUDA or OpenCL API calls by a few number of pragmas. The OmpSs versions of these applications have competitive performance and scalability but with a significantly lower complexity than the original ones.
Peer Reviewed
Àrees temàtiques de la UPC::Informàtica::Llenguatges de programació::C
Àrees temàtiques de la UPC::Informàtica::Arquitectura de computadors::Arquitectures paral·leles
C (Computer program language)
Parallel programming (Computer science)
C (Llenguatge de programació)
Programació en paral·lel (Informàtica)
Attribution-NonCommercial-NoDerivs 3.0 Spain
Institute of Electrical and Electronics Engineers (IEEE)

Mostra el registre complet del document

Documents relacionats

Altres documents del mateix autor/a

Ciesko, Jan; Mateo, Sergi; Teruel, Xavier; Beltran, Vicenç; Martorell Bofill, Xavier; Badia,, R.M.; Ayguadé Parra, Eduard; Labarta Mancho, Jesús José
Fernandez, Alejandro; Beltran, Vicenç; Martorell Bofill, Xavier; Badia,, R.M.; Ayguadé Parra, Eduard; Labarta Mancho, Jesús José
Cilardo, Alessandro; Esposito, Luigi; Veniero, Antonio; Mazzeo, Antonino; Beltran, Vicenç; Ayguadé Parra, Eduard
Navarro, Antoni; Mateo, Sergi; Perez, Jose M.; Beltran, Vicenç; Ayguadé Parra, Eduard
Pérez, Josep M.; Beltran, Vicenç; Labarta, Jesús; Ayguadé Parra, Eduard