The Support of an Experimental OpenCL Compiler on HSA Environments

In recent years, with the increasing computing power and programmability on GPU, GPU has become an important role on hardware accelerator. Heterogeneous System Architecture (HSA) announced by HSA Foundation is an approach to benefit both CPUs and GPUs advantages. Open Computing Language (OpenCL) is one of the wellknown programming frameworks for parallel computing on heterogeneous architecture. In this paper, an OpenCL framework is designed and implemented on HSA platform. An OpenCL compiler for HSA uses low-level virtual machine (LLVM) and an OpenCL runtime extends Portable Computing Language (PoCL) framework are built. PoCL is a portable OpenCL implementation for different parallel hardwares. Furthermore, HSA-related tools released by HSA Foundation are also integrated in our framework. Experimental results indicate that our framework provides enough features to support for advanced research.