Closed GoogleCodeExporter closed 9 years ago
Oops. In Visual Studio I have "Platform Toolset" for this project set to vc90,
so the compiler that compiles this thrust code is MSCV 9.
Cheers,
Mike
Original comment by mikerobe...@gmail.com
on 8 Nov 2010 at 6:43
Original comment by jaredhoberock
on 8 Nov 2010 at 6:47
Original comment by jaredhoberock
on 8 Nov 2010 at 6:50
Thanks for the report, Mike.
I'm not able to reproduce this problem on my system (Thrust 1.3.0, nvcc 3.2
32b, MSVC 9 32b). Can you attach the output of nvcc --verbose?
Original comment by jaredhoberock
on 8 Nov 2010 at 7:02
Hey Jared,
You can safely file this bug under "Mike's an idiot". I was compiling outside
of NVCC.
The thrust interface is so high-level and pleasant it started sneaking into my
cpp files. I moved the reduce code into a .cu file, compiled with NVCC, and the
problem went away.
Thanks so much for your help. :)
Original comment by mikerobe...@gmail.com
on 8 Nov 2010 at 7:12
Thanks for root causing it, Mike.
Actually this is our fault; compiling in CUDA mode without nvcc should produce
a compiler error, not a confusing linker error. I've filed a separate issue to
track this problem [1].
[1] http://code.google.com/p/thrust/issues/detail?id=272
Original comment by jaredhoberock
on 8 Nov 2010 at 7:19
Original issue reported on code.google.com by
mikerobe...@gmail.com
on 8 Nov 2010 at 6:31