Accelerated Computation Engine
|
#include <ace_settings.h>
Public Member Functions | |
int | openCLPlatform () const |
int | openCLDevice () const |
OpenCL::Device * | openCLDevicePointer () const |
int | threadSize () const |
int | bufferSize () const |
QString | chunkDir () const |
QString | chunkPrefix () const |
QString | chunkExtension () const |
bool | loggingEnabled () const |
int | loggingPort () const |
void | setOpenCLPlatform (int index) |
void | setOpenCLDevice (int index) |
void | setThreadSize (int size) |
void | setBufferSize (int size) |
void | setChunkDir (const QString &path) |
void | setChunkPrefix (const QString &prefix) |
void | setChunkExtension (const QString &extension) |
void | setLoggingEnabled (int state) |
void | setLoggingPort (int port) |
Static Public Member Functions | |
static QString | versionString () |
static QString | organization () |
static QString | application () |
static QString | appVersionString () |
static int | appMajorVersion () |
static int | appMinorVersion () |
static int | appRevision () |
static void | initialize (QString organization, QString application, int majorVersion, int minorVersion, int revision) |
static Settings & | instance () |
Static Public Attributes | |
static constexpr int | _majorVersion {MAJOR_VERSION} |
static constexpr int | _minorVersion {MINOR_VERSION} |
static constexpr int | _revision {REVISION} |
This is a singleton class that holds all global settings for ACE and the program that uses it. Before calling on the instance of this class the static initialize method must be called first or this class will fail to getting the correct settings for the program using ACE. If any persistent setting is updated this class will save it using a qt settings object so it persists through to other instances of the program.
|
static |
Returns the name of the application using ACE.
|
static |
Returns the major version of the application using ACE.
|
static |
Returns the minor version of the application using ACE.
|
static |
The revision of the application using ACE.
|
static |
Returns the version of the application using ACE as a string.
int Settings::bufferSize | ( | ) | const |
Returns the MPI buffer size used to determine the number of blocks are buffered for input to each slave node.
QString Settings::chunkDir | ( | ) | const |
Returns the working directory path for chunk runs.
QString Settings::chunkExtension | ( | ) | const |
Returns the chunk file extension.
QString Settings::chunkPrefix | ( | ) | const |
Returns the chunk file name prefix.
|
static |
Initializes and sets the organization name, name, and version numbers of the application using ACE. This must be called before the settings singleton instance is created. The application name cannot be "ace" or an exception is thrown.
organization | Organization name of the application using ACE. |
application | Name of the application using ACE. |
majorVersion | Major version of the application using ACE. |
minorVersion | Minor version of the application using ACE. |
revision | Revision of the application using ACE. |
|
static |
Returns a reference to the singleton instance of this class. If the singleton instance has not yet been created then it is before returning.
bool Settings::loggingEnabled | ( | ) | const |
Returns the logging enabled state.
int Settings::loggingPort | ( | ) | const |
Returns the logging port number.
int Settings::openCLDevice | ( | ) | const |
OpenCL::Device * Settings::openCLDevicePointer | ( | ) | const |
int Settings::openCLPlatform | ( | ) | const |
|
static |
Returns the organization of the application using ACE.
void Settings::setBufferSize | ( | int | size | ) |
Sets the MPI buffer size used to determine the number of blocks are buffered for input to each slave node.
size | new MPI buffer size. |
void Settings::setChunkDir | ( | const QString & | path | ) |
Sets the working directory for chunk runs.
path | Working directory path for chunk runs. |
void Settings::setChunkExtension | ( | const QString & | extension | ) |
Sets the chunk file extension.
extension | New chunk file extension. |
void Settings::setChunkPrefix | ( | const QString & | prefix | ) |
Sets the chunk file name prefix.
prefix | New chunk file name prefix. |
void Settings::setLoggingEnabled | ( | int | state | ) |
Set the logging enabled state.
state | New logging enabled state. |
void Settings::setLoggingPort | ( | int | port | ) |
Set the logging port.
port | New logging port number. |
void Settings::setOpenCLDevice | ( | int | index | ) |
void Settings::setOpenCLPlatform | ( | int | index | ) |
void Settings::setThreadSize | ( | int | size | ) |
Sets the thread size for accelerated runs. The size must be one or greater or an exception is thrown.
size | Thread size for accelerated runs. |
int Settings::threadSize | ( | ) | const |
Returns the thread size for accelerated runs.
|
static |
Returns the version of the ACE library as a string.
|
static |
The major version of the ACE library.
|
static |
The minor version of the ACE library.
|
static |
The revision of the ACE library.