0Pricing
CUDA Academy · Lección

Versiones del controlador, runtime y toolkit

Qué componentes deben ser compatibles para ejecutar CUDA.

Versiones del controlador, runtime y toolkit es una lección gratuita de CUDA Academy en CoddyKit. Esta es la lección 1 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de CUDA Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de CUDA Academy incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

Three Moving Parts

Running CUDA needs three pieces to cooperate: the GPU driver, the CUDA runtime, and the CUDA toolkit. When they line up, your code just works. 🧩

The Driver

The driver is the low-level software that lets your operating system actually talk to the physical GPU. It ships with NVIDIA's GPU drivers, separate from the toolkit.

The Runtime

The CUDA runtime is the friendly library your program links against. It offers the cudaMalloc and cudaMemcpy calls you will write every day.

The Toolkit

The CUDA toolkit bundles the compiler, the runtime libraries, and headers. Installing it is how you get nvcc and everything needed to build GPU code.

The Golden Rule

Here is the rule that saves you hours: your driver must be at least as new as the toolkit. A newer driver runs older toolkits, but never the reverse.

Check the Driver Version

To see your driver and the maximum CUDA it supports, run nvidia-smi in a terminal and read the top header line.

nvidia-smi

Check the Toolkit Version

To confirm which CUDA toolkit compiler you have installed, ask nvcc directly. The version it prints is what your builds will target.

nvcc --version

Two Versions, One System

It is normal for nvidia-smi and nvcc to show different numbers. The first reports the driver's max CUDA; the second reports the installed toolkit. That gap is fine.

Forward Compatibility

Programs you build are tied to a runtime version. A newer driver stays backward compatible, so older CUDA binaries keep running after you upgrade your driver.

When Things Break

Seeing an error like driver version is insufficient almost always means your driver is too old for the toolkit. Update the driver, not the toolkit.

Query Versions in Code

Your program can read both numbers at runtime. The runtime API exposes them so you can log versions or fail early with a clear message.

int rt, drv;
cudaRuntimeGetVersion(&rt);
cudaDriverGetVersion(&drv);

Quick Check

Time to test the version relationship.

Recap

You met the driver, runtime, and toolkit, and learned the golden rule: keep the driver as new or newer than the toolkit. Now you can diagnose version errors fast. 🚀

Preguntas frecuentes

¿La lección «Versiones del controlador, runtime y toolkit» es gratis?

Sí — el texto completo de «Versiones del controlador, runtime y toolkit» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de CUDA Academy, actualiza a CoddyKit PRO. El curso de CUDA Academy incluye 4 lecciones en total.

¿Qué aprenderé en «Versiones del controlador, runtime y toolkit»?

Qué componentes deben ser compatibles para ejecutar CUDA. Practicas CUDA Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar CUDA Academy?

No se requiere experiencia previa. CUDA Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 1 de 4.

¿Cuánto tiempo toma la lección «Versiones del controlador, runtime y toolkit»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de CUDA Academy?

Sí. Cada lección de CUDA Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. Versiones del controlador, runtime y toolkit
  2. Leer nvidia-smi como un profesional
  3. Compilar con nvcc
  4. Hola, GPU: su primer archivo .cu
← Volver a CUDA Academy