Abstract

Graphics processing units or GPUs are being widely used for general purpose programming. CUDA provides a collection of modifications to the C++ compiler and a library of functions that can be can be used for general purpose programming of Nvidia GPUs. GPUs employ features of both SIMD and MIMD processors. GPUs are not ordinarily standalone processors; rather a typical GPU is paired with a CPU, which carries out basic functions such as I/O, memory allocation, and initialization. We develop a range of CUDA programs from a basic “hello, world” program to programs for numerical integration to programs for sorting. We illustrate the basics of writing CUDA kernels, which are functions that run on the GPU but are started by the host processor—the CPU. We make use of CUDA global and shared memory, barriers, and warp shuffles to accelerate the performance of our programs and to address race conditions.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.