[来源关键摘录] 记录 CUDA 于 2006 年随 G80 架构推出并于 2007 年发布首个公开 SDK 的技术演进与生态影响。
[正文前段节选] Jump to content
36 languages
Azərbaycanca
Bahasa Indonesia
Српски / srpski
From Wikipedia, the free encyclopedia
Parallel computing platform and programming model
For other uses, see CUDA (disambiguation).
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
This article contains instructions or advice. Wikipedia is not a guidebook; please help rewrite such content to be encyclopedic or move it to Wikiversity, Wikibooks, or Wikivoyage. (February 2024) (Learn how and when to remove this message)
This article contains a pro and con list. Please help rewrite it into consolidated sections based on topics. (February 2024)
(Learn how and when to remove this message)
Original authorsIan BuckJohn Nickolls
DeveloperNvidia
ReleaseFebruary 16, 2007; 19 years ago (2007-02-16)[1]
Stable release
/ 9 September 2026; 2 months ago (9 September 2026)
Operating systemWindows, Linux
PlatformSupported GPUs
LicenseProprietary
Websitedeveloper.nvidia.com/cuda-zone
CUDA (Compute Unified Device Architecture) is a proprietary[3] parallel computing platform and application programming interface (API) developed by Nvidia that allows software to use certain types of graphics processing units (GPUs) for accelerated general-purpose processing, significantly broadening their utility in artificial intelligence, scientific and high-performance computing. CUDA was created in 2004 and was officially released in 2007.[4] When introduced, the name was an acronym for Compute Unified Device Architecture,[5] but Nvidia later dropped the initial meaning of the acronym and now rarely expands it.[6]
CUDA is both a software layer that manages data, giving direct access to the GPU and CPU as necessary, and a library of APIs that enable parallel computation.[7][8] In addition to drivers and runtime kernels, the CUDA platform includes compilers, libraries and developer tools to help programmers.
CUDA is written in the C programming language, but is designed to work with other programming languages including C++, Fortran, Python and Julia. This accessibility makes it easier for specialists in parallel programming to use GPU resources, in contrast to prior APIs like Direct3D and OpenGL, which require advanced skills in graphics programming.[9] CUDA-powered GPUs support programming frameworks such as OpenMP, OpenACC and OpenCL.[10][7]
Graphics processing unit
Further information: Graphics processing unit
The graphics processing unit (GPU) is a specialized processor. It addresses the demands of real-time high-resolution, compute-intensive tasks such as 3D graphics. By 2012, GPUs had evolved into highly parallel multi-core systems allowing efficient manipulation of large blocks of data. This design is more effective than general-purpose central processing unit (CPUs) for algorithms in situations where processing large blocks of data is done in parallel, such as:
cryptographic hash functions
machine learning
molecular dynamics simulations
physics engines
CUDA traces to the early 2000s, when Ian Buck, a computer science PhD student at Stanford University, began experimenting with using GPUs for purposes beyond rendering graphics. Buck had become interested in GPUs during his undergraduate studies at Princeton University, initially through video gaming. After graduation, he interned at Nvidia, gaining deeper exposure to GPU architecture. At Stanford, he built an 8K gaming rig using 32 GeForce graphics cards, originally to push the limits of graphics performance in games like Quake and Doom. However, his interests shifted toward exploring the potential of GPUs for general-purpose parallel computing.[11]
To that end, Buck developed Brook, a programming language designed to enable general-purpose computing on GPUs. His work attracted support from Nvidia and the Defense Advanced Research Projects Agency (DARPA). In 2004, Nvidia hired Buck and paired him with John Nickolls,[12] then director of architecture for GPU computing. Together, they began transforming Brook into CUDA.[11] CUDA was officially released in 2007.
CUDA became central to the company's strategy of positioning GPUs as versatile hardware for scientific applications. By 2015, CUDA's development increasingly focused on accelerating machine learning and artificial neural network workloads.[13]
The following table offers an approximate summary of the CUDA ontology.
Ontology of CUDA framework
memory(hardware)
memory (code, or variable scoping)
computation(hardware)
computation(code syntax)
computation(code semantics)
non-CUDA variables
one routine call
VRAM,GPU L2 cache
global, const, texture
simultaneous call of the same subroutine on many processors
GPU L1 cache
local, shared
SM ("streaming multiprocessor")
individual subroutine call
warp = 32 threads
SIMD instructions
GPU L0 cache,register
thread (aka. "SP", "streaming processor", "cuda core", but these names are now deprecated)
analogous to individual scalar ops within a vector op
Programming abilities
Example of CUDA processing flow
Copy data from main memory to GPU memory
CPU initiates the GPU compute kernel
GPU's CUDA cores execute the kernel in parallel
Copy the resulting data from GPU memory to main memory
The CUDA platform is accessible to software developers through CUDA-accelerated libraries, compiler directives such as OpenACC, and extensions to industry-standard programming languages including C, C++, Fortran and Python. C/C++ programmers can use 'CUDA C/C++', compiled to PTX with nvcc (Nvidia's LLVM-based C/C++ compiler)[14] or by clang itself.[15] Fortran programmers can use 'CUDA Fortran', compiled with the PGI CUDA Fortran compiler from The Portland Group.[needs update] Python programmers can use the cuPyNumeric library to accelerate applications on Nvidia GPUs.
In addition to libraries, compiler directives, CUDA C/C++ and CUDA Fortran, the CUDA platform supports other computational interfaces, including the Khronos Group's OpenCL,[16] Microsoft's DirectCompute, OpenGL Compute Shader and C++ AMP.[17] Third party wrappers are also available for Python, Perl, Fortran, Java, Ruby, Lua, Common Lisp, Haskell, R, MATLAB, IDL, Julia, and native support in Mathematica.
In the computer game industry, GPUs are used for graphics rendering, and for game physics calculations (physical effects such as debris, smoke, fire, fluids); examples include PhysX and Bullet. CUDA has also been used to accelerate non-graphical applications in computational biology, cryptography and other fields by an order of magnitude or more.[18][19][20][21][22]
CUDA provides both a low level API (CUDA Driver API, non single-source) and a higher level API (CUDA Runtime API, single-source). The initial CUDA SDK was made public on 15 February 2007, for Microsoft Windows and Linux. Mac OS X support was later added in version 2.0,[23] which supersedes the beta released February 14, 2008.[24] CUDA works with all Nvidia GPUs from the G8x series onwards, including GeForce, Quadro and the Tesla line. CUDA is compatible with most standard operating systems.
CUDA 8.0 comes with the following libraries (for compilation & runtime, in alphabetical order):
cuBLAS – CUDA Basic Linear Algebra Subroutines library
CUDART – CUDA Runtime library
cuFFT – CUDA Fast Fourier Transform library
cuRAND – CUDA Random Number Generation library
cuSOLVER – CUDA based collection of dense and sparse direct solvers
cuSPARSE – CUDA Sparse Matrix library
NPP – NVIDIA Performance Primitives library
nvGRAPH – NVIDIA Graph Analytics library
NVML – NVIDIA Management Library
NVRTC – NVIDIA Runtime Compilation library for CUDA C++
CUDA 8.0 comes with these other software components:
nView – NVIDIA nView Desktop Management Software
NVWMI – NVIDIA Enterprise Management Toolkit
GameWorks PhysX – is a multi-platform game physics engine
CUDA 9.0–9.2 comes with these other components:
[...内容已截断,完整版请查看原文或 Wayback 快照]