 
     ASSERT_EQUAL(ref[k[i]], (T) result[0]);
   }
+#endif
 }
 DECLARE_VARIABLE_UNITTEST(TestSelect);
 
 template<typename U>
   void TestSelectKeyValue(const size_t n)
 {
+#if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC && CUDA_VERSION < 3020
+  KNOWN_FAILURE;
+#else
   if(n == 0) return;
 
   typedef key_value<U,U> T;

template<typename T>
  void TestSelect(const size_t n)
{
  if(n == 0) return;

  typedef typename thrust::device_vector<T>::iterator iterator;


    ASSERT_EQUAL(ref[k[i]], (T) result[0]);
  }
#endif
}
DECLARE_VARIABLE_UNITTEST(TestSelectKeyValue);

