21 #include <cudf/detail/utilities/vector_factories.hpp>
28 #include <thrust/host_vector.h>
29 #include <thrust/iterator/transform_iterator.h>
31 namespace cudf::test {
36 enum class debug_output_level {
60 debug_output_level verbosity = debug_output_level::FIRST_ERROR);
78 bool expect_column_properties_equivalent(
81 debug_output_level verbosity = debug_output_level::FIRST_ERROR);
99 debug_output_level verbosity = debug_output_level::FIRST_ERROR);
120 debug_output_level verbosity = debug_output_level::FIRST_ERROR,
121 size_type fp_ulps = cudf::test::default_ulp);
132 void expect_equal_buffers(
void const* lhs,
void const* rhs, std::size_t size_bytes);
162 bool validate_host_masks(std::vector<bitmask_type>
const& expected_mask,
163 std::vector<bitmask_type>
const& got_mask_begin,
174 template <typename T, std::enable_if_t<not cudf::is_fixed_point<T>()>* =
nullptr>
175 std::pair<thrust::host_vector<T>, std::vector<bitmask_type>> to_host(column_view c)
179 return {std::move(host_data), bitmask_to_host(c)};
196 template <typename T, std::enable_if_t<cudf::is_fixed_point<T>()>* =
nullptr>
197 std::pair<thrust::host_vector<T>, std::vector<bitmask_type>> to_host(column_view c);
210 std::pair<thrust::host_vector<std::string>, std::vector<bitmask_type>> to_host(column_view c);
216 #define CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUAL(lhs, rhs) \
218 SCOPED_TRACE(" <-- line of failure\n"); \
219 cudf::test::detail::expect_column_properties_equal(lhs, rhs); \
222 #define CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUIVALENT(lhs, rhs) \
224 SCOPED_TRACE(" <-- line of failure\n"); \
225 cudf::test::detail::expect_column_properties_equivalent(lhs, rhs); \
228 #define CUDF_TEST_EXPECT_COLUMNS_EQUAL(lhs, rhs...) \
230 SCOPED_TRACE(" <-- line of failure\n"); \
231 cudf::test::detail::expect_columns_equal(lhs, rhs); \
234 #define CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(lhs, rhs...) \
236 SCOPED_TRACE(" <-- line of failure\n"); \
237 cudf::test::detail::expect_columns_equivalent(lhs, rhs); \
240 #define CUDF_TEST_EXPECT_EQUAL_BUFFERS(lhs, rhs, size_bytes) \
242 SCOPED_TRACE(" <-- line of failure\n"); \
243 cudf::test::detail::expect_equal_buffers(lhs, rhs, size_bytes); \
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Class definition for cudf::column.
column view class definitions
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
int32_t size_type
Row index type for columns and tables.
APIs for managing validity bitmasks.
Class definition for cudf::strings_column_view.
Device version of C++20 std::span with reduced feature set.
Type declarations for libcudf.