OpenCL Parallel Reduction Example
| Last Revision: | Version 1.3, 2009-09-30 Corrected usage of barriers to comply with the OpenCL specification. (Full Revision History) |
| Build Requirements: | Mac OS X v10.6, Xcode 3.2 |
| Runtime Requirements: | Mac OS X v10.6 |
This example shows how to perform an efficient parallel reduction using OpenCL. Reduce is a common data parallel primitive which can be used for variety of different operations -- this example computes the global sum for a large number of values, and includes kernels for integer and floating point vector types.
Copyright © 2009 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2009-09-30