0Pricing
CUDA Academy · Lektion

Versionen von Treiber, Runtime und Toolkit

Welche Komponenten für die Ausführung von CUDA übereinstimmen müssen.

Versionen von Treiber, Runtime und Toolkit ist eine kostenlose CUDA Academy-Lektion auf CoddyKit. Dies ist Lektion 1 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des CUDA Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der CUDA Academy-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

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. 🚀

Häufig gestellte Fragen

Ist die Lektion „Versionen von Treiber, Runtime und Toolkit“ kostenlos?

Ja — der vollständige Text von „Versionen von Treiber, Runtime und Toolkit“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des CUDA Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der CUDA Academy-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Versionen von Treiber, Runtime und Toolkit“?

Welche Komponenten für die Ausführung von CUDA übereinstimmen müssen. Du übst CUDA Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um CUDA Academy zu starten?

Keine Vorkenntnisse erforderlich. CUDA Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 1 von 4.

Wie lange dauert die Lektion „Versionen von Treiber, Runtime und Toolkit“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser CUDA Academy-Lektion Code schreiben und ausführen?

Ja. Jede CUDA Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. Versionen von Treiber, Runtime und Toolkit
  2. nvidia-smi wie ein Profi lesen
  3. Mit nvcc kompilieren
  4. Hallo GPU: Ihre erste .cu-Datei
← Zurück zu CUDA Academy