File: sysinfo_types.h

package info (click to toggle)
openmpi 1.6.5-9.1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 91,628 kB
  • ctags: 44,305
  • sloc: ansic: 408,966; cpp: 44,454; sh: 27,828; makefile: 10,486; asm: 3,882; python: 1,239; lex: 805; perl: 549; csh: 253; fortran: 232; f90: 126; tcl: 12
file content (50 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (2)
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
/*
 * Copyright (c) 2009      Cisco Systems, Inc.  All rights reserved. 
 *
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 */

/**
 * @file
 *
 * Resource flags
 *
 * Intent
 *
 * self-discovery of available local resources.
 *
 */

#ifndef OPAL_MCA_SYSINFO_TYPE_H
#define OPAL_MCA_SYSINFO_TYPE_H

#include "opal_config.h"

#include "opal/class/opal_list.h"
#include "opal/dss/dss_types.h"

BEGIN_C_DECLS

#define OPAL_SYSINFO_CPU_TYPE   "CPU_TYPE"
#define OPAL_SYSINFO_CPU_MODEL  "CPU_MODEL"
#define OPAL_SYSINFO_NUM_CPUS   "NUM_CPUS"
#define OPAL_SYSINFO_MEM_SIZE   "MEMORY"

typedef struct {
    opal_list_item_t super;
    char *key;
    opal_data_type_t type;
    union {
        int64_t i64;
        char *str;
    } data;
} opal_sysinfo_value_t;
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_sysinfo_value_t);

END_C_DECLS

#endif /* OPAL_MCA_SYSINFO_TYPE_H */