PDA

View Full Version : What Is CUDA?


News
09-10-12, 07:20 PM
http://5601-blogs-nvidia-com.voxcdn.com/wp-content/uploads/2012/09/cudaplaceholder4.pngYou may not realize it, but GPUs are good for much more than videogames and scientific research. In fact, there is a good chance that your daily life is being affected by GPU computing (http://www.nvidia.com/object/what-is-gpu-computing.html).

Mobile applications rely on GPUs running servers in the cloud. Stores use GPUs to analyze retail and web data. Web sites use GPUs to more accurately place ads. Engineers rely on them in¬*computer-aided engineering (http://www.nvidia.com/object/computational-structural-mechanics.html) applications. Accelerated computing using GPUs continues to expand at an astounding rate.

No longer is it something that the high-performance computing (HPC) (http://www.nvidia.com/object/tesla-supercomputing-solutions.html) community takes sole advantage of. The benefits are moving mainstream.

Even with this broad and expanding interest, as I travel across the United States educating researchers and students about the benefits of GPU acceleration, I routinely get asked the question ‚??what is CUDA?‚??

Most people confuse CUDA (http://developer.nvidia.com/category/zone/cuda-zone) for a language or maybe an API. It is not.

It is much more than that. CUDA is a parallel programming (http://developer.nvidia.com/cuda/get-started-parallel-computing) model and architecture that makes using a GPU for general purpose computing simple and elegant. The developer still programs in the familiar C, C++, Fortran, or an ever expanding list of supported languages, and incorporates extensions of these languages in the form of a few basic keywords.

These keywords let the developer express massive amounts of parallelism and direct the compiler to the portion of the application that maps to the GPU.

A simple example of code is shown below, written first in plain ‚??C‚?? and then in ‚??C with CUDA extensions.‚??

http://5601-blogs-nvidia-com.voxcdn.com/wp-content/uploads/2012/09/gorpycuda3.png (http://blogs.nvidia.com/2012/09/what-is-cuda-2/gorpycuda-4/)
(http://blogs.nvidia.com/2012/09/what-is-cuda-2/gorpycuda-4/)

Learning how to program using the CUDA parallel programming model is easy. We have webinars and self-study exercises at the CUDA Developer Zone website (http://developer.nvidia.com/cuda/get-started-cuda-cc).

In addition to toolkits for C, C++, and Fortran (http://developer.nvidia.com/cuda/get-started-parallel-computing), there are tons of libraries optimized for GPUs and other programming approaches such as the OpenACC directive based compilers (http://developer.nvidia.com/cuda/openacc).

Check it out.¬* And be sure to let us know how you‚??re using CUDA to advance your work.



More... (http://blogs.nvidia.com/2012/09/what-is-cuda-2/)