// Copyright (c) 2019 by Contributors #include #include #include "../../../src/data/adapter.h" #include "../../../src/data/simple_dmatrix.h" #include "../../../src/common/timer.h" #include "../helpers.h" #include #if defined(XGBOOST_USE_CUDA) #include "../../../src/data/device_adapter.cuh" #elif defined(XGBOOST_USE_HIP) #include "../../../src/data/device_adapter.hip.h" #endif #include "test_array_interface.h" using namespace xgboost; // NOLINT void TestCudfAdapter() { constexpr size_t kRowsA {16}; constexpr size_t kRowsB {16}; std::vector columns; thrust::device_vector d_data_0(kRowsA); thrust::device_vector d_data_1(kRowsB); columns.emplace_back(GenerateDenseColumn("("