0PricingLogin
CUDA Academy · Lesson

Compiling with nvcc

How nvcc splits host and device code.

Meet nvcc

The CUDA compiler is called nvcc. It takes your .cu file with mixed CPU and GPU code and turns it into one runnable program. 🛠️

Two Kinds of Code

A .cu file holds two worlds: host code that runs on the CPU and device code that runs on the GPU. nvcc must handle each one differently.

All lessons in this course

  1. Driver, Runtime, and Toolkit Versions
  2. Reading nvidia-smi Like a Pro
  3. Compiling with nvcc
  4. Hello GPU: Your First .cu File
← Back to CUDA Academy