AQUAgpusph 4.1.2
|
Set of definitions and macros related with the implementation. More...
#include <string>
#include <config.h>
#include <CL/cl.h>
Go to the source code of this file.
Data Structures | |
class | mat |
Matrix of real components. More... | |
Macros | |
#define | XSTR(x) STR(x) |
Just an alias for STR. | |
#define | STR(x) #x |
An auxiliary macro to can print defined variables in compilation time. | |
#define | vec2 cl_float2 |
Vector of 2 real components. | |
#define | vec3 cl_float3 |
Vector of 3 real components. | |
#define | vec4 cl_float4 |
Vector of 4 real components. | |
#define | ivec2 cl_int2 |
Vector of 2 integer components. | |
#define | ivec3 cl_int3 |
Vector of 3 integer components. | |
#define | ivec4 cl_int4 |
Vector of 4 integer components. | |
#define | uivec2 cl_uint2 |
Vector of 2 unsigned integer components. | |
#define | uivec3 cl_uint3 |
Vector of 3 unsigned integer components. | |
#define | uivec4 cl_uint4 |
Vector of 4 unsigned integer components. | |
#define | vec vec4 |
Vector of real components. | |
#define | ivec ivec4 |
Vector of integer components. | |
#define | uivec uivec4 |
Vector of unsigned integer components. | |
#define | matrix cl_float16 |
Matrix of float numbers. | |
#define | __CL_MIN_LOCALSIZE__ 64 |
Minimum local work size to execute kernels. | |
#define | __CL_MAX_LOCALSIZE__ 1024 |
Maximum local work size to execute kernels. | |
#define | __ERROR_SHOW_TIME__ 0u |
Time let to the user to notice and read the error. | |
#define | __METHOD_CLASS_NAME__ methodAndClassName(__PRETTY_FUNCTION__) |
Returns automatically the current class and function names. | |
Functions | |
const std::string | methodAndClassName (const std::string &pretty_function) |
Function to extract the class and function from <strong class= macro. | |
Variables | |
static std::string | methodAndClassName_str |
Helper string for methodAndClassName function. | |
Set of definitions and macros related with the implementation.
#define __CL_MAX_LOCALSIZE__ 1024 |
Maximum local work size to execute kernels.
The selected value have been tested in the following platforms:
#define __CL_MIN_LOCALSIZE__ 64 |
Minimum local work size to execute kernels.
The selected value have been tested in the following platforms:
#define __ERROR_SHOW_TIME__ 0u |
Time let to the user to notice and read the error.
0 seconds if ncurses is disabled, and 3 seconds otherwise.
#define __METHOD_CLASS_NAME__ methodAndClassName(__PRETTY_FUNCTION__) |
Returns automatically the current class and function names.
#define ivec ivec4 |
Vector of integer components.
The number of components depends on weather the 2D version or 3D version is compiled:
#define ivec2 cl_int2 |
Vector of 2 integer components.
#define ivec3 cl_int3 |
Vector of 3 integer components.
#define ivec4 cl_int4 |
Vector of 4 integer components.
#define matrix cl_float16 |
Matrix of float numbers.
The number of components depends on weather the 2D version or 3D version is compiled:
#define STR | ( | x | ) | #x |
An auxiliary macro to can print defined variables in compilation time.
For instance:
#define uivec uivec4 |
Vector of unsigned integer components.
The number of components depends on weather the 2D version or 3D version is compiled:
#define uivec2 cl_uint2 |
Vector of 2 unsigned integer components.
#define uivec3 cl_uint3 |
Vector of 3 unsigned integer components.
#define uivec4 cl_uint4 |
Vector of 4 unsigned integer components.
#define vec vec4 |
Vector of real components.
The number of components depends on weather the 2D version or 3D version is compiled:
#define vec2 cl_float2 |
Vector of 2 real components.
#define vec3 cl_float3 |
Vector of 3 real components.
#define vec4 cl_float4 |
Vector of 4 real components.
|
inline |
Function to extract the class and function from <strong class= macro.
The GNU compiler (GCC) macro <strong class= contains a lot of information about the name space, the returning value, and the parameters.
In order to print log information this data should be simplified.
pretty_function | GCC <strong class= macro |
|
static |
Helper string for methodAndClassName function.