Translating OpenACC program for HAS environment
Autor: | Jean Jyh-Jiun Shann, Han-Ping Lo |
---|---|
Rok vydání: | 2017 |
Předmět: |
010302 applied physics
Heterogeneous System Architecture Generator (computer programming) Parsing Computer science Programming language Multiprocessing 02 engineering and technology Parallel computing computer.software_genre Directive 01 natural sciences 020202 computer hardware & architecture Kernel (linear algebra) 0103 physical sciences 0202 electrical engineering electronic engineering information engineering Compiler computer Host (network) |
Zdroj: | CITS |
DOI: | 10.1109/cits.2017.8035283 |
Popis: | Heterogeneous System Architecture (HSA) is a newly arising heterogeneous multiprocessor platform which may improve the heavy data transmission between CPU and GPU in traditional heterogeneous multiprocessor platforms through shared virtual memory. However, as other heterogeneous multiprocessor platforms, it is complex and error-prone to write HSA programs. Therefore, we design and implement a translation framework based on LLVM for automatically translating OpenACC programs, directive-based parallel programming programs, into HSA programs. The main components of the framework include an extension version of Clang, a PLIR-annotation parser, and an HAS host/kernel IR generator. The experiment result shows that the translated HSA programs generated by our OpenACC compiler achieve 7.78× speedups in average with respect to the corresponding sequential programs. Moreover, compared with the OpenMP compiler proposed by HSA foundation, our OpenACC compiler achieves 2.91× speedups in average. |
Databáze: | OpenAIRE |
Externí odkaz: |