Closed GoogleCodeExporter closed 8 years ago
Note that it's generally a bad idea to compile Cusp files with g++ in .cpp
files. You generally want to compile with nvcc and .cu files. In this
particular case, though, it happens to work.
In any case, I believe the fix to this problem is to put
#include <cmath>
at the top of cusp/detail/blas.inl. That resolves the problem on my Linux
machine. Could you confirm that it fixes it for you as well?
Original comment by mjgarl...@gmail.com
on 17 Aug 2010 at 8:31
Original comment by mjgarl...@gmail.com
on 17 Aug 2010 at 8:32
[deleted comment]
I know cusp is meant to be compiled by nvcc. But I have some glue code to a C++
library I'm using which needs to include some cusp headers (otherwise I'd have
to do nasty forward declarations and the like).
Funny that I tried the same solution yesterday and can confirm it works. The
issue is fixed for me.
Original comment by florian....@gmail.com
on 18 Aug 2010 at 7:06
Good. This is fixed in Revision 50462ab4e9.
Original comment by mjgarl...@gmail.com
on 18 Aug 2010 at 2:33
Original issue reported on code.google.com by
florian....@gmail.com
on 12 Aug 2010 at 12:21