yacx-YetAnotherCudaExecutor  0.6.2
wrapper to easily compile and execute cuda kernels
Classes | Public Member Functions | Friends | List of all members
yacx::Device Class Reference
Inheritance diagram for yacx::Device:
yacx::JNIHandle

Public Member Functions

 Device (int ordinal)
 Constructs a Device with the CUDA capable device with passed devicenumber.
 
 Device ()
 Constructs a Device with the first CUDA capable device it finds.
 
int minor_version () const
 
int major_version () const
 
std::string name () const
 
CUcontext getPrimaryContext ()
 
CUstream getUploadStream ()
 
CUstream getLaunchStream ()
 
CUstream getDownloadStream ()
 
size_t total_memory () const
 
std::string uuid () const
 
dim3 max_block_dim ()
 
dim3 max_grid_dim ()
 
size_t max_shared_memory_per_block () const
 
size_t max_shared_memory_per_multiprocessor () const
 
size_t multiprocessor_count () const
 
int clock_rate () const
 
int memory_clock_rate () const
 
int bus_width () const
 
int attribute (CUdevice_attribute attrib) const
 

Friends

class Devices
 

Detailed Description

Examples
docs/kernel_launch.cpp, example_matrix_multiply.cpp, example_program.cpp, and example_saxpy.cpp.

Member Function Documentation

◆ attribute()

int Device::attribute ( CUdevice_attribute  attrib) const

Returns information about the device, see CUdevice_attribute

Parameters
attribCUDA device attribute
Returns
device attribute value

◆ bus_width()

int yacx::Device::bus_width ( ) const
inline

Global memory bus width in bits

Returns
bus width

◆ clock_rate()

int yacx::Device::clock_rate ( ) const
inline

Peak clock frequency in kilohertz

Returns
peak clock frequency

◆ getDownloadStream()

CUstream Device::getDownloadStream ( )

returns the downloadstream for arguments of this device

Returns
downloadstream

◆ getLaunchStream()

CUstream Device::getLaunchStream ( )

returns the launchstream for arguments of this device

Returns
launchstream

◆ getPrimaryContext()

CUcontext Device::getPrimaryContext ( )

returns the primary context of this device

Returns
primary context

◆ getUploadStream()

CUstream Device::getUploadStream ( )

returns the uploadstream for arguments of this device

Returns
uploadstream

◆ major_version()

int yacx::Device::major_version ( ) const
inline

Major compute capability version number

Returns
version number

◆ max_block_dim()

dim3 Device::max_block_dim ( )

Max blocks available on device

Returns
block returns block with maximum dimension

◆ max_grid_dim()

dim3 Device::max_grid_dim ( )

Max grids available on device

Returns
grid returns grid with maximum dimension

◆ max_shared_memory_per_block()

size_t yacx::Device::max_shared_memory_per_block ( ) const
inline

Maximum shared memory available per block in bytes

Returns
Shared Memory in bytes

◆ max_shared_memory_per_multiprocessor()

size_t yacx::Device::max_shared_memory_per_multiprocessor ( ) const
inline

Maximum shared memory available per multiprocessor in bytes

Returns
Shared Memory in bytes

◆ memory_clock_rate()

int yacx::Device::memory_clock_rate ( ) const
inline

Peak memory clock frequency in kilohertz

Returns
peak memory clock frequency

◆ minor_version()

int yacx::Device::minor_version ( ) const
inline

Minor compute capability version number

Returns
version number

◆ multiprocessor_count()

size_t yacx::Device::multiprocessor_count ( ) const
inline

Number of multiprocessors on device

Returns
number of multiprocessors

◆ name()

std::string yacx::Device::name ( ) const
inline

identifer string for the device

Returns
identifer string

◆ total_memory()

size_t yacx::Device::total_memory ( ) const
inline

Memory available on device for constant variables in a CUDA C kernel in bytes

Returns
Memory in bytes

◆ uuid()

std::string yacx::Device::uuid ( ) const
inline

uuid for the device

Returns
16-byte UUID of the device as hexadecimal string

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