Translating OpenMP Device Constructs to OpenCL Using Unnecessary Data Transfer Elimination
Authors:
- Junghyun KimJKJunghyun Kim
- Yong-Jun LeeYLYong-Jun Lee
- Jungho ParkJPJungho Park
- Jaejin LeeJLJaejin Lee
- 1 November 2016
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 597-608
Abstract
In this paper, we propose a framework that translates OpenMP 4.0 accelerator directives to OpenCL. By translating an OpenMP program to an OpenCL program, the program can be executed on any hardware platform that supports OpenCL. We also propose a run-time optimization technique that automatically eliminates unnecessary data transfers between the host and the target accelerator. It exploits the page-fault mechanism to detect if a copy of the memory object already resides in the accelerator and the copy has not been modified by the host. To evaluate the framework, we develop 17 OpenMP 4.0 benchmark applications in two versions: basic and hand-tuned. By evaluating them on three different GPUs with the original OpenCL and OpenMP programs, we show the effectiveness of the framework. To show the practicality of the framework, we compare the performance of generated OpenCL programs with that of equivalent OpenACC programs compiled by the commercial PGI compiler.Keywords
This publication has 15 references indexed in Scilit:
- Compiling and Optimizing Java 8 Programs for GPU Execution2015
- Fast and efficient automatic memory management for GPUs using compiler-assisted runtime coherence scheme2012
- Dynamically managed data for CPU-GPU architectures2012
- A characterization of the Rodinia benchmark suite with comparison to contemporary CMP workloads2010
- OpenMPC: Extended OpenMP Programming and Tuning for GPUs2010
- Extending OpenMP to Survive the Heterogeneous Multi-Core EraInternational Journal of Parallel Programming, 2010
- An asymmetric distributed shared memory model for heterogeneous parallel systems2010
- Rodinia: A benchmark suite for heterogeneous computing2009
- A Proposal to Extend the OpenMP Tasking Model for Heterogeneous Architectures2009
- Rose Compiler Support for Object-Oriented FrameworksParallel Processing Letters, 2001