Zoltan2
Loading...
Searching...
No Matches
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_tmytest_tcrsGraph_t
 
typedef Tpetra::MultiVector< test_scalar_t, test_lno_t, test_gno_t, znode_tmytest_tMVector_t
 
typedef Zoltan2::XpetraCrsGraphAdapter< mytest_tcrsGraph_t, mytest_tMVector_tmytest_adapter_t
 
typedef Tpetra::Map ::node_type mytest_znode_t
 
typedef Tpetra::Map< test_lno_t, test_gno_t, mytest_znode_tmytest_map_t
 
typedef mytest_adapter_t::part_t mytest_part_t
 

Enumerations

enum  MappingScenarios { TwoPhase , SinglePhaseElementsInProcessInSamePartition , SinglePhaseElementsAreOnePartition }
 
enum  MappingInputDistributution { 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

◆ test_lno_t

typedef zlno_t test_lno_t

Definition at line 30 of file TaskMappingSimulate.cpp.

◆ test_gno_t

typedef zgno_t test_gno_t

Definition at line 31 of file TaskMappingSimulate.cpp.

◆ test_scalar_t

Definition at line 32 of file TaskMappingSimulate.cpp.

◆ mytest_tcrsGraph_t

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

Definition at line 34 of file TaskMappingSimulate.cpp.

◆ mytest_tMVector_t

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

Definition at line 35 of file TaskMappingSimulate.cpp.

◆ mytest_adapter_t

Definition at line 36 of file TaskMappingSimulate.cpp.

◆ mytest_znode_t

typedef Tpetra::Map ::node_type mytest_znode_t

Definition at line 37 of file TaskMappingSimulate.cpp.

◆ mytest_map_t

Definition at line 38 of file TaskMappingSimulate.cpp.

◆ mytest_part_t

Definition at line 39 of file TaskMappingSimulate.cpp.

Enumeration Type Documentation

◆ MappingScenarios

Enumerator
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 

Definition at line 41 of file TaskMappingSimulate.cpp.

◆ MappingInputDistributution

Enumerator
Distributed 
AllHaveCopies 

Definition at line 47 of file TaskMappingSimulate.cpp.

Function Documentation

◆ create_tpetra_input_matrix()

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 52 of file TaskMappingSimulate.cpp.

◆ create_multi_vector_adapter()

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 129 of file TaskMappingSimulate.cpp.

◆ test_serial_input_adapter()

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 155 of file TaskMappingSimulate.cpp.

◆ main()

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

Definition at line 356 of file TaskMappingSimulate.cpp.