class xf::fintech::Device

#include "xf_fintech_device.hpp"

Overview

A class representing an individual accelerator card.

// enums

enum DeviceType

Methods

getCLDevice

cl::Device getCLDevice (void)

Retrieves the enclosed OpenCL device object. This allows the user to then invoke any standard OpenCL functions that require a cl::Device object

getName

std::string getName (void)

Retrieves the name of this device object.

getDeviceType

DeviceType getDeviceType (void)

Retrieves the device type of this object (or DeviceType::UNKNOWN if is not a supported device)

getDeviceTypeString

std::string getDeviceTypeString (void)

Converts a string representation of the device type

claim

int claim (OCLController* owner)

Claim the device

release

int release (OCLController* owner)

Release the device