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

#include <PlatformInfo.h>

Public Member Functions

 PlatformInfo (const PlatformIndex index, const std::string &name)
 
PlatformIndex GetIndex () const
 
const std::string & GetName () const
 
const std::string & GetVendor () const
 
const std::string & GetVersion () const
 
const std::string & GetExtensions () const
 
std::string GetString () const
 
void SetVendor (const std::string &vendor)
 
void SetVersion (const std::string &version)
 
void SetExtensions (const std::string &extensions)
 

Detailed Description

Class which holds information about a compute API platform.

Constructor & Destructor Documentation

◆ PlatformInfo()

ktt::PlatformInfo::PlatformInfo ( const PlatformIndex  index,
const std::string &  name 
)
explicit

Constructor, which creates new platform info object.

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

Member Function Documentation

◆ GetExtensions()

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

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

Returns
List of supported platform extensions retrieved from compute API.

◆ GetIndex()

PlatformIndex ktt::PlatformInfo::GetIndex ( ) const

Getter for index of platform assigned by KTT framework.

Returns
Index of platform assigned by KTT framework.

◆ GetName()

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

Getter for name of platform retrieved from compute API.

Returns
Name of platform retrieved from compute API.

◆ GetString()

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

Converts platform info to string.

Returns
String containing information about the platform.

◆ GetVendor()

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

Getter for name of platform vendor retrieved from compute API.

Returns
Name of platform vendor retrieved from compute API.

◆ GetVersion()

const std::string & ktt::PlatformInfo::GetVersion ( ) const

Getter for platform version retrieved from compute API.

Returns
Platform version retrieved from compute API.

◆ SetExtensions()

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

Setter for list of supported platform extensions.

Parameters
extensionsList of supported platform extensions.

◆ SetVendor()

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

Setter for name of platform vendor.

Parameters
vendorName of platform vendor.

◆ SetVersion()

void ktt::PlatformInfo::SetVersion ( const std::string &  version)

Setter for platform version.

Parameters
versionPlatform version.

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