21 #include <cudf/detail/utilities/vector_factories.hpp>
27 #include <cudf/utilities/export.hpp>
29 #include <thrust/host_vector.h>
30 #include <thrust/iterator/transform_iterator.h>
32 namespace CUDF_EXPORT
cudf {
38 enum class debug_output_level {
62 debug_output_level verbosity = debug_output_level::FIRST_ERROR);
80 bool expect_column_properties_equivalent(
83 debug_output_level verbosity = debug_output_level::FIRST_ERROR);
101 debug_output_level verbosity = debug_output_level::FIRST_ERROR);
122 debug_output_level verbosity = debug_output_level::FIRST_ERROR,
123 size_type fp_ulps = cudf::test::default_ulp);
134 void expect_equal_buffers(
void const* lhs,
void const* rhs, std::size_t size_bytes);
164 bool validate_host_masks(std::vector<bitmask_type>
const& expected_mask,
165 std::vector<bitmask_type>
const& got_mask_begin,
176 template <typename T, std::enable_if_t<not cudf::is_fixed_point<T>()>* =
nullptr>
177 std::pair<thrust::host_vector<T>, std::vector<bitmask_type>> to_host(column_view c)
181 return {std::move(host_data), bitmask_to_host(c)};
198 template <typename T, std::enable_if_t<cudf::is_fixed_point<T>()>* =
nullptr>
199 CUDF_EXPORT std::pair<thrust::host_vector<T>, std::vector<bitmask_type>> to_host(column_view c);
212 CUDF_EXPORT std::pair<thrust::host_vector<std::string>, std::vector<bitmask_type>> to_host(
243 #define CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUAL(lhs, rhs) \
245 SCOPED_TRACE(" <-- line of failure\n"); \
246 cudf::test::detail::expect_column_properties_equal(lhs, rhs); \
249 #define CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUIVALENT(lhs, rhs) \
251 SCOPED_TRACE(" <-- line of failure\n"); \
252 cudf::test::detail::expect_column_properties_equivalent(lhs, rhs); \
255 #define CUDF_TEST_EXPECT_COLUMNS_EQUAL(lhs, rhs...) \
257 SCOPED_TRACE(" <-- line of failure\n"); \
258 cudf::test::detail::expect_columns_equal(lhs, rhs); \
261 #define CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(lhs, rhs...) \
263 SCOPED_TRACE(" <-- line of failure\n"); \
264 cudf::test::detail::expect_columns_equivalent(lhs, rhs); \
267 #define CUDF_TEST_EXPECT_EQUAL_BUFFERS(lhs, rhs, size_bytes) \
269 SCOPED_TRACE(" <-- line of failure\n"); \
270 cudf::test::detail::expect_equal_buffers(lhs, rhs, size_bytes); \
273 #define CUDF_TEST_ENABLE_LARGE_STRINGS() cudf::test::large_strings_enabler ls___
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.
For enabling large strings testing in specific tests.
void enable()
Enable large strings support.
void disable()
Disable large strings support.
large_strings_enabler(bool default_enable=true)
Create large strings enable object.
Type declarations for libcudf.