Closed GoogleCodeExporter closed 8 years ago
sorry I meant to add, this is a simplified reproduction of a slightly more
complicated problem: I need to apply a transform iterator to a
std::map::iterator, which gives the same error. This is purely host code, so I
am not sure why using thrust::transform_iterator would lead to a __host__
function being called from __host__ __device__ function.
Original comment by andrew.c...@gmail.com
on 31 Mar 2011 at 4:10
The std::vector::iterator's constructor (which is a __host__ function) invoked
by iterator_adaptor's constructor [1] (which is a __host__ __device__ function)
is producing the warning. I'm not sure we can do anything about this given the
current rules of CUDA.
We're aware of this problem, as are the compiler folks.
[1]
http://code.google.com/p/thrust/source/browse/thrust/iterator/iterator_adaptor.h
#81
Original comment by jaredhoberock
on 31 Mar 2011 at 6:14
Can this specific warning then be suppressed somehow in the mean time?
Original comment by janick.m...@gmail.com
on 30 May 2011 at 2:26
Original issue reported on code.google.com by
andrew.c...@gmail.com
on 31 Mar 2011 at 4:08