lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

Compiling with a plain-old C++ compiler stopped working #307

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please post a short, self-contained code sample which reproduces the
problem:

#define THRUST_DEVICE_BACKEND 2
#include <thrust/host_vector.h>

int main(int argc, char** argv)
{
    thrust::host_vector<int> a;

    return 0;
}

What is the expected output? What do you see instead?

It should compile.  Instead, there are a ton of errors related to CUDA, see 
attached.

What version of Thrust are you using? 

changeset:   1403:69b983ffe693
user:        jaredhoberock
date:        Wed Feb 09 16:26:18 2011 -0500
summary:     Add Thrust v1.4.0 CHANGELOG.

Which version of nvcc? 

I am not using nvcc.

Which host compiler?  On what operating system?
System-default g++-4.2 on Mac OS X 10.6,  
System-default g++-4.3 on SUSE Linux Enterprise Server 11.

Please provide any additional information below.

Original issue reported on code.google.com by andrew.c...@gmail.com on 14 Feb 2011 at 3:56

Attachments:

GoogleCodeExporter commented 8 years ago
This fixes it for my code: 
https://code.google.com/r/andrewcorrigan-thrust/source/detail?r=c342f455a05936ab
f50cbddefac99a7607f1987e

Original comment by andrew.c...@gmail.com on 14 Feb 2011 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by jaredhoberock on 14 Feb 2011 at 7:05

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 5a9ea8a831.

Original comment by jaredhoberock on 14 Feb 2011 at 8:50