|
AQUAgpusph 5.0.4
|
Set of definitions and macros related with the implementation. More...
#include <string>#include "aquagpusph/config.h"#include <CL/cl.h>#include <boost/current_function.hpp>

Go to the source code of this file.
Macros | |
| #define | XSTR(x) |
| Just an alias for STR. | |
| #define | STR(x) |
| An auxiliary macro to can print defined variables in compilation time. | |
| #define | DECLDIR |
| Prefix to export C functions on the compiled library. | |
| #define | icl cl_int |
| Signed integer number. | |
| #define | lcl cl_long |
| Signed 64bits integer number. | |
| #define | uicl cl_uint |
| Unsigned integer number. | |
| #define | ulcl cl_ulong |
| #define | fcl cl_float |
| Floating point number. | |
| #define | dcl cl_double |
| #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 | vec8 cl_float8 |
| Vector of 8 real components. | |
| #define | vec16 cl_float16 |
| Vector of 16 real components. | |
| #define | matrix2x2 cl_float4 |
| 2D matrix of float numbers. | |
| #define | matrix4x4 cl_float16 |
| 3D matrix of float numbers. | |
| #define | dvec2 cl_double2 |
| Vector of 2 64bits real components. | |
| #define | dvec3 cl_double3 |
| Vector of 3 64bits real components. | |
| #define | dvec4 cl_double4 |
| Vector of 4 64bits real components. | |
| #define | dvec8 cl_double8 |
| Vector of 8 64bits real components. | |
| #define | dvec16 cl_double16 |
| Vector of 16 64bits 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 | ivec8 cl_int8 |
| Vector of 8 integer components. | |
| #define | ivec16 cl_int16 |
| Vector of 16 integer components. | |
| #define | lvec2 cl_long2 |
| Vector of 2 64bits integer components. | |
| #define | lvec3 cl_long3 |
| Vector of 3 64bits integer components. | |
| #define | lvec4 cl_long4 |
| Vector of 4 64bits integer components. | |
| #define | lvec8 cl_long8 |
| Vector of 8 64bits integer components. | |
| #define | lvec16 cl_long16 |
| Vector of 16 64bits 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 | uivec8 cl_uint8 |
| Vector of 8 unsigned integer components. | |
| #define | uivec16 cl_uint16 |
| Vector of 16 unsigned integer components. | |
| #define | ulvec2 cl_ulong2 |
| Vector of 2 64bits unsigned integer components. | |
| #define | ulvec3 cl_ulong3 |
| Vector of 3 64bits unsigned integer components. | |
| #define | ulvec4 cl_ulong4 |
| Vector of 4 64bits unsigned integer components. | |
| #define | ulvec8 cl_ulong8 |
| Vector of 8 64bits unsigned integer components. | |
| #define | ulvec16 cl_ulong16 |
| Vector of 16 64bits unsigned integer components. | |
| #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 | __METHOD_CLASS_NAME__ methodAndClassName(BOOST_CURRENT_FUNCTION) |
| Returns automatically the current class and function names. | |
| #define | UNUSED_PARAM |
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 __METHOD_CLASS_NAME__ methodAndClassName(BOOST_CURRENT_FUNCTION) |
Returns automatically the current class and function names.
| #define dcl cl_double |
| #define DECLDIR |
Prefix to export C functions on the compiled library.
| #define dvec16 cl_double16 |
Vector of 16 64bits real components.
| #define dvec2 cl_double2 |
Vector of 2 64bits real components.
| #define dvec3 cl_double3 |
Vector of 3 64bits real components.
| #define dvec4 cl_double4 |
Vector of 4 64bits real components.
| #define dvec8 cl_double8 |
Vector of 8 64bits real components.
| #define fcl cl_float |
Floating point number.
Double precission floating point number.
| #define icl cl_int |
Signed integer number.
| #define ivec16 cl_int16 |
Vector of 16 integer 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 ivec8 cl_int8 |
Vector of 8 integer components.
| #define lcl cl_long |
Signed 64bits integer number.
Unsigned 64bits integer number.
| #define lvec16 cl_long16 |
Vector of 16 64bits integer components.
| #define lvec2 cl_long2 |
Vector of 2 64bits integer components.
| #define lvec3 cl_long3 |
Vector of 3 64bits integer components.
| #define lvec4 cl_long4 |
Vector of 4 64bits integer components.
| #define lvec8 cl_long8 |
Vector of 8 64bits integer components.
| #define matrix2x2 cl_float4 |
2D matrix of float numbers.
| #define matrix4x4 cl_float16 |
3D matrix of float numbers.
| #define STR | ( | x | ) |
An auxiliary macro to can print defined variables in compilation time.
For instance:
| #define uicl cl_uint |
Unsigned integer number.
| #define uivec16 cl_uint16 |
Vector of 16 unsigned 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 uivec8 cl_uint8 |
Vector of 8 unsigned integer components.
| #define ulcl cl_ulong |
| #define ulvec16 cl_ulong16 |
Vector of 16 64bits unsigned integer components.
| #define ulvec2 cl_ulong2 |
Vector of 2 64bits unsigned integer components.
| #define ulvec3 cl_ulong3 |
Vector of 3 64bits unsigned integer components.
| #define ulvec4 cl_ulong4 |
Vector of 4 64bits unsigned integer components.
| #define ulvec8 cl_ulong8 |
Vector of 8 64bits unsigned integer components.
| #define UNUSED_PARAM |
| #define vec16 cl_float16 |
Vector of 16 real components.
| #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 vec8 cl_float8 |
Vector of 8 real components.
| #define XSTR | ( | x | ) |
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.