ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
base_device Namespace Reference

Namespaces

namespace  information
 
namespace  memory
 

Enumerations

enum  AbacusDevice_t { UnKnown , CpuDevice , GpuDevice , DspDevice }
 

Functions

template<>
base_device::AbacusDevice_t get_device_type< base_device::DEVICE_CPU > (const base_device::DEVICE_CPU *dev)
 
template<>
base_device::AbacusDevice_t get_device_type< base_device::DEVICE_GPU > (const base_device::DEVICE_GPU *dev)
 
template<>
std::string get_current_precision (const float *var)
 
template<>
std::string get_current_precision (const double *var)
 
template<>
std::string get_current_precision (const std::complex< float > *var)
 
template<>
std::string get_current_precision (const std::complex< double > *var)
 
template<typename Device >
base_device::AbacusDevice_t get_device_type (const Device *dev)
 
template<typename T >
std::string get_current_precision (const T *var)
 

Enumeration Type Documentation

◆ AbacusDevice_t

Enumerator
UnKnown 
CpuDevice 
GpuDevice 
DspDevice 

Function Documentation

◆ get_current_precision() [1/5]

template<>
std::string base_device::get_current_precision ( const double *  var)

◆ get_current_precision() [2/5]

template<>
std::string base_device::get_current_precision ( const float *  var)
Here is the caller graph for this function:

◆ get_current_precision() [3/5]

template<>
std::string base_device::get_current_precision ( const std::complex< double > *  var)

◆ get_current_precision() [4/5]

template<>
std::string base_device::get_current_precision ( const std::complex< float > *  var)

◆ get_current_precision() [5/5]

template<typename T >
std::string base_device::get_current_precision ( const T var)

◆ get_device_type()

template<typename Device >
base_device::AbacusDevice_t base_device::get_device_type ( const Device *  dev)
Here is the caller graph for this function:

◆ get_device_type< base_device::DEVICE_CPU >()

template<>
base_device::AbacusDevice_t base_device::get_device_type< base_device::DEVICE_CPU > ( const base_device::DEVICE_CPU *  dev)
Here is the caller graph for this function:

◆ get_device_type< base_device::DEVICE_GPU >()

template<>
base_device::AbacusDevice_t base_device::get_device_type< base_device::DEVICE_GPU > ( const base_device::DEVICE_GPU *  dev)