Vinas, MoisesBozkuş, ZekiFraguela, Basilio B.Andrade, DiegoDoallo, Ramon2019-06-272019-06-27201520920-85421573-04840920-85421573-0484https://hdl.handle.net/20.500.12469/592https://doi.org/10.1007/s11227-014-1352-1The usage of heterogeneous devices presents two main problems. One is their complex programming a problem that grows when multiple devices are used. The second issue is that even if the codes for these devices can be portable on top of OpenCL they lack performance portability effectively requiring specialized implementations for each device to get good performance. In this paper we extend the Heterogeneous Programming Library (HPL) which improves the usability of heterogeneous systems on top of OpenCL to better handle both issues. First we provide HPL with mechanisms to support the implementation of any multi-device application that requires arbitrary patterns of communication between several devices and a host memory. In a second stage HPL is improved with an adaptive scheme to optimize communications between devices depending on the execution environment. An evaluation using benchmarks with very different nature shows that HPL reduces the SLOCs and programming effort of OpenCL applications by 27 and 43 % respectively while improving the performance of applications that exchange data between devices by 28 % on average.eninfo:eu-repo/semantics/openAccessProgrammabilityHeterogeneityParallelismPortabilityLibrariesOpenCLDeveloping adaptive multi-device applications with the Heterogeneous Programming LibraryArticle22042220671WOS:00035523160001610.1007/s11227-014-1352-12-s2.0-84929956503N/AQ2