Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Enumerations | Functions
TaskMappingSimulate.cpp File Reference
#include "Zoltan2_TaskMapping.hpp"
#include <Zoltan2_PartitioningProblem.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <string>
#include <Teuchos_RCP.hpp>
#include <Teuchos_Array.hpp>
#include <Teuchos_ParameterList.hpp>
#include "Teuchos_XMLParameterListHelpers.hpp"
#include "Tpetra_MultiVector.hpp"
#include <Tpetra_CrsGraph.hpp>
#include <Tpetra_Map.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_TimerManager.hpp>
#include <Zoltan2_MappingProblem.hpp>
#include <Zoltan2_MappingSolution.hpp>
#include <Zoltan2_EvaluatePartition.hpp>
#include <Zoltan2_EvaluateMapping.hpp>
Include dependency graph for TaskMappingSimulate.cpp:

Go to the source code of this file.

Typedefs

typedef zlno_t test_lno_t
 
typedef zgno_t test_gno_t
 
typedef zscalar_t test_scalar_t
 
typedef Tpetra::CrsGraph
< test_lno_t, test_gno_t,
znode_t
mytest_tcrsGraph_t
 
typedef Tpetra::MultiVector
< test_scalar_t, test_lno_t,
test_gno_t, znode_t
mytest_tMVector_t
 
typedef
Zoltan2::XpetraCrsGraphAdapter
< mytest_tcrsGraph_t,
mytest_tMVector_t
mytest_adapter_t
 
typedef Tpetra::Map::node_type mytest_znode_t
 
typedef Tpetra::Map
< test_lno_t, test_gno_t,
mytest_znode_t
mytest_map_t
 
typedef mytest_adapter_t::part_t mytest_part_t
 

Enumerations

enum  MappingScenarios {
  TwoPhase, SinglePhaseElementsInProcessInSamePartition, SinglePhaseElementsAreOnePartition, TwoPhase,
  SinglePhaseElementsInProcessInSamePartition, SinglePhaseElementsAreOnePartition
}
 
enum  MappingInputDistributution { Distributed, AllHaveCopies, Distributed, AllHaveCopies }
 

Functions

RCP< mytest_tcrsGraph_tcreate_tpetra_input_matrix (char *input_binary_graph, Teuchos::RCP< const Teuchos::Comm< int > > tcomm, test_gno_t &myTasks, std::vector< int > &task_communication_xadj_, std::vector< int > &task_communication_adj_, std::vector< double > &task_communication_adjw_)
 
RCP
< Zoltan2::XpetraMultiVectorAdapter
< mytest_tMVector_t > > 
create_multi_vector_adapter (RCP< const mytest_map_t > map, int coord_dim, test_scalar_t **partCenters, test_gno_t myTasks)
 
void test_serial_input_adapter (Teuchos::RCP< const Teuchos::Comm< int > > global_tcomm, char *input_binary_graph, char *input_binary_coordinate, char *input_machine_file, int machine_optimization_level, bool divide_prime_first, int rank_per_node, bool visualize_mapping, int reduce_best_mapping)
 
int main (int narg, char *arg[])
 

Typedef Documentation

typedef zlno_t test_lno_t

Definition at line 38 of file TaskMappingSimulate.cpp.

typedef zgno_t test_gno_t

Definition at line 39 of file TaskMappingSimulate.cpp.

Definition at line 40 of file TaskMappingSimulate.cpp.

typedef Tpetra::CrsGraph<test_lno_t, test_gno_t, znode_t> mytest_tcrsGraph_t

Definition at line 42 of file TaskMappingSimulate.cpp.

typedef Tpetra::MultiVector<test_scalar_t, test_lno_t, test_gno_t, znode_t> mytest_tMVector_t

Definition at line 43 of file TaskMappingSimulate.cpp.

Definition at line 44 of file TaskMappingSimulate.cpp.

typedef Tpetra::Map ::node_type mytest_znode_t

Definition at line 45 of file TaskMappingSimulate.cpp.

Definition at line 46 of file TaskMappingSimulate.cpp.

Definition at line 47 of file TaskMappingSimulate.cpp.

Enumeration Type Documentation

Enumerator
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 

Definition at line 49 of file TaskMappingSimulate.cpp.

Enumerator
Distributed 
AllHaveCopies 
Distributed 
AllHaveCopies 

Definition at line 55 of file TaskMappingSimulate.cpp.

Function Documentation

RCP<mytest_tcrsGraph_t> create_tpetra_input_matrix ( char *  input_binary_graph,
Teuchos::RCP< const Teuchos::Comm< int > >  tcomm,
test_gno_t myTasks,
std::vector< int > &  task_communication_xadj_,
std::vector< int > &  task_communication_adj_,
std::vector< double > &  task_communication_adjw_ 
)

Definition at line 60 of file TaskMappingSimulate.cpp.

RCP<Zoltan2::XpetraMultiVectorAdapter<mytest_tMVector_t> > create_multi_vector_adapter ( RCP< const mytest_map_t map,
int  coord_dim,
test_scalar_t **  partCenters,
test_gno_t  myTasks 
)

Definition at line 137 of file TaskMappingSimulate.cpp.

void test_serial_input_adapter ( Teuchos::RCP< const Teuchos::Comm< int > >  global_tcomm,
char *  input_binary_graph,
char *  input_binary_coordinate,
char *  input_machine_file,
int  machine_optimization_level,
bool  divide_prime_first,
int  rank_per_node,
bool  visualize_mapping,
int  reduce_best_mapping 
)

Definition at line 163 of file TaskMappingSimulate.cpp.

int main ( int  narg,
char *  arg[] 
)

Definition at line 364 of file TaskMappingSimulate.cpp.