|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATHCUDACORE_INFO_H
6 #define ATHCUDACORE_INFO_H
34 const std::vector< std::string >&
names()
const;
67 #endif // ATHCUDACORE_INFO_H
int m_nDevices
The number of CUDA devices available at runtime.
static const Info & instance()
Singleton accessor function.
Class providing information about the CUDA devices at runtime.
const std::vector< std::size_t > & totalMemory() const
Get the total amount of memory for all devices.
std::ostream & operator<<(std::ostream &out, const AthCUDA::Info &info)
Print operator for AthCUDA::Info.
const std::vector< bool > & concurrentKernels() const
Get the multi-kernel capabilities of all devices.
int nDevices() const
Get the number of available devices.
std::vector< std::string > m_names
The names of all available devices.
const std::vector< std::string > & names() const
Get the names of all of the devices.
std::vector< std::size_t > m_totalMemory
The total amount of memory for all devices.
Info()
The constructor is private to implement the singleton behaviour.
std::vector< bool > m_concurrentKernels
The multi-kernel capabilities of all devices.
std::vector< int > m_maxThreadsPerBlock
The maximum number of threads per block for each available device.
void print() const
Print the properties of all detected devices.
const std::vector< int > & maxThreadsPerBlock() const
Get the maximum number of threads per execution block on all devices.