The following condition is true even for the floating point value -0.0
// implement this with cudaMemset if value == 0
if(value == T(0))
Here:
http://code.google.com/p/thrust/source/browse/thrust/detail/device/cuda/fill.inl
?spec=svnce99824fe0a24d8e663fe89532129d6f2b22c004&r=ce99824fe0a24d8e663fe8953212
9d6f2b22c004#236
We should also add a unit test for this case in one of the .cpp unit test files.
Original issue reported on code.google.com by wnbell on 30 Aug 2010 at 3:33
Original issue reported on code.google.com by
wnbell
on 30 Aug 2010 at 3:33