DASH
0.3.0
|
Definitions of types used in the DART interface. More...
![]() |
Classes | |
struct | dart_global_unit |
Data type for storing a global unit ID. More... | |
struct | dart_local_unit |
Data type for storing a unit ID relative to a team. More... | |
struct | dart_hwinfo_t |
Hardware locality information for a single locality domain. More... | |
struct | dart_domain_locality_s |
A domain is a group of processing entities such as cores in a specific NUMA domain or a Intel MIC entity. More... | |
struct | dart_unit_locality_t |
Locality and topology information of a single unit. More... | |
struct | dart_config_t |
Macros | |
#define | DART_OP_MINMAX_MIN 0 |
Position of the minimum element in MINMAX tuple. More... | |
#define | DART_OP_MINMAX_MAX 1 |
Position of the maximum element in MINMAX tuple. More... | |
#define | DART_UNDEFINED_UNIT_ID ((dart_unit_t)(-1)) |
Undefined unit ID. More... | |
#define | DART_TEAM_UNIT_ID(__u) (dart_create_team_unit(__u)) |
Create a dart_team_unit_t from a dart_unit_t. More... | |
#define | DART_GLOBAL_UNIT_ID(__u) (dart_create_global_unit(__u)) |
Create a dart_global_unit_t from a dart_unit_t. More... | |
#define | DART_UNDEFINED_TEAM_UNIT_ID DART_TEAM_UNIT_ID(DART_UNDEFINED_UNIT_ID) |
A dart_team_unit_t representing an undefined team-relative unit. More... | |
#define | DART_UNDEFINED_GLOBAL_UNIT_ID DART_GLOBAL_UNIT_ID(DART_UNDEFINED_UNIT_ID) |
A dart_global_unit_t representing an undefined global unit. More... | |
#define | DART_UNDEFINED_TEAM_ID ((dart_team_t)(-1)) |
Undefined team ID. More... | |
Typedefs | |
typedef intptr_t | dart_datatype_t |
Raw data types supported by the DART interface. More... | |
typedef int32_t | dart_unit_t |
Data type for storing a unit ID. More... | |
typedef struct dart_global_unit | dart_global_unit_t |
Data type for storing a global unit ID. More... | |
typedef struct dart_local_unit | dart_team_unit_t |
Data type for storing a unit ID relative to a team. More... | |
typedef int16_t | dart_team_t |
Data type for storing a team ID. More... | |
Functions | |
static dart_team_unit_t | dart_create_team_unit (dart_unit_t unit) |
Create a dart_team_unit_t from a dart_unit_t. More... | |
static dart_global_unit_t | dart_create_global_unit (dart_unit_t unit) |
Create a dart_global_unit_t from a dart_unit_t. More... | |
dart_ret_t | dart_type_create_strided (dart_datatype_t basetype, size_t stride, size_t blocklen, dart_datatype_t *newtype) |
Create a strided data type using blocks of size blocklen and a stride of stride . More... | |
dart_ret_t | dart_type_create_indexed (dart_datatype_t basetype, size_t count, const size_t blocklen[], const size_t offset[], dart_datatype_t *newtype) |
Create an indexed data type using count blocks of size blocklen [i] with offsets offset [i] for each 0 <= i < count . More... | |
dart_ret_t | dart_type_create_custom (size_t num_bytes, dart_datatype_t *newtype) |
Create a custom data type of size num_bytes bytes. More... | |
dart_ret_t | dart_type_destroy (dart_datatype_t *dart_type) |
Destroy a data type that was previously created using dart_type_create_strided or dart_type_create_indexed. More... | |
Definitions of types used in the DART interface.
#define DART_GLOBAL_UNIT_ID | ( | __u | ) | (dart_create_global_unit(__u)) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create a dart_global_unit_t
from a dart_unit_t.
This is a wrapper for dart_create_global_unit.
Definition at line 228 of file dart_types.h.
#define DART_OP_MINMAX_MAX 1 |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Position of the maximum element in MINMAX tuple.
Definition at line 114 of file dart_types.h.
#define DART_OP_MINMAX_MIN 0 |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Position of the minimum element in MINMAX tuple.
Definition at line 108 of file dart_types.h.
#define DART_TEAM_UNIT_ID | ( | __u | ) | (dart_create_team_unit(__u)) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create a dart_team_unit_t
from a dart_unit_t.
This is a wrapper for dart_create_team_unit.
Definition at line 206 of file dart_types.h.
#define DART_UNDEFINED_GLOBAL_UNIT_ID DART_GLOBAL_UNIT_ID(DART_UNDEFINED_UNIT_ID) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
A dart_global_unit_t representing an undefined global unit.
Definition at line 246 of file dart_types.h.
#define DART_UNDEFINED_TEAM_ID ((dart_team_t)(-1)) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Undefined team ID.
Definition at line 258 of file dart_types.h.
#define DART_UNDEFINED_TEAM_UNIT_ID DART_TEAM_UNIT_ID(DART_UNDEFINED_UNIT_ID) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
A dart_team_unit_t representing an undefined team-relative unit.
Definition at line 237 of file dart_types.h.
Referenced by dash::UnorderedMapLocalIter< Key, Mapped, Hash, Pred, LMemSpace >::operator--().
#define DART_UNDEFINED_UNIT_ID ((dart_unit_t)(-1)) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Undefined unit ID.
Definition at line 160 of file dart_types.h.
Referenced by dash::TilePattern< NumDimensions, Arrangement, IndexType >::underfilled_blocksize().
typedef intptr_t dart_datatype_t |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Raw data types supported by the DART interface.
Definition at line 121 of file dart_types.h.
typedef struct dart_global_unit dart_global_unit_t |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Data type for storing a global unit ID.
typedef int16_t dart_team_t |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Data type for storing a team ID.
Definition at line 252 of file dart_types.h.
typedef struct dart_local_unit dart_team_unit_t |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Data type for storing a unit ID relative to a team.
typedef int32_t dart_unit_t |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Data type for storing a unit ID.
Definition at line 154 of file dart_types.h.
anonymous enum |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Return values of DART applications.
Enumerator | |
---|---|
DART_EXIT_SUCCESS | Signal success. |
DART_EXIT_ABORT | Signal generic abort. |
DART_EXIT_ASSERT | Signal abort after failed assert. |
Definition at line 54 of file dart_types.h.
anonymous enum |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Operations to be used for certain RMA and collective operations.
Definition at line 68 of file dart_types.h.
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Scopes of locality domains.
Enum values are ordered by scope level in the locality hierarchy. Consequently, the comparison (scope_a > scope_b) is valid and evaluates to
true
if scope_a
is a parent scope of scope_b
.
Definition at line 290 of file dart_types.h.
enum dart_ret_t |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Return values of functions in the DART interface.
Definition at line 30 of file dart_types.h.
|
inlinestatic |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create a dart_global_unit_t
from a dart_unit_t.
Definition at line 215 of file dart_types.h.
|
inlinestatic |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create a dart_team_unit_t
from a dart_unit_t.
Definition at line 193 of file dart_types.h.
dart_ret_t dart_type_create_custom | ( | size_t | num_bytes, |
dart_datatype_t * | newtype | ||
) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create a custom data type of size num_bytes
bytes.
num_bytes | The size of the custom type in bytes. | |
[out] | newtype | The newly created data type. |
dart_ret_t dart_type_create_indexed | ( | dart_datatype_t | basetype, |
size_t | count, | ||
const size_t | blocklen[], | ||
const size_t | offset[], | ||
dart_datatype_t * | newtype | ||
) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create an indexed data type using count
blocks of size blocklen
[i] with offsets offset
[i] for each 0 <= i < count
.
The number of elements copied using the resulting datatype has to be a multiple of Sum(blocklen
[0:i]).
basetype | The type of elements in the blocks. | |
count | The number of blocks. | |
blocklen | The number of elements of type basetype in block[i]. | |
offset | The offset of block[i]. | |
[out] | newtype | The newly created data type. |
dart_ret_t dart_type_create_strided | ( | dart_datatype_t | basetype, |
size_t | stride, | ||
size_t | blocklen, | ||
dart_datatype_t * | newtype | ||
) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Create a strided data type using blocks of size blocklen
and a stride of stride
.
The number of elements copied using the resulting datatype has to be a multiple of blocklen
.
basetype | The type of elements in the blocks. | |
stride | The stride between blocks. | |
blocklen | The number of elements of type basetype in each block. | |
[out] | newtype | The newly created data type. |
dart_ret_t dart_type_destroy | ( | dart_datatype_t * | dart_type | ) |
#include </tmp/tmporruphar/dart-if/include/dash/dart/if/dart_types.h>
Destroy a data type that was previously created using dart_type_create_strided or dart_type_create_indexed.
Data types can be destroyed before pending operations using that type have completed. However, after destruction a type may not be used to start new operations.
dart_type | The type to be destroyed. |