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
104 High Performance Programming for Soft Computing
unsigned int hBlockCounter = 0;
checkCudaErrors(cudaMemcpyToSymbol(blockCount
er, &hBlockCounter, sizeof(unsigned int), 0,
cudaMemcpyHostToDevice));
int numWorkerBlocks = numSMs;
Fig. 4.7 Defi nition of variables that keep track of the grid block position while calculating
the fractal.
Once all the parameters were declared and specifi ed, we run the main
CUDA thread called Mandelbrot0, see Fig. 4.8, by utilizing the correct
syntaxes containing the number of CUDA
blocks, in which the function will
run and the number of threads per block in the style of functionName<return
value><<<Number of Blocks, ...
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