Using OpenCL

Using OpenCL

4.11 - 1251 ratings - Source

In 2011 many computer users were exploring the opportunities and the benefits of the massive parallelism offered by heterogeneous computing. In 2000 the Khronos Group, a not-for-profit industry consortium, was founded to create standard open APIs for parallel computing, graphics and dynamic media. Among them has been OpenCL, an open system for programming heterogeneous computers with components made by multiple manufacturers. This publication explains how heterogeneous computers work and how to program them using OpenCL. It also describes how to combine OpenCL with OpenGL for displaying graphical effects in real time. Chapter 1 describes briefly two older de facto standard and highly successful parallel programming systems: MPI and OpenMP. Collectively, the MPI, OpenMP, and OpenCL systems cover programming of all major parallel architectures: clusters, shared-memory computers, and the newest heterogeneous computers. Chapter 2, the technical core of the book, deals with OpenCL fundamentals: programming, hardware, and the interaction between them. Chapter 3 adds important information about such advanced issues as double-versus-single arithmetic precision, efficiency, memory use, and debugging. Chapters 2 and 3 contain several examples of code and one case study on genetic algorithms. These examples are related to linear algebra operations, which are very common in scientific, industrial, and business applications. Most of the booka€™s examples can be found on the enclosed CD, which also contains basic projects for Visual Studio, MinGW, and GCC. This supplementary material will assist the reader in getting a quick start on OpenCL projects.0 1 2 3 4 5 6 Phenom II2x 3.1GHz GeForce GTS 250 C o m putatio n t i m e [ s ] 50 100 150 200 250 300 350 400 450 Matrix size Figure 3.3: Execution times of CGM for desktop computer. 1 while ((alpha.get(0, 0) agt; 0.000001) aamp;aamp; (i alt; (result.h anbsp;...

Title:Using OpenCL
Author:J. Kowalik, T. Puźniakowski
Publisher:IOS Press - 2012-02-29


You Must CONTINUE and create a free account to access unlimited downloads & streaming