Cleanup GPU Hist tests. (#10677)

* Cleanup GPU Hist tests.

- Remove GPU Hist gradient sampling test. The same properties are tested in the gradient
  sampler test suite.
- Move basic histogram tests into the histogram test suite.
- Remove the header inclusion of the `updater_gpu_hist.cu` in tests.
This commit is contained in:
Jiaming Yuan
2024-08-06 11:50:44 +08:00
committed by GitHub
parent 6ccf116601
commit cc3b56fc37
5 changed files with 104 additions and 183 deletions

View File

@@ -1,12 +1,12 @@
/*!
* Copyright 2021-2022 by XGBoost Contributors
/**
* Copyright 2021-2024, XGBoost Contributors
*/
#ifndef XGBOOST_TASK_H_
#define XGBOOST_TASK_H_
#include <xgboost/base.h>
#include <cinttypes>
#include <cstdint> // for uint8_t
namespace xgboost {
/*!
@@ -23,7 +23,7 @@ namespace xgboost {
*/
struct ObjInfo {
// What kind of problem are we trying to solve
enum Task : uint8_t {
enum Task : std::uint8_t {
kRegression = 0,
kBinary = 1,
kClassification = 2,