Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][proto] Using proto with nvcc
From: Manjunath Kudlur (keveman_at_[hidden])
Date: 2010-04-27 17:23:30


On Tue, Apr 27, 2010 at 1:34 PM, Denis Taniguchi <taniguchi_at_[hidden]> wrote:
> On Tue, 2010-04-27 at 13:22 -0700, Manjunath Kudlur wrote:
>> > Manjunath,
>> >
>> > I was able to compile your code without errors.
>> > I'm using Ubuntu linux2.6.28-16-generic x86_64 GNU/Linux + boost-trunk
>> > rev. 61489 + nvcc 3.0.
>> > Are you sure that you are compiling against the trunk version? Maybe the
>> > include path is pointing to the wrong boost version?
>> > Regards,
>> >
>> Hmm, interesting. I did make sure I am compiling against boost trunk.
>> What version of gcc does your Ubuntu have?
>>
>> Manjunath
>
> gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
> But it would not use gcc right? Doesn't nvcc check the file type, so
> that if my file is named main.cu it will be compiled with nvcc?

Sorry, I should have been more clear. nvcc splits the code into "host"
and "device" code and uses the platform provided gcc to compile the
host code. That's why I asked about the gcc version. In any case, my
linux also has gcc 4.3. So it is a mystery as to how it is working for
you. I will try to grab a Ubuntu machine and reproduce your result.

Manjunath


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