Balancing.cpp File Reference
GMetis -*- C++ -*-.
More...
#include "MetisGraph.h"
#include <stddef.h>
#include <vector>
#include <iostream>
#include "Galois/Graphs/Graph.h"
#include "Galois/Galois.h"
#include "MetisNode.h"
#include "Galois/Timer.h"
#include "Galois/Runtime/mm/mem.h"
#include <stdlib.h>
#include <algorithm>
#include <set>
#include "GMetisConfig.h"
#include "MetisGraph.h"
#include <map>
#include <boost/unordered_map.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/unordered_set.hpp>
Detailed Description
GMetis -*- C++ -*-.
Galois, a framework to exploit amorphous data-parallelism in irregular programs.
Copyright (C) 2011, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.
- Author:
- Xin Sui <xinsui@cs.utexas.edu>
Function Documentation
void balanceTwoWay |
( |
MetisGraph * |
metisGraph, |
|
|
int * |
tpwgts | |
|
) |
| | |
void boundaryTwoWayBalance |
( |
MetisGraph * |
metisGraph, |
|
|
int * |
tpwgts | |
|
) |
| | |
void generalTwoWayBalance |
( |
MetisGraph * |
metisGraph, |
|
|
int * |
tpwgts | |
|
) |
| | |
a blancing algorithm for bisection
- Parameters:
-
| metisGraph | the graph to balance |
| tpwgts | the lowerbounds of weights for the two partitions |
void greedyKWayEdgeBalance |
( |
MetisGraph * |
metisGraph, |
|
|
int |
nparts, |
|
|
float * |
tpwgts, |
|
|
float |
ubfactor, |
|
|
int |
npasses | |
|
) |
| | |