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 із 45
In a completely unrelated section of the code a pointer was not initialized under certain conditions. Due to the way the program ran, some of the time, depending on the thread execution order, the pointer would point to our ...
This function simply takes a pointer to a destination array, c, and a couple of pointers to two input arrays, a and b. It then adds the contents of the a and b arrays together and stores the result in the destination array, c.
You have to declare memory space on the GPU, copy over the arrays from the CPU, and pass the kernel pointers to the GPU memory space to both read and write from. When you are done, you copy that memory back into the CPU.
... const unsigned int num_threads = 64; Char Ch; /* Declare pointers for GPU based params k / unsigned int * gpu_block; unsigned int * gpu_thread; unsigned int * gpu_Warp; unsigned int * gpu_cal c_thread; /* Declare loop counter for ...
Total thread count 1⁄4 16 * 8 1⁄4 128 */ const dim3 threads_square(16, 8); /* 16 * 8 */ const dim3 blocks_square(2,2); /* Needed to wait for a character at exit */ char ch; /* Declare pointers for GPU based params */ int * unsigned ...
Відгуки відвідувачів - Написати рецензію
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