AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Aqua::InputOutput::ProblemSetup::sphSettings::device Class Reference

General program settings. More...

#include <ProblemSetup.h>

Public Member Functions

 device (const unsigned int platform_index, const unsigned int device_index, const cl_device_type t=CL_DEVICE_TYPE_ALL)
 Constructor.
 
 ~device ()
 Destructor.
 

Data Fields

unsigned int platform_id
 Index of the OpenCL platform to use.
 
unsigned int device_id
 Index of the OpenCL device to use in the platform platform_id.
 
cl_device_type device_type
 Type of devices that will be considered in the platform platform_id.
 

Detailed Description

General program settings.

These setting are set between the following XML tags:

<Settings>
</Settings>
See also
Aqua::InputOutput::ProblemSetup

Constructor & Destructor Documentation

◆ device()

Aqua::InputOutput::ProblemSetup::sphSettings::device::device ( const unsigned int  platform_index,
const unsigned int  device_index,
const cl_device_type  t = CL_DEVICE_TYPE_ALL 
)
inline

Constructor.

Parameters
platform_indexIndex of the OpenCL platform to use
device_indexIndex of the OpenCL device to use from the platform
tType of OpenCL device

◆ ~device()

Aqua::InputOutput::ProblemSetup::sphSettings::device::~device ( )
inline

Destructor.

Field Documentation

◆ device_id

unsigned int Aqua::InputOutput::ProblemSetup::sphSettings::device::device_id

Index of the OpenCL device to use in the platform platform_id.

AQUAgpusph is providing the available OpenCL platforms, and the devices into them.

This field can be set with the tag Device, for instance: <Device platform="0" device="0" type="GPU" />

Remarks
The index of the device is refered to the available ones compatibles with the selected type device_type.

◆ device_type

cl_device_type Aqua::InputOutput::ProblemSetup::sphSettings::device::device_type

Type of devices that will be considered in the platform platform_id.

This field can be set with the tag Device, for instance: <Device platform="0" device="0" type="GPU" />

See also
device_id.

◆ platform_id

unsigned int Aqua::InputOutput::ProblemSetup::sphSettings::device::platform_id

Index of the OpenCL platform to use.

AQUAgpusph is providing the available OpenCL platforms, and the devices into them.

This field can be set with the tag Device, for instance: <Device platform="0" device="0" type="GPU" />


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