Spaces:
Runtime error
Runtime error
static const size_t num_samples = 10000; | |
template<typename Vector, typename U> struct rebind_vector; | |
template<typename T, typename U, typename Allocator> | |
struct rebind_vector<thrust::host_vector<T, Allocator>, U> | |
{ | |
typedef typename thrust::detail::allocator_traits<Allocator> alloc_traits; | |
typedef typename alloc_traits::template rebind_alloc<U> new_alloc; | |
typedef thrust::host_vector<U, new_alloc> type; | |
}; | |
template<typename T, typename U, typename Allocator> | |
struct rebind_vector<thrust::device_vector<T, Allocator>, U> | |
{ | |
typedef thrust::device_vector<U, | |
typename Allocator::template rebind<U>::other> type; | |
}; | |
BINARY_FUNCTIONAL_PLACEHOLDERS_TEST(EqualTo, ==, thrust::equal_to); | |
BINARY_FUNCTIONAL_PLACEHOLDERS_TEST(NotEqualTo, !=, thrust::not_equal_to); | |
BINARY_FUNCTIONAL_PLACEHOLDERS_TEST(Greater, >, thrust::greater); | |
BINARY_FUNCTIONAL_PLACEHOLDERS_TEST(Less, <, thrust::less); | |
BINARY_FUNCTIONAL_PLACEHOLDERS_TEST(GreaterEqual, >=, thrust::greater_equal); | |
BINARY_FUNCTIONAL_PLACEHOLDERS_TEST(LessEqual, <=, thrust::less_equal); | |