File: info.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 (69 lines) | stat: -rw-r--r-- 1,483 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * Copyright (c) 2015      Mellanox Technologies, Inc.
 *                         All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

#ifndef OSHMEM_INFO_H
#define OSHMEM_INFO_H

#include "oshmem_config.h"
#include "oshmem/types.h"
#include "oshmem/constants.h"

/*
 * Environment variables
 */
#define OSHMEM_ENV_SYMMETRIC_SIZE      "SMA_SYMMETRIC_SIZE"
#define OSHMEM_ENV_DEBUG               "SMA_DEBUG"
#define OSHMEM_ENV_INFO                "SMA_INFO"
#define OSHMEM_ENV_VERSION             "SMA_VERSION"

/**
 * \internal
 * oshmem_info_t structure.
 */
struct oshmem_info_t {
    /**< print the library version at start-up */
    bool print_version;
    /**< print helpful text about all these environment variables */
    bool print_info;
    /**< enable debugging messages */
    bool debug;
    /**< number of bytes to allocate for symmetric heap */
    size_t symmetric_heap_size;
};

/**
 * \internal
 * Convenience typedef
 */
typedef struct oshmem_info_t oshmem_info_t;


BEGIN_C_DECLS

/**
 * Global instance for oshmem_info_env
 */
OSHMEM_DECLSPEC extern oshmem_info_t oshmem_shmem_info_env;

/**
 * This function is invoked during oshmem_shmem_init() and sets up
 * oshmem_shmem_info_env handling.
 */
int oshmem_info_init(void);

/**
 * This functions is called during oshmem_shmem_finalize() and shuts
 * down oshmem_shmem_info_env handling.
 */
int oshmem_info_finalize(void);

END_C_DECLS

#endif /* OSHMEM_INFO_H */