   
   exemplar = 1;
   
-  uninitialized_fill_n_kernel<<<1,1>>>(v.begin(), v.size(), exemplar, iter_vec.begin());
+  uninitialized_fill_n_kernel<<<1,1>>>(exec, v.begin(), v.size(), exemplar, iter_vec.begin());
   iter = iter_vec[0];
   
   ASSERT_EQUAL(v[0], exemplar);

  ASSERT_EQUAL(v[3], exemplar);
  ASSERT_EQUAL(v[4], exemplar);
}
DECLARE_UNITTEST(TestUninitializedFillDeviceSeq);


template<typename Iterator1, typename Size, typename T, typename Iterator2>
__global__
void uninitialized_fill_n_kernel(Iterator1 first, Size n, T val, Iterator2 result)
{
  *result = thrust::uninitialized_fill_n(thrust::seq, first, n, val);
}


void TestUninitializedFillNDeviceSeq()
{
  typedef thrust::device_vector<int> Vector;
  typedef Vector::value_type T;

  
  exemplar = 9;
  
  uninitialized_fill_kernel<<<1,1>>>(exec, v.begin() + 2, v.end(), exemplar);
  
  ASSERT_EQUAL(v[0], 8);
  ASSERT_EQUAL(v[1], 8);
