File: k-partitioning.h

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (22 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (2)
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*/