OPAL_DECLSPEC const opal_datatype_t opal_datatype_loop = OPAL_DATATYPE_INITIALIZER_LOOP(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_end_loop = OPAL_DATATYPE_INITIALIZER_END_LOOP(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_lb = OPAL_DATATYPE_INITIALIZER_LB(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_ub = OPAL_DATATYPE_INITIALIZER_UB(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_int1 = OPAL_DATATYPE_INITIALIZER_INT1(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_int2 = OPAL_DATATYPE_INITIALIZER_INT2(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_int4 = OPAL_DATATYPE_INITIALIZER_INT4(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_int8 = OPAL_DATATYPE_INITIALIZER_INT8(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_int16 = OPAL_DATATYPE_INITIALIZER_INT16(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_uint1 = OPAL_DATATYPE_INITIALIZER_UINT1(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_uint2 = OPAL_DATATYPE_INITIALIZER_UINT2(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_uint4 = OPAL_DATATYPE_INITIALIZER_UINT4(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_uint8 = OPAL_DATATYPE_INITIALIZER_UINT8(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_uint16 = OPAL_DATATYPE_INITIALIZER_UINT16(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_float2 = OPAL_DATATYPE_INITIALIZER_FLOAT2(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_float4 = OPAL_DATATYPE_INITIALIZER_FLOAT4(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_float8 = OPAL_DATATYPE_INITIALIZER_FLOAT8(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_float12 = OPAL_DATATYPE_INITIALIZER_FLOAT12(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_float16 = OPAL_DATATYPE_INITIALIZER_FLOAT16(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_complex8 = OPAL_DATATYPE_INITIALIZER_COMPLEX8(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_complex16 = OPAL_DATATYPE_INITIALIZER_COMPLEX16(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_complex32 = OPAL_DATATYPE_INITIALIZER_COMPLEX32(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_bool = OPAL_DATATYPE_INITIALIZER_BOOL(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_wchar = OPAL_DATATYPE_INITIALIZER_WCHAR(0); OPAL_DECLSPEC const opal_datatype_t opal_datatype_unavailable = OPAL_DATATYPE_INITIALIZER_UNAVAILABLE_NAMED(UNAVAILABLE, 0); OPAL_DECLSPEC dt_elem_desc_t opal_datatype_predefined_elem_desc[2 * OPAL_DATATYPE_MAX_PREDEFINED]; /* NOTE: The order of this array *MUST* match the order in opal_datatype_basicDatatypes */ OPAL_DECLSPEC const size_t opal_datatype_local_sizes[OPAL_DATATYPE_MAX_PREDEFINED] =
#include "rte.h" #include "rte_dt.h" #include "opal/datatype/opal_datatype_internal.h" /* Build-in datatypes declaration * * For initialization we use OPAL internal datatype macros... * it is not "kosher" but we C does not allow to use const for declaration */ const struct rte_dt_t rte_int1 = {OPAL_DATATYPE_INITIALIZER_INT1(0) }; const struct rte_dt_t rte_int2 = {OPAL_DATATYPE_INITIALIZER_INT2(0) }; const struct rte_dt_t rte_int4 = {OPAL_DATATYPE_INITIALIZER_INT4(0) }; const struct rte_dt_t rte_int8 = {OPAL_DATATYPE_INITIALIZER_INT8(0) }; const struct rte_dt_t rte_int16 = {OPAL_DATATYPE_INITIALIZER_INT16(0) }; const struct rte_dt_t rte_uint1 = {OPAL_DATATYPE_INITIALIZER_UINT1(0) }; const struct rte_dt_t rte_uint2 = {OPAL_DATATYPE_INITIALIZER_UINT2(0) }; const struct rte_dt_t rte_uint4 = {OPAL_DATATYPE_INITIALIZER_UINT4(0) }; const struct rte_dt_t rte_uint8 = {OPAL_DATATYPE_INITIALIZER_UINT8(0) }; const struct rte_dt_t rte_uint16 = {OPAL_DATATYPE_INITIALIZER_UINT16(0)}; const struct rte_dt_t rte_float2 = {OPAL_DATATYPE_INITIALIZER_FLOAT2(0)}; const struct rte_dt_t rte_float4 = {OPAL_DATATYPE_INITIALIZER_FLOAT4(0)}; const struct rte_dt_t rte_float8 = {OPAL_DATATYPE_INITIALIZER_FLOAT8(0)}; const struct rte_dt_t rte_float12 = {OPAL_DATATYPE_INITIALIZER_FLOAT12(0)}; const struct rte_dt_t rte_float16 = {OPAL_DATATYPE_INITIALIZER_FLOAT16(0)}; const struct rte_dt_t rte_complex8 = {OPAL_DATATYPE_INITIALIZER_COMPLEX8(0)}; const struct rte_dt_t rte_complex16 = {OPAL_DATATYPE_INITIALIZER_COMPLEX16(0)}; const struct rte_dt_t rte_complex32 = {OPAL_DATATYPE_INITIALIZER_COMPLEX32(0)}; const struct rte_dt_t rte_bool = {OPAL_DATATYPE_INITIALIZER_BOOL(0) }; const struct rte_dt_t rte_wchar = {OPAL_DATATYPE_INITIALIZER_WCHAR(0) };