isce3 0.25.0
Loading...
Searching...
No Matches
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.
 
int id () const noexcept
 Return the (0-based) device index.
 
std::string name () const
 Return a string identifying the device.
 
size_t totalGlobalMem () const
 Get the total global memory capacity in bytes.
 
ComputeCapability computeCapability () const
 Get the compute capability.
 

Friends

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

Detailed Description

A CUDA-enabled device.

Constructor & Destructor Documentation

◆ Device()

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)

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

Generated for ISCE3.0 by doxygen 1.13.2.