PIP 5.6.1
Platform-Independent Primitives
Public Member Functions | Public Attributes | List of all members
PIOpenCL::Device Struct Reference

Description of a discovered OpenCL device. More...

#include <piopencl.h>

Public Member Functions

 Device ()
 Constructs an invalid device description.
 
bool isValid () const
 Returns true when the native device handle is available.
 
PIString displayText () const
 Returns a short display label with name and device version.
 

Public Attributes

void * id
 Native OpenCL device handle.
 
void * platform_id
 Native platform handle that owns the device.
 
PIString name
 Human-readable device name.
 
PIString vendor
 Device vendor name.
 
PIString device_version
 OpenCL device version string.
 
PIString driver_version
 Driver version string.
 
int max_compute_units
 Maximum number of compute units.
 
int max_clock_frequency
 Maximum clock frequency in MHz.
 
ullong max_memory_size
 Global memory size in bytes.
 

Detailed Description

Description of a discovered OpenCL device.