ASL  0.1.7
Advanced Simulation Library
Public Member Functions | Public Attributes | List of all members
acl::Hardware Class Reference

Provides access to the underlying hardware. More...

#include <aclHardware.h>

Collaboration diagram for acl::Hardware:
Collaboration graph
[legend]

Public Member Functions

 Hardware ()
 
void setDefaultQueue (const std::string &platform="", const std::string &device="")
 
std::string getDevicesInfo ()
 
std::string getDefaultDeviceInfo ()
 
 Hardware ()
 
void setDefaultQueue (const std::string &platform="", const std::string &device="")
 
std::string getDevicesInfo ()
 
std::string getDefaultDeviceInfo ()
 

Public Attributes

std::vector< CommandQueuequeues
 
CommandQueue defaultQueue
 

Detailed Description

Provides access to the underlying hardware.

Definition at line 141 of file aclHardware.h.

Constructor & Destructor Documentation

◆ Hardware() [1/2]

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.

◆ Hardware() [2/2]

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.

Member Function Documentation

◆ getDefaultDeviceInfo() [1/2]

std::string acl::Hardware::getDefaultDeviceInfo ( )

◆ getDefaultDeviceInfo() [2/2]

std::string acl::Hardware::getDefaultDeviceInfo ( )

◆ getDevicesInfo() [1/2]

std::string acl::Hardware::getDevicesInfo ( )

◆ getDevicesInfo() [2/2]

std::string acl::Hardware::getDevicesInfo ( )

◆ setDefaultQueue() [1/2]

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.

◆ setDefaultQueue() [2/2]

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.

Member Data Documentation

◆ defaultQueue

CommandQueue acl::Hardware::defaultQueue

Definition at line 154 of file aclHardware.h.

◆ queues

std::vector< CommandQueue > acl::Hardware::queues

Definition at line 153 of file aclHardware.h.


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