xgboost

Classes | Namespaces | Macros | Functions
common.h File Reference

Common utilities. More...

`#include <xgboost/base.h>`
`#include <xgboost/logging.h>`
`#include <algorithm>`
`#include <exception>`
`#include <functional>`
`#include <limits>`
`#include <type_traits>`
`#include <vector>`
`#include <string>`
`#include <sstream>`
`#include <numeric>`
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | xgboost::common::Range
class | xgboost::common::Range::Iterator

## Namespaces
| dh
| xgboost
| namespace of xgboost
| xgboost::common

## Macros
#define | WITH_CUDA() false

## Functions
std::vector< std::string > | xgboost::common::Split (const std::string &s, char delim)
| Split a string by delimiter. More...
template<typename T >
XGBOOST_DEVICE T | xgboost::common::Max (T a, T b)
template<typename T >
std::string | xgboost::common::ToString (const T &data)
template<typename T1 , typename T2 >
XGBOOST_DEVICE T1 | xgboost::common::DivRoundUp (const T1 a, const T2 b)
int | xgboost::common::AllVisibleGPUs ()
void | xgboost::common::AssertGPUSupport ()
void | xgboost::common::AssertOneAPISupport ()
template<typename Idx , typename V , typename Comp = std::less<V>>
std::vector< Idx > | xgboost::common::ArgSort (std::vector< V > const &array, Comp comp=std::less< V >{})

## Detailed Description

Common utilities.

Threading utilities.

Copyright 2015-2018 by Contributors

Copyright 2015-2019 by Contributors

## Macro Definition Documentation

## ◆ WITH_CUDA

#define WITH_CUDA | ( |  | ) | false