Skip to Main Content
High Performance Programming for Soft Computing
book

High Performance Programming for Soft Computing

by Oscar Montiel Ross, Roberto Sepulveda
February 2014
Intermediate to advanced content levelIntermediate to advanced
376 pages
11h 49m
English
CRC Press
Content preview from High Performance Programming for Soft Computing
Graphics Processing Unit Programming and ApplicationsGraphics Processing Unit Programming and Applications 99
The number of threads per block, the quantity of blocks within a grid
and their respective array are defi ned by parameters given at the kernel
launch. These parameters are dimBlock and dimGrid. Figure 4.2 shows
the corresponding kernel defi nition for the array showed in Fig. 4.1. Note
that the z-value for dimGrid is ignored as grids are only 2-D arrays.
dim3 dimBlock(5, 3, 2);
dim3 dimGrid(3, 2);
Kernel1<<<dimGrid, dimBlock>>>(...);
Fig. 4.2 Defi ning dimBlock and dimGrid parameters.
4.2.4 Memory spaces and hierarchy
CUDA threads work with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Soft Computing and Its Applications, Volume One

Soft Computing and Its Applications, Volume One

Kumar S. Ray
Point-Based Graphics

Point-Based Graphics

Markus Gross, Hanspeter Pfister

Publisher Resources

ISBN: 9781466586017