ParallelIO
Macros | Functions | Variables
pioc_sc.c File Reference

Compute start and count arrays for the box rearranger. More...

#include <pio.h>
#include <pio_internal.h>

Macros

#define default_blocksize   1024
 The default target blocksize for each io task when the box rearranger is used.
 

Functions

int PIOc_set_blocksize (const int newblocksize)
 Set the target blocksize for the box rearranger.
 
int gcd (int a, int b)
 
long long lgcd (long long a, long long b)
 
int gcd_array (int nain, int *ain)
 
long long lgcd_array (int nain, long long *ain)
 
int calcdisplace (const int bsize, const int numblocks, const PIO_Offset map[], int displace[])
 
void computestartandcount (const int gdim, const int ioprocs, const int rank, PIO_Offset *start, PIO_Offset *kount)
 
PIO_Offset GCDblocksize (const int arrlen, const PIO_Offset arr_in[])
 
int CalcStartandCount (const int basetype, const int ndims, const int *gdims, const int num_io_procs, const int myiorank, PIO_Offset *start, PIO_Offset *kount)
 

Variables

int blocksize = default_blocksize
 The target blocksize for each io task when the box rearranger is used.
 

Detailed Description

Compute start and count arrays for the box rearranger.

Author
Jim Edwards
Date
2014
See also
http://code.google.com/p/parallelio/