|
Packit Service |
c5cf8c |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
|
|
Packit Service |
c5cf8c |
/*
|
|
Packit Service |
c5cf8c |
* (C) 2009 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
* See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
*/
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* This header file contains constants that might end up on the right hand side
|
|
Packit Service |
c5cf8c |
* of a #define in mpichconf.h.
|
|
Packit Service |
c5cf8c |
*
|
|
Packit Service |
c5cf8c |
* In particular, this file must provide any constants that might be used for
|
|
Packit Service |
c5cf8c |
* conditional compilation in mpidpre.h, before most of the other headers have
|
|
Packit Service |
c5cf8c |
* been included in mpiimpl.h. */
|
|
Packit Service |
c5cf8c |
#ifndef MPICHCONFCONST_H_INCLUDED
|
|
Packit Service |
c5cf8c |
#define MPICHCONFCONST_H_INCLUDED
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#define MPICH_ERROR_MSG__NONE 0
|
|
Packit Service |
c5cf8c |
#define MPICH_ERROR_MSG__CLASS 1
|
|
Packit Service |
c5cf8c |
#define MPICH_ERROR_MSG__GENERIC 2
|
|
Packit Service |
c5cf8c |
#define MPICH_ERROR_MSG__ALL 8
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* -------------------------------------------------------------------- */
|
|
Packit Service |
c5cf8c |
/* thread-related constants */
|
|
Packit Service |
c5cf8c |
/* -------------------------------------------------------------------- */
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* Define the four ways that we achieve proper thread-safe updates of
|
|
Packit Service |
c5cf8c |
* shared structures and services
|
|
Packit Service |
c5cf8c |
*
|
|
Packit Service |
c5cf8c |
* A configure choice will set MPICH_THREAD_GRANULARITY to one of these values */
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* _INVALID exists to avoid accidental macro evaluations to 0 */
|
|
Packit Service |
c5cf8c |
#define MPICH_THREAD_GRANULARITY__INVALID 0
|
|
Packit Service |
c5cf8c |
#define MPICH_THREAD_GRANULARITY__GLOBAL 1
|
|
Packit Service |
c5cf8c |
#define MPICH_THREAD_GRANULARITY__POBJ 2
|
|
Packit Service |
c5cf8c |
#define MPICH_THREAD_GRANULARITY__LOCKFREE 3
|
|
Packit Service |
c5cf8c |
/* _SINGLE is the "null" granularity, where all processes are single-threaded */
|
|
Packit Service |
c5cf8c |
#define MPICH_THREAD_GRANULARITY__SINGLE 4
|
|
Packit Service |
c5cf8c |
#define MPICH_THREAD_GRANULARITY__VNI 5
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* _NONE means no concurrency control, such as when using MPI_THREAD_SINGLE */
|
|
Packit Service |
c5cf8c |
#define MPICH_REFCOUNT__NONE 1
|
|
Packit Service |
c5cf8c |
#define MPICH_REFCOUNT__LOCKFREE 2
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* Possible values for timing */
|
|
Packit Service |
c5cf8c |
#define MPICH_TIMING_KIND__NONE 0
|
|
Packit Service |
c5cf8c |
#define MPICH_TIMING_KIND__TIME 1
|
|
Packit Service |
c5cf8c |
#define MPICH_TIMING_KIND__LOG 2
|
|
Packit Service |
c5cf8c |
#define MPICH_TIMING_KIND__LOG_DETAILED 3
|
|
Packit Service |
c5cf8c |
#define MPICH_TIMING_KIND__ALL 4
|
|
Packit Service |
c5cf8c |
#define MPICH_TIMING_KIND__RUNTIME 5
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* Possible values for USE_LOGGING */
|
|
Packit Service |
c5cf8c |
#define MPICH_LOGGING__NONE 0
|
|
Packit Service |
c5cf8c |
#define MPICH_LOGGING__RLOG 1
|
|
Packit Service |
c5cf8c |
#define MPICH_LOGGING__EXTERNAL 4
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* Possible values for process state */
|
|
Packit Service |
c5cf8c |
#define MPICH_MPI_STATE__PRE_INIT 0
|
|
Packit Service |
c5cf8c |
#define MPICH_MPI_STATE__IN_INIT 1
|
|
Packit Service |
c5cf8c |
#define MPICH_MPI_STATE__POST_INIT 2
|
|
Packit Service |
c5cf8c |
#define MPICH_MPI_STATE__POST_FINALIZED 3
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#endif /* MPICHCONFCONST_H_INCLUDED */
|