更新时间:2021-11-12 16:23:21
coverpage
OpenCL Programming by Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Hello OpenCL
Advances in computer architecture
Different parallel programming techniques
Introduction to OpenCL
OpenCL components
An example of OpenCL program
Summary
References
Chapter 2. OpenCL Architecture
Platform model
Platform versions
Execution model
Memory model
OpenCL ICD
Application scaling
Chapter 3. OpenCL Buffer Objects
Memory objects
Creating subbuffer objects
Histogram calculation
Reading and writing buffers
Copying buffers
Mapping buffer objects
Querying buffer objects
Undefined behavior of the cl_mem objects
Chapter 4. OpenCL Images
Creating images
Samplers
Copying and filling images
Mapping image objects
Querying image objects
Image histogram computation
Chapter 5. OpenCL Program and Kernel Objects
Creating program objects
Creating kernel objects
Chapter 6. Events and Synchronization
OpenCL events and monitoring these events
OpenCL event synchronization models
Coarse-grained synchronization
Event-based or fine-grained synchronization
Getting information about cl_event
User-created events
Event profiling
Memory fences
Chapter 7. OpenCL C Programming
Built-in data types
Aliasing rules
Conversions and type casts
Operators
Address space qualifiers
Image access qualifiers
Storage class specifiers
Built-in functions
Chapter 8. Basic Optimization Techniques with Case Studies
Finding the performance of your program?
Case study – matrix multiplication
Case study – Histogram calculation
Finding the scope of the use of OpenCL
General tips
Chapter 9. Image Processing and OpenCL
Image representation
Implementing image filters
OpenCL implementation of filters
JPEG compression
Chapter 10. OpenCL-OpenGL Interoperation
Introduction to OpenGL
Defining Interoperation
Implementing Interoperation
Chapter 11. Case studies – Regressions Sort and KNN
Regression with least square curve fitting
Bitonic sort
k-Nearest Neighborhood (k-NN) algorithm
Index