Optimizing Remote Accesses for Offloaded Kernels: Application to High-Level Synthesis for FPGA - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2012

Optimizing Remote Accesses for Offloaded Kernels: Application to High-Level Synthesis for FPGA

Résumé

Some data- and compute-intensive applications can be accelerated by o oading portions of codes to platforms such as GPGPUs or FPGAs. However, to get high performance for these kernels, it is mandatory to restructure the application, to generate adequate communication mechanisms for the transfer of remote data, and to make good usage of the memory bandwidth. In the context of the high-level synthesis (HLS), from a C program, of hardware accelerators on FPGA, we show how to automatically generate optimized remote accesses for an accelerator communicating to an exter- nal DDR memory. Loop tiling is used to enable block com- munications, suitable for DDR memories. Pipelined communication processes are generated to overlap communications and computations, thereby hiding some latencies, in a way similar to double bu ering. Finally, data reuse among tiles is exploited to avoid remote accesses when data are already available in the local memory. Our rst contribution is to show how to generate the sets of data to be read from (resp. written to) the external mem- ory just before (resp. after) each tile so as to reduce com- munications and reuse data as much as possible in the accelerator. The main di culty arises when some data may be (re)de ned in the accelerator. Our second contribution is an optimized code generation scheme, entirely at source-level, i.e., in C, that allows us to compile all the necessary glue (the communication processes) with the same HLS tool as for the computation kernel. Both contributions use advanced poly-hedral techniques for program analysis and transformation. Experiments with Altera HLS tools demonstrate how to use our techniques to e ciently map C kernels to FPGA.
Fichier non déposé

Dates et versions

hal-00761477 , version 1 (05-12-2012)

Identifiants

  • HAL Id : hal-00761477 , version 1

Citer

Christophe Alias, Alain Darte, Alexandru Plesco. Optimizing Remote Accesses for Offloaded Kernels: Application to High-Level Synthesis for FPGA. 2nd International Workshop on Polyhedral Compilation Techniques (IMPACT'12), held with HIPEAC'12, Jan 2012, Paris, France. ⟨hal-00761477⟩
109 Consultations
0 Téléchargements

Partager

More