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

Common utilities. More...

#include <xgboost/base.h>
#include <xgboost/logging.h>
#include <exception>
#include <limits>
#include <type_traits>
#include <vector>
#include <string>
#include <sstream>
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_DEVICExgboost::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 ()
 

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