Optimizing MathZonnon using OpenCL
Ernst, Benjamin · Repository for Publications and Research Data (ETH Zurich) · 2011
The general purpose language Zonnon features Matlab-like operators that can work with built-in mathematical arrays.These operators can be computationally very expensive, and executing them at runtime on CPU takes rather long.The majority of today's consumer systems contain a graphics processing unit.With the ongoing shift from GPUs to general-purpose processing devices comes the ability to run computations on them that are not related to graphics.We use OpenCL to speed up the computations in Zonnon using GPUs.This thesis introduces the Compute Framework into Zonnon.It is integrated into the Zonnon compiler and runtime library to coordinate computations across multiple OpenCL devices.We give an overview over the Compute Framework, explain the implementation strategy and details, discuss benchmarks and conclude with an analysis of the results.