SIONlib  1.7.4
Scalable I/O library for parallel access to task-local files
Macros | Functions
sion_generic_collective.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include "sion.h"
#include "sion_debug.h"
#include "sion_error_handler.h"
#include "sion_internal.h"
#include "sion_fd.h"
#include "sion_filedesc.h"
#include "sion_printts.h"
#include "sion_generic_apidesc.h"
#include "sion_generic_buddy.h"
#include "sion_generic_collective.h"
Include dependency graph for sion_generic_collective.c:

Go to the source code of this file.

Macros

#define _XOPEN_SOURCE   700
 
#define DFUNCTION   "sion_coll_fwrite"
 checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task More...
 
#define DFUNCTION   "sion_coll_fread"
 checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task More...
 
#define DFUNCTION   "_sion_generic_collective_process_write"
 checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task More...
 
#define DFUNCTION   "_sion_generic_collective_process_read"
 checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task More...
 
#define DFUNCTION   "_sion_coll_check_env"
 checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task More...
 

Functions

size_t sion_coll_fwrite (const void *data, size_t size, size_t nitems, int sid)
 
size_t sion_coll_fread (void *data, size_t size, size_t nitems, int sid)
 
int _sion_generic_collective_process_write (const void *data, sion_int64 *spec, int sid)
 
int _sion_generic_collective_process_read (void *data, sion_int64 *spec, int sid)
 
int _sion_coll_check_env (_sion_filedesc *sion_filedesc)
 

Macro Definition Documentation

◆ DFUNCTION [1/5]

#define DFUNCTION   "sion_coll_fwrite"

checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task

Parameters
*sion_filedescsion file description struct (_sion_filedesc)
Returns
SION_SUCCESS if env could be checked

Definition at line 387 of file sion_generic_collective.c.

◆ DFUNCTION [2/5]

#define DFUNCTION   "sion_coll_fread"

checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task

Parameters
*sion_filedescsion file description struct (_sion_filedesc)
Returns
SION_SUCCESS if env could be checked

Definition at line 387 of file sion_generic_collective.c.

◆ DFUNCTION [3/5]

#define DFUNCTION   "_sion_generic_collective_process_write"

checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task

Parameters
*sion_filedescsion file description struct (_sion_filedesc)
Returns
SION_SUCCESS if env could be checked

Definition at line 387 of file sion_generic_collective.c.

◆ DFUNCTION [4/5]

#define DFUNCTION   "_sion_generic_collective_process_read"

checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task

Parameters
*sion_filedescsion file description struct (_sion_filedesc)
Returns
SION_SUCCESS if env could be checked

Definition at line 387 of file sion_generic_collective.c.

◆ DFUNCTION [5/5]

#define DFUNCTION   "_sion_coll_check_env"

checks if environment variables are set to use collective I/O SION_COLLSIZE = -1 -> number of collector is computed by sionlib and depends on chunksizes and filesystem-blocksize SION_COLLSIZE = 0 -> collective is not used SION_COLLSIZE > 0 -> number of task to be collected by one (master) task

Parameters
*sion_filedescsion file description struct (_sion_filedesc)
Returns
SION_SUCCESS if env could be checked

Definition at line 387 of file sion_generic_collective.c.