Directive-Based Compilers for GPUs (Swapnil Ghike, Ruben Gran, - TopicsExpress



          

Directive-Based Compilers for GPUs (Swapnil Ghike, Ruben Gran, Maria J. Garzaran, David Padua) #codegeneration #compilers #openacc #cuda #gpu General Purpose Graphics Computing Units can be effectively used for enhancing the performance of many contemporary scientific applications. However, programming GPUs using machine-specific notations like CUDA or OpenCL can be complex and time consuming. In addition, the resulting programs are typically fine-tuned for a particular target device. A promising alternative is to program in a conventional and machine-independent notation extended with directives and use compilers to generate GPU code automatically. These compilers enable portability and increase programmer productivity and, if effective, would not impose much penalty on performance. This paper evaluates two such compilers, PGI and Cray. We first identify a collection of standard transformations that these compilers can apply. Then, we propose a sequence of manual transformations that programmers can apply to enable the generation of efficient GPU kernels. Lastly, using the Rodinia Benchmark suite, we compare the performance of the code generated by the PGI and Cray compilers with that of code written in CUDA. Our evaluation shows that the code produced by the PGI and Cray compilers can perform well. For 6 of the 15 benchmarks that we evaluated, the compiler generated code achieved over 85% of the performance of a hand-tuned CUDA version. hgpu.org/?p=12734
Posted on: Tue, 02 Sep 2014 17:55:01 +0000

Trending Topics



Recently Viewed Topics




© 2015