Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Typedefs | Enumerations | Functions | Variables
zoltanCompare.cpp File Reference
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_XpetraCrsMatrixAdapter.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_PartitioningSolution.hpp>
#include <Zoltan2_PartitioningProblem.hpp>
#include <Tpetra_MultiVector.hpp>
#include <zoltan.h>
Include dependency graph for zoltanCompare.cpp:

Go to the source code of this file.

Macros

#define NUMTESTS   30
 
#define SET_ZID(n, a, b)
 

Typedefs

typedef Tpetra::CrsGraph
< zlno_t, zgno_t, znode_t
tGraph_t
 
typedef Tpetra::CrsMatrix
< zscalar_t, zlno_t, zgno_t,
znode_t
tMatrix_t
 
typedef Tpetra::MultiVector
< zscalar_t, zlno_t, zgno_t,
znode_t
tMVector_t
 
typedef
Zoltan2::XpetraMultiVectorAdapter
< tMVector_t
vectorAdapter_t
 
typedef
Zoltan2::XpetraCrsMatrixAdapter
< tMatrix_t, tMVector_t
matrixAdapter_t
 
typedef
Zoltan2::EvaluatePartition
< matrixAdapter_t
quality_t
 

Enumerations

enum  testFields {
  TESTNAMEOFFSET = 0, TESTMETHODOFFSET, TESTOBJWGTOFFSET, TESTNUMPROCS,
  TESTNUMARGS
}
 

Functions

static int znumobj (void *data, int *ierr)
 
static void zobjlist (void *data, int ngid, int nlid, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int nwgts, float *wgts, int *ierr)
 
static int znumgeom (void *data, int *ierr)
 
static void zgeom (void *data, int ngid, int nlid, int nobj, ZOLTAN_ID_PTR gids, ZOLTAN_ID_PTR lids, int ndim, double *coords, int *ierr)
 
static void zhgsize (void *data, int *nLists, int *nPins, int *format, int *ierr)
 
static void zhg (void *data, int ngid, int nLists, int nPins, int format, ZOLTAN_ID_PTR listGids, int *offsets, ZOLTAN_ID_PTR pinGids, int *ierr)
 
int run (const RCP< const Comm< int > > &comm, int numGlobalParts, int testCnt, std::string *thisTest)
 
int main (int narg, char *arg[])
 

Variables

static string testArgs []
 
static constexpr int znGidEnt = sizeof(zgno_t) / sizeof(ZOLTAN_ID_TYPE)
 

Detailed Description

Compares zoltan execution through Zoltan2 with direct zoltan execution

Definition in file zoltanCompare.cpp.

Macro Definition Documentation

#define NUMTESTS   30

Definition at line 40 of file zoltanCompare.cpp.

#define SET_ZID (   n,
  a,
 
)
Value:
{int ZOLTAN_ID_LOOP; \
for (ZOLTAN_ID_LOOP = 0; ZOLTAN_ID_LOOP < (n); ZOLTAN_ID_LOOP++) \
(a)[ZOLTAN_ID_LOOP] = (b)[ZOLTAN_ID_LOOP]; \
}

Definition at line 89 of file zoltanCompare.cpp.

Typedef Documentation

typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> tGraph_t

Definition at line 80 of file zoltanCompare.cpp.

typedef Tpetra::CrsMatrix<zscalar_t, zlno_t, zgno_t, znode_t> tMatrix_t

Definition at line 81 of file zoltanCompare.cpp.

typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> tMVector_t

Definition at line 82 of file zoltanCompare.cpp.

Definition at line 83 of file zoltanCompare.cpp.

Definition at line 84 of file zoltanCompare.cpp.

Examples:
rcb_C.cpp.

Definition at line 85 of file zoltanCompare.cpp.

Enumeration Type Documentation

enum testFields
Enumerator
TESTNAMEOFFSET 
TESTMETHODOFFSET 
TESTOBJWGTOFFSET 
TESTNUMPROCS 
TESTNUMARGS 

Definition at line 31 of file zoltanCompare.cpp.

Function Documentation

static int znumobj ( void *  data,
int *  ierr 
)
static

Definition at line 99 of file zoltanCompare.cpp.

static void zobjlist ( void *  data,
int  ngid,
int  nlid,
ZOLTAN_ID_PTR  gids,
ZOLTAN_ID_PTR  lids,
int  nwgts,
float *  wgts,
int *  ierr 
)
static

Definition at line 106 of file zoltanCompare.cpp.

static int znumgeom ( void *  data,
int *  ierr 
)
static

Definition at line 128 of file zoltanCompare.cpp.

static void zgeom ( void *  data,
int  ngid,
int  nlid,
int  nobj,
ZOLTAN_ID_PTR  gids,
ZOLTAN_ID_PTR  lids,
int  ndim,
double *  coords,
int *  ierr 
)
static

Definition at line 135 of file zoltanCompare.cpp.

static void zhgsize ( void *  data,
int *  nLists,
int *  nPins,
int *  format,
int *  ierr 
)
static

Definition at line 149 of file zoltanCompare.cpp.

static void zhg ( void *  data,
int  ngid,
int  nLists,
int  nPins,
int  format,
ZOLTAN_ID_PTR  listGids,
int *  offsets,
ZOLTAN_ID_PTR  pinGids,
int *  ierr 
)
static

Definition at line 158 of file zoltanCompare.cpp.

int run ( const RCP< const Comm< int > > &  comm,
int  numGlobalParts,
int  testCnt,
std::string *  thisTest 
)

Definition at line 193 of file zoltanCompare.cpp.

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

Definition at line 461 of file zoltanCompare.cpp.

Variable Documentation

string testArgs[]
static

Definition at line 41 of file zoltanCompare.cpp.

constexpr int znGidEnt = sizeof(zgno_t) / sizeof(ZOLTAN_ID_TYPE)
static

Definition at line 88 of file zoltanCompare.cpp.