Content deleted Content added
Discussing with a student and wanted to specify the initialism for MVCC alongside GCC and ICC. |
|||
Line 33:
==Compiler==
CUDA code runs on both the [[central processing unit]] (CPU) and [[graphics processing unit]] (GPU). NVCC separates these two parts and sends host code (the part of code which will be run on the [[CPU]]) to a [[C (programming language)|C]] compiler like [[GNU Compiler Collection]] (GCC) or [[Intel C++ Compiler]] (ICC) or [[Microsoft Visual C++]] Compiler (MVCC), and sends
Any source file containing CUDA language extensions (.cu) must be compiled with nvcc. NVCC is a compiler driver which works by invoking all the necessary tools and compilers like cudacc, g++, cl, etc. NVCC can output either C code (CPU Code) that must then be compiled with the rest of the application using another tool or [[Parallel Thread Execution]] (PTX) or object code directly. An executable with CUDA code requires: the CUDA core [[Library (computing)|library]] (cuda) and the CUDA runtime library (cudart).
|