CUDA for Engineers: An Introduction to High-Performance Parallel Computing by Storti Duane & Yurtoglu Mete

CUDA for Engineers: An Introduction to High-Performance Parallel Computing by Storti Duane & Yurtoglu Mete

Author:Storti, Duane & Yurtoglu, Mete [Storti, Duane]
Language: eng
Format: azw3
Publisher: Pearson Education
Published: 2015-11-02T05:00:00+00:00


* * *

That takes care of the currently implemented interactions (although you are encouraged to experiment with creating additional interactions that you find useful or interesting), and we can move on to the code in kernel.cu. The prototypes for its public “wrapper” functions, volumeKernelLauncher() and kernelLauncher(), reside in kernel.h, shown in Listing 7.9, and the implementation of kernel.cu is shown in Listing 7.10. volumeKernelLauncher() calls volumeKernel() to launch a 3D grid to compute an image stack of data describing an object, and kernelLauncher() calls renderKernel() to launch a 2D grid to compute pixel shading values.

Listing 7.9 vis_3d/kernel.h

Click here to view code image



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.