Rename ranking utils to threading utils. (#8785)

This commit is contained in:
Jiaming Yuan
2023-02-12 05:41:18 +08:00
committed by GitHub
parent 70c9b885ef
commit 17b709acb9
3 changed files with 29 additions and 22 deletions

View File

@@ -1,13 +1,14 @@
/**
* Copyright 2021 by XGBoost Contributors
* Copyright 2021-2023 by XGBoost Contributors
*/
#include <gtest/gtest.h>
#include "../../../src/common/ranking_utils.cuh"
#include <thrust/copy.h> // thrust::copy
#include "../../../src/common/device_helpers.cuh"
#include "../../../src/common/threading_utils.cuh"
namespace xgboost {
namespace common {
TEST(SegmentedTrapezoidThreads, Basic) {
size_t constexpr kElements = 24, kGroups = 3;
dh::device_vector<size_t> offset_ptr(kGroups + 1, 0);