File: request_dbg.h

package info (click to toggle)
openmpi 5.0.8-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,692 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (49 lines) | stat: -rw-r--r-- 1,546 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
 * Copyright (c) 2013      Mellanox Technologies, Inc.
 *                         All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */
#ifndef OSHMEM_REQUEST_DBG_H
#define OSHMEM_REQUEST_DBG_H

/*
 * This file contains definitions used by both OSHMEM and debugger plugins.
 * For more information on why we do this see the Notice to developers
 * comment at the top of the ompi_msgq_dll.c file.
 */

/**
 * Enum inidicating the type of the request
 */
typedef enum {
    OSHMEM_REQUEST_SPML, /**< MPI point-to-point request */
    OSHMEM_REQUEST_IO, /**< MPI-2 IO request */
    OSHMEM_REQUEST_GEN, /**< MPI-2 generalized request */
    OSHMEM_REQUEST_WIN,      /**< MPI-2 one-sided request */
    OSHMEM_REQUEST_COLL,     /**< MPI-3 non-blocking collectives request */
    OSHMEM_REQUEST_NULL, /**< NULL request */
    OSHMEM_REQUEST_NOOP, /**< A request that does nothing (e.g., to PROC_NULL) */
    OSHMEM_REQUEST_MAX /**< Maximum request type */
} oshmem_request_type_t;

/**
 * Enum indicating the state of the request
 */
typedef enum {
    /** Indicates that the request should not be progressed */
    OSHMEM_REQUEST_INVALID,
    /** A defined, but inactive request (i.e., it's valid, but should
     not be progressed) */
    OSHMEM_REQUEST_INACTIVE,
    /** A valid and progressing request */
    OSHMEM_REQUEST_ACTIVE,
    /** The request has been cancelled */
    OSHMEM_REQUEST_CANCELLED /* TODO: Not required */
} oshmem_request_state_t;

#endif