O que CUDA realmente é
A plataforma da NVIDIA para executar C++ na GPU.
O que CUDA realmente é é uma aula grátis de CUDA Academy no CoddyKit. Esta é a aula 3 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de CUDA Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de CUDA Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
Putting a Name to the Magic
You have seen why GPUs are fast. CUDA is the tool that lets you actually write code for them in C++. Time to meet it properly. 🚀
CUDA Is a Platform
CUDA is NVIDIA's platform for general-purpose GPU computing. It lets you run your own programs on the GPU, not just graphics.
An Extension of C++
CUDA C++ is just C++ with a few extra keywords and functions. If you know C++, most of CUDA already feels familiar from day one.
Kernels: Code That Runs on the GPU
A function you mark to run on the GPU is called a kernel. Thousands of threads will each run that one function in parallel.
__global__ void add(int *out, int *a, int *b) {
// runs on the GPU
}The __global__ Keyword
That __global__ tag marks a function as a kernel: callable from the CPU but executed on the GPU. It is your gateway onto the device.
Host and Device
In CUDA talk, the CPU side is the host and the GPU side is the device. You will hear these two words constantly, so lock them in now.
The Runtime API
CUDA gives you a friendly runtime API: functions like cudaMalloc and cudaMemcpy that manage GPU memory and move data around for you.
nvcc: The CUDA Compiler
You build CUDA code with nvcc. It splits your file, sends host code to your normal compiler and device code to the GPU compiler.
It Is NVIDIA-Only
CUDA runs only on NVIDIA GPUs. That tight coupling is why it is so well tuned, but it also means it is vendor specific.
A Rich Library Ecosystem
CUDA ships tuned libraries like cuBLAS for matrices and cuDNN for deep learning, so you rarely start a hard problem from scratch.
Why CUDA Took Over
Mature tools, fast libraries, and deep ecosystem support made CUDA the default way to do GPU computing in science and AI today.
Quick Check
Let us confirm what CUDA really is.
Recap: What CUDA Is
CUDA is NVIDIA's platform that extends C++ with kernels, a runtime API, and the nvcc compiler so your code can run on the GPU. 👍
Perguntas Frequentes
A aula “O que CUDA realmente é” é grátis?
Sim — o texto completo de “O que CUDA realmente é” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de CUDA Academy, atualize para CoddyKit PRO. O curso de CUDA Academy inclui 4 aulas no total.
O que vou aprender em “O que CUDA realmente é”?
A plataforma da NVIDIA para executar C++ na GPU. Você pratica CUDA Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar CUDA Academy?
Nenhuma experiência prévia é necessária. CUDA Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 3 de 4.
Quanto tempo leva a aula “O que CUDA realmente é”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de CUDA Academy?
Sim. Cada aula de CUDA Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- CPU versus GPU: latência versus vazão
- SIMT: a mesma instrução, várias threads
- O que CUDA realmente é
- Problemas que aproveitam a GPU