isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Friends | List of all members
isce3::cuda::core::Device Class Reference

A CUDA-enabled device. More...

#include <Device.h>

Public Member Functions

 Device (int id)
 Construct a new Device object. More...
 
int id () const noexcept
 Return the (0-based) device index. More...
 
std::string name () const
 Return a string identifying the device. More...
 
size_t totalGlobalMem () const
 Get the total global memory capacity in bytes. More...
 
ComputeCapability computeCapability () const
 Get the compute capability. More...
 

Friends

bool operator== (Device lhs, Device rhs) noexcept
 
bool operator!= (Device lhs, Device rhs) noexcept
 

Detailed Description

A CUDA-enabled device.

Constructor & Destructor Documentation

isce3::cuda::core::Device::Device ( int  id)

Construct a new Device object.

Does not change the currently active CUDA device.

Exceptions
isce::except::InvalidArgumentif the specified device is a not a valid CUDA device
Parameters
[in]idDevice index (0-based)

Member Function Documentation

ComputeCapability isce3::cuda::core::Device::computeCapability ( ) const

Get the compute capability.

int isce3::cuda::core::Device::id ( ) const
inlinenoexcept

Return the (0-based) device index.

std::string isce3::cuda::core::Device::name ( ) const

Return a string identifying the device.

size_t isce3::cuda::core::Device::totalGlobalMem ( ) const

Get the total global memory capacity in bytes.


The documentation for this class was generated from the following file:

Generated for ISCE3.0 by doxygen 1.8.5.