August 2016
Intermediate to advanced
318 pages
8h 16m
English
This chapter explains how to create an executable kernel for a CUDA C code or PTX code and run that kernel on a GPU by calling it through MATLAB. Moreover, a brief introduction of CUDA C is presented. Furthermore, two classic examples, vector addition and matrix multiplication, are presented. After reading this chapter, you should be able to:
• understand the basic features of a CUDA C code.
• compile kernels written in CUDA C.
• use compiled PTX codes to create CUDAKernel objects.
• execute kernels on a GPU by calling them through MATLAB.
• set properties on the CUDAKernel object to control its execution on the GPU.
understand the basic features of a CUDA C code.
compile kernels written in CUDA C. ...
Read now
Unlock full access