CUDA Programming: A Developer's Guide to Parallel Computing with GPUs
Newnes, 28 груд. 2012 р. - 600 стор.
If you need to learn CUDA but don't have experience with parallel computing, CUDA Programming: A Developer's Introduction offers a detailed guide to CUDA with a grounding in parallel fundamentals. It starts by introducing CUDA and bringing you up to speed on GPU parallelism and hardware, then delving into CUDA installation. Chapters on core concepts including threads, blocks, grids, and memory focus on both parallel and CUDA-specific issues. Later, the book demonstrates CUDA in practice for optimizing applications, adjusting to new hardware, and solving common problems.
Результати 1-5 із 54
The parameter i would be loaded into another register. The loop exit condition, 100, is loaded into another register or possibly encoded into the instruction stream as a literal value. The computer would then iterate around the same ...
The other code would then initialize “its variable” by writing 0 to the pointer, thus eliminating the contents of our “protected” and thread-shared parameter. This is one of the unfortunate areas of thread-based operations; they operate ...
However, each recursive call causes any formal parameters to be pushed onto the stack along with any local variables. GPUs and CPUs implement a stack in the same way, simply an area of memory from the global memory space.
The CPU and GPU have separate memory spaces, meaning you cannot access CPU parameters in the GPU code and vice versa. ... CUDA provides a special parameter, different for each thread, which defines the thread ID or number.
There are some other parameters you can pass, and we'll come back to this, but for now you have two important parameters to ... The num_blocks parameter is something you have not yet covered and is covered in detail in the next section.
Відгуки відвідувачів - Написати рецензію
Chapter 8 MultiCPU and MultiGPU Solutions
Chapter 9 Optimizing Your Application
Chapter 10 Libraries and SDK
Chapter 11 Designing GPUBased Systems
Chapter 12 Common Problems Causes and Solutions