Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DataCommMode.h File Reference

Contains the DataCommMode enumeration and a function that chooses a data comm mode based on its arguments. More...

Go to the source code of this file.

Enumerations

enum  DataCommMode {
  noData, bitsetData, offsetsData, gidsData,
  onlyData, dataSplitFirst, dataSplit
}
 Enumeration of data communication modes that can be used in synchronization. More...
 

Functions

template<typename DataType >
DataCommMode get_data_mode (size_t num_selected, size_t num_total)
 Given a size of a subset of elements to send and the total number of elements, determine an appropriate data mode to use for sending out the data during synchronization. More...
 

Variables

DataCommMode enforcedDataMode
 If some mode is to be enforced, set this variable. More...
 

Detailed Description

Contains the DataCommMode enumeration and a function that chooses a data comm mode based on its arguments.

Enumeration Type Documentation

Enumeration of data communication modes that can be used in synchronization.

Enumerator
noData 

send no data

bitsetData 
offsetsData 
gidsData 
onlyData 
dataSplitFirst 
dataSplit 

Function Documentation

template<typename DataType >
DataCommMode get_data_mode ( size_t  num_selected,
size_t  num_total 
)

Given a size of a subset of elements to send and the total number of elements, determine an appropriate data mode to use for sending out the data during synchronization.

Template Parameters
DataTypetype of the data to be synchronized
Parameters
num_selectednumber of elements to send out (subset of num_total)
num_totaltotal number of elements that exist
Returns
an appropriate DataCommMode to use for synchronization

Variable Documentation

DataCommMode enforcedDataMode

If some mode is to be enforced, set this variable.

If some mode is to be enforced, set this variable.