Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] using proto with nvcc
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-02-08 21:37:01


On Mon, Feb 8, 2010 at 5:21 PM, Belcourt, Kenneth <kbelco_at_[hidden]> wrote:
> The CUDA compiler (nvcc) is, in essence, a C compiler not C++.

This is incorrect.

> You'll need to read the documentation but C++ code is
> compiled by a host compiler (g++, etc...) while nvcc is used to compile
> device (GPU) specific C-like code.

The device-specific compiler has a C++ front-end, complete with
templates, specializations, etc. + NVIDIA-specific extensions. The
complication is that code that targets both the "device" (GPU) and the
"host" (CPU) needs to be compatible with at least 2 front-ends (NVCC
and GCC/MSVC), but that's not unusual for Boost in general.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net