File: decompose.h

package info (click to toggle)
adios 1.13.1-31
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 133,236; f90: 8,791; sh: 7,779; python: 7,648; xml: 3,793; makefile: 2,996; cpp: 2,340; java: 626; sed: 16; perl: 8
file content (17 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __DECOMPOSE_H_
#define __DECOMPOSE_H_

#include <stdint.h>

/* Decompose a variable among several processors 

   count/start: array of size/offset in each dimension 
   writesize:   sum (count)

*/
void decompose (int numproc, int rank, int ndim, uint64_t *dims, int *decomp_values,
                /*OUT*/ uint64_t *count,
                /*OUT*/ uint64_t *start,
                /*OUT*/ uint64_t *writesize);

#endif