ASL
0.1.7
Advanced Simulation Library
|
Provides access to the underlying hardware. More...
#include <aclHardware.h>
Public Member Functions | |
Hardware () | |
void | setDefaultQueue (const std::string &platform="", const std::string &device="") |
std::string | getDevicesInfo () |
std::string | getDefaultDeviceInfo () |
Public Attributes | |
std::vector< CommandQueue > | queues |
CommandQueue | defaultQueue |
Provides access to the underlying hardware.
Definition at line 141 of file aclHardware.h.
acl::Hardware::Hardware | ( | ) |
OpenCL related initializations are done here. Context, Device list, Command Queue are set up. Default computation queue is set to the first found device.
std::string acl::Hardware::getDefaultDeviceInfo | ( | ) |
std::string acl::Hardware::getDevicesInfo | ( | ) |
void acl::Hardware::setDefaultQueue | ( | const std::string & | platform = "" , |
const std::string & | device = "" |
||
) |
Sets default computation queue identified by platform
and device
. Warns if requested combination is not found.
CommandQueue acl::Hardware::defaultQueue |
Definition at line 154 of file aclHardware.h.
std::vector<CommandQueue> acl::Hardware::queues |
Definition at line 153 of file aclHardware.h.