lion03 / thrust

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

c++ fill seems broken #280

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <thrust/fill.h>

#include <iostream>

int main(void)
{
   thrust::device_vector<float> foo(10);

   thrust::fill(foo.begin(), foo.end(), 1.f);

   thrust::host_vector<float> bar = foo;

   for (int i = 0; i < bar.size(); ++i)
       std::cout << bar[i] << std::endl;

   return 0;
}

reported here:
http://groups.google.com/group/thrust-users/browse_thread/thread/8461a63e309331a
3

Original issue reported on code.google.com by jaredhoberock on 18 Nov 2010 at 5:54

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 31a921d9c8.

Original comment by jaredhoberock on 5 Feb 2011 at 3:37