DPC++ Runtime
Runtime libraries for oneAPI DPC++
OCLV::OpenCLVersion Class Reference

#include <opencl/pi_opencl.hpp>

Collaboration diagram for OCLV::OpenCLVersion:

Public Member Functions

 OpenCLVersion ()
 
 OpenCLVersion (unsigned int ocl_major, unsigned int ocl_minor)
 
 OpenCLVersion (const char *version)
 
 OpenCLVersion (const std::string &version)
 
bool operator== (const OpenCLVersion &v) const
 
bool operator!= (const OpenCLVersion &v) const
 
bool operator< (const OpenCLVersion &v) const
 
bool operator> (const OpenCLVersion &v) const
 
bool operator<= (const OpenCLVersion &v) const
 
bool operator>= (const OpenCLVersion &v) const
 
bool isValid () const
 
int getMajor () const
 
int getMinor () const
 

Protected Attributes

unsigned int ocl_major
 
unsigned int ocl_minor
 

Detailed Description

Definition at line 32 of file pi_opencl.hpp.

Constructor & Destructor Documentation

◆ OpenCLVersion() [1/4]

OCLV::OpenCLVersion::OpenCLVersion ( )
inline

Definition at line 38 of file pi_opencl.hpp.

◆ OpenCLVersion() [2/4]

OCLV::OpenCLVersion::OpenCLVersion ( unsigned int  ocl_major,
unsigned int  ocl_minor 
)
inline

Definition at line 40 of file pi_opencl.hpp.

References isValid(), ocl_major, and ocl_minor.

◆ OpenCLVersion() [3/4]

OCLV::OpenCLVersion::OpenCLVersion ( const char *  version)
inline

Definition at line 46 of file pi_opencl.hpp.

◆ OpenCLVersion() [4/4]

OCLV::OpenCLVersion::OpenCLVersion ( const std::string &  version)
inline

Definition at line 48 of file pi_opencl.hpp.

References isValid(), ocl_major, and ocl_minor.

Member Function Documentation

◆ getMajor()

int OCLV::OpenCLVersion::getMajor ( ) const
inline

Definition at line 104 of file pi_opencl.hpp.

References ocl_major.

◆ getMinor()

int OCLV::OpenCLVersion::getMinor ( ) const
inline

Definition at line 105 of file pi_opencl.hpp.

References ocl_minor.

◆ isValid()

bool OCLV::OpenCLVersion::isValid ( ) const
inline

Definition at line 90 of file pi_opencl.hpp.

References ocl_major, and ocl_minor.

Referenced by getDeviceVersion(), getPlatformVersion(), and OpenCLVersion().

◆ operator!=()

bool OCLV::OpenCLVersion::operator!= ( const OpenCLVersion v) const
inline

Definition at line 71 of file pi_opencl.hpp.

◆ operator<()

bool OCLV::OpenCLVersion::operator< ( const OpenCLVersion v) const
inline

Definition at line 73 of file pi_opencl.hpp.

References ocl_major, and ocl_minor.

◆ operator<=()

bool OCLV::OpenCLVersion::operator<= ( const OpenCLVersion v) const
inline

Definition at line 82 of file pi_opencl.hpp.

◆ operator==()

bool OCLV::OpenCLVersion::operator== ( const OpenCLVersion v) const
inline

Definition at line 67 of file pi_opencl.hpp.

References ocl_major, and ocl_minor.

◆ operator>()

bool OCLV::OpenCLVersion::operator> ( const OpenCLVersion v) const
inline

Definition at line 80 of file pi_opencl.hpp.

◆ operator>=()

bool OCLV::OpenCLVersion::operator>= ( const OpenCLVersion v) const
inline

Definition at line 86 of file pi_opencl.hpp.

Member Data Documentation

◆ ocl_major

unsigned int OCLV::OpenCLVersion::ocl_major
protected

Definition at line 34 of file pi_opencl.hpp.

Referenced by getMajor(), isValid(), OpenCLVersion(), operator<(), and operator==().

◆ ocl_minor

unsigned int OCLV::OpenCLVersion::ocl_minor
protected

Definition at line 35 of file pi_opencl.hpp.

Referenced by getMinor(), isValid(), OpenCLVersion(), operator<(), and operator==().


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