AI Infra Interviews logo
The software stack · free reference

nvcc

nvcc is the CUDA compiler driver that coordinates compilation of CUDA C++ host and device code. It invokes multiple compilation stages rather than being a single device-code transformation.

NVIDIA CUDA compiler driver

How it works

Build flags select virtual and real GPU targets, optimization settings and generated artifacts. Device assembly and linking can create cubins; a fat binary can package several images. The host compiler also participates in the build.

Work through an example

To reproduce a performance result, record the toolkit, host compiler, target flags and source revision. Two builds of the same source can produce different native kernels.

Where the term can mislead

The default target choices of one toolkit are not a deployment policy. Explicitly include and test the targets needed by the fleet.

Connect the idea

Take it into practice

Continue with the existing concept, apply it to an interview problem, or follow a course lesson. Access requirements are shown before you open a page.

New to GPUs? Start with the free execution-model concept.

Sources and scope

Examples here are teaching calculations, not measured GPU performance. Consult the linked documentation for the exact device, instruction and tool version. Source review: 25 October 2026.

  1. NVIDIA CUDA compiler driver documentation ↗