fbpx
Wikipedia

Nvidia CUDA Compiler

Nvidia CUDA Compiler (NVCC) is a proprietary compiler by Nvidia intended for use with CUDA.

Original author(s)Nvidia
Stable release
12.3
TypeCompiler
LicenseProprietary software
Websitedocs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#introduction

Compiler edit

CUDA code runs on both the CPU and GPU. NVCC separates these two parts and sends host code (the part of code which will be run on the CPU) to a C compiler like GCC or Intel C++ Compiler (ICC) or Microsoft Visual C++ Compiler, and sends the device code (the part which will run on the GPU) to the GPU. The device code is further compiled by NVCC. NVCC is based on LLVM.[1] According to Nvidia provided documentation, nvcc in version 7.0 supports many language constructs that are defined by the C++11 standard and a few C99 features as well. In version 9.0 several more constructs from the C++14 standard are supported.[2]

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 PTX or object code directly. An executable with CUDA code requires: the CUDA core library (cuda) and the CUDA runtime library (cudart).

Other widely used libraries:

  • CUBLAS: BLAS implementation
  • CUFFT: FFT implementation
  • CUDPP (Data Parallel Primitives): Reduction, Scan, Sort.
  • Thrust: Reduction, Scan, Sort.

See also edit

References edit

  1. ^ "CUDA LLVM Compiler". NVIDIA Developer. Retrieved Apr 6, 2016.
  2. ^ "CUDA C++ Programming Guide". NVIDIA Documentation Hub. Retrieved 2019-06-28.

General edit

  1. David B. Kirk, and Wen-mei W. Hwu. Programming massively parallel processors: a hands-on approach. Morgan Kaufmann, 2010.
  2. "NVIDIA CUDA Compiler Driver NVCC". NVIDIA Documentation Hub. from the original on Oct 13, 2023.
  3. . GPGPU. Archived from the original on Nov 17, 2018.

nvidia, cuda, compiler, nvcc, proprietary, compiler, nvidia, intended, with, cuda, original, author, nvidiastable, release12, 3typecompilerlicenseproprietary, softwarewebsitedocs, nvidia, cuda, cuda, compiler, driver, nvcc, introduction, contents, compiler, al. Nvidia CUDA Compiler NVCC is a proprietary compiler by Nvidia intended for use with CUDA Original author s NvidiaStable release12 3TypeCompilerLicenseProprietary softwareWebsitedocs wbr nvidia wbr com wbr cuda wbr cuda compiler driver nvcc wbr wbr introduction Contents 1 Compiler 2 See also 3 References 3 1 GeneralCompiler editCUDA code runs on both the CPU and GPU NVCC separates these two parts and sends host code the part of code which will be run on the CPU to a C compiler like GCC or Intel C Compiler ICC or Microsoft Visual C Compiler and sends the device code the part which will run on the GPU to the GPU The device code is further compiled by NVCC NVCC is based on LLVM 1 According to Nvidia provided documentation nvcc in version 7 0 supports many language constructs that are defined by the C 11 standard and a few C99 features as well In version 9 0 several more constructs from the C 14 standard are supported 2 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 PTX or object code directly An executable with CUDA code requires the CUDA core library cuda and the CUDA runtime library cudart Other widely used libraries CUBLAS BLAS implementation CUFFT FFT implementation CUDPP Data Parallel Primitives Reduction Scan Sort Thrust Reduction Scan Sort See also editOpenCL Heterogeneous System Architecture CUDA binary cubin a type of fat binaryReferences edit CUDA LLVM Compiler NVIDIA Developer Retrieved Apr 6 2016 CUDA C Programming Guide NVIDIA Documentation Hub Retrieved 2019 06 28 General edit David B Kirk and Wen mei W Hwu Programming massively parallel processors a hands on approach Morgan Kaufmann 2010 NVIDIA CUDA Compiler Driver NVCC NVIDIA Documentation Hub Archived from the original on Oct 13 2023 CUDPP GPGPU Archived from the original on Nov 17 2018 Retrieved from https en wikipedia org w index php title Nvidia CUDA Compiler amp oldid 1214994044, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.