Kernel Tuning Toolkit 2.3
 
Loading...
Searching...
No Matches
ktt::DeviceInfo Class Reference

#include <DeviceInfo.h>

Public Member Functions

 DeviceInfo (const DeviceIndex index, const std::string &name)
 
DeviceIndex GetIndex () const
 
const std::string & GetName () const
 
const std::string & GetVendor () const
 
const std::string & GetExtensions () const
 
DeviceType GetDeviceType () const
 
std::string GetDeviceTypeString () const
 
uint64_t GetGlobalMemorySize () const
 
uint64_t GetLocalMemorySize () const
 
uint64_t GetMaxConstantBufferSize () const
 
uint64_t GetMaxWorkGroupSize () const
 
uint32_t GetMaxComputeUnits () const
 
uint32_t GetCudaComputeCapabilityMajor () const
 
uint32_t GetCudaComputeCapabilityMinor () const
 
std::string GetString () const
 
void SetVendor (const std::string &vendor)
 
void SetExtensions (const std::string &extensions)
 
void SetDeviceType (const DeviceType deviceType)
 
void SetGlobalMemorySize (const uint64_t globalMemorySize)
 
void SetLocalMemorySize (const uint64_t localMemorySize)
 
void SetMaxConstantBufferSize (const uint64_t maxConstantBufferSize)
 
void SetMaxWorkGroupSize (const uint64_t maxWorkGroupSize)
 
void SetMaxComputeUnits (const uint32_t maxComputeUnits)
 
void SetCudaComputeCapabilityMajor (const uint32_t capabilityMajor)
 
void SetCudaComputeCapabilityMinor (const uint32_t capabilityMinor)
 

Detailed Description

Class which holds information about a compute API device.

Constructor & Destructor Documentation

◆ DeviceInfo()

ktt::DeviceInfo::DeviceInfo ( const DeviceIndex  index,
const std::string &  name 
)
explicit

Constructor which creates new device info object.

Parameters
indexIndex of device assigned by KTT framework.
nameName of device retrieved from compute API.

Member Function Documentation

◆ GetCudaComputeCapabilityMajor()

uint32_t ktt::DeviceInfo::GetCudaComputeCapabilityMajor ( ) const

Getter for CUDA compute capability major.

Returns
Major compute capability of NVIDIA GPUs with CUDA compute API, zero otherwise.

◆ GetCudaComputeCapabilityMinor()

uint32_t ktt::DeviceInfo::GetCudaComputeCapabilityMinor ( ) const

Getter for CUDA compute capability minor.

Returns
Minor compute capability of NVIDIA GPUs with CUDA compute API, zero otherwise.

◆ GetDeviceType()

DeviceType ktt::DeviceInfo::GetDeviceType ( ) const

Getter for type of device. See DeviceType for more information.

Returns
Type of device.

◆ GetDeviceTypeString()

std::string ktt::DeviceInfo::GetDeviceTypeString ( ) const

Getter for type of device converted to string. See DeviceType for more information.

Returns
Type of device converted to string.

◆ GetExtensions()

const std::string & ktt::DeviceInfo::GetExtensions ( ) const

Getter for list of supported device extensions retrieved from compute API.

Returns
List of supported device extensions retrieved from compute API.

◆ GetGlobalMemorySize()

uint64_t ktt::DeviceInfo::GetGlobalMemorySize ( ) const

Getter for global memory size of device retrieved from compute API.

Returns
Global memory size of device retrieved from compute API.

◆ GetIndex()

DeviceIndex ktt::DeviceInfo::GetIndex ( ) const

Getter for index of device assigned by KTT framework.

Returns
Index of device assigned by KTT framework.

◆ GetLocalMemorySize()

uint64_t ktt::DeviceInfo::GetLocalMemorySize ( ) const

Getter for local memory (shared memory in CUDA) size of device retrieved from compute API.

Returns
Local memory size of device retrieved from compute API.

◆ GetMaxComputeUnits()

uint32_t ktt::DeviceInfo::GetMaxComputeUnits ( ) const

Getter for maximum parallel compute units (multiprocessors in CUDA) count of device retrieved from compute API.

Returns
Maximum parallel compute units count of device retrieved from compute API.

◆ GetMaxConstantBufferSize()

uint64_t ktt::DeviceInfo::GetMaxConstantBufferSize ( ) const

Getter for constant memory size of device retrieved from compute API.

Returns
Constant memory size of device retrieved from compute API.

◆ GetMaxWorkGroupSize()

uint64_t ktt::DeviceInfo::GetMaxWorkGroupSize ( ) const

Getter for maximum work-group (thread block in CUDA) size of device retrieved from compute API.

Returns
Maximum work-group size of device retrieved from compute API.

◆ GetName()

const std::string & ktt::DeviceInfo::GetName ( ) const

Getter for name of device retrieved from compute API.

Returns
Name of device retrieved from compute API.

◆ GetString()

std::string ktt::DeviceInfo::GetString ( ) const

Converts device info to string.

Returns
String containing information about the device.

◆ GetVendor()

const std::string & ktt::DeviceInfo::GetVendor ( ) const

Getter for name of device vendor retrieved from compute API.

Returns
Name of device vendor retrieved from compute API.

◆ SetCudaComputeCapabilityMajor()

void ktt::DeviceInfo::SetCudaComputeCapabilityMajor ( const uint32_t  capabilityMajor)

Setter for CUDA compute capability major.

Parameters
capabilityMajorMajor compute capability of NVIDIA GPUs with CUDA compute API, zero otherwise.

◆ SetCudaComputeCapabilityMinor()

void ktt::DeviceInfo::SetCudaComputeCapabilityMinor ( const uint32_t  capabilityMinor)

Setter for CUDA compute capability minor.

Parameters
capabilityMinorMinor compute capability of NVIDIA GPUs with CUDA compute API, zero otherwise.

◆ SetDeviceType()

void ktt::DeviceInfo::SetDeviceType ( const DeviceType  deviceType)

Setter for type of device.

Parameters
deviceTypeType of device.

◆ SetExtensions()

void ktt::DeviceInfo::SetExtensions ( const std::string &  extensions)

Setter for list of supported device extensions.

Parameters
extensionsList of supported device extensions.

◆ SetGlobalMemorySize()

void ktt::DeviceInfo::SetGlobalMemorySize ( const uint64_t  globalMemorySize)

Setter for global memory size of device.

Parameters
globalMemorySizeGlobal memory size of device.

◆ SetLocalMemorySize()

void ktt::DeviceInfo::SetLocalMemorySize ( const uint64_t  localMemorySize)

Setter for local memory size of device.

Parameters
localMemorySizeLocal memory size of device.

◆ SetMaxComputeUnits()

void ktt::DeviceInfo::SetMaxComputeUnits ( const uint32_t  maxComputeUnits)

Setter for maximum compute units count of device.

Parameters
maxComputeUnitsMaximum compute units count of device.

◆ SetMaxConstantBufferSize()

void ktt::DeviceInfo::SetMaxConstantBufferSize ( const uint64_t  maxConstantBufferSize)

Setter for constant memory size of device.

Parameters
maxConstantBufferSizeConstant memory size of device.

◆ SetMaxWorkGroupSize()

void ktt::DeviceInfo::SetMaxWorkGroupSize ( const uint64_t  maxWorkGroupSize)

Setter for maximum work-group size of device.

Parameters
maxWorkGroupSizeMaximum work-group size of device.

◆ SetVendor()

void ktt::DeviceInfo::SetVendor ( const std::string &  vendor)

Setter for name of device vendor.

Parameters
vendorName of device vendor.

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