File: k-partitioning.h

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (22 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef K_PARTITIONING
#define K_PARTITIONING

#include "ompi_config.h"

#include "PriorityQueue.h"

/*
  kPartitioning : function to call the k-partitioning algorithm
      - comm : the communication matrix
      - n : the number of vertices (including dumb  vertices)
      - k : the number of partitions
      - constraints : the list of constraints
      - nb_constraints : the number of constraints
      - greedy_trials : the number of trials to build the partition vector with kpartition_greedy
          - 0 : cyclic distribution of vertices
	  - > 0 : use of kpartition_greedy with greedy_trials number of trials 
 */

OMPI_HIDDEN int* tm_kPartitioning(double ** comm, int n, int k, int * const constraints, int nb_constraints, int greedy_trials);

#endif /*K_PARTITIONING*/