OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

hostfile_lex.h
1 /* -*- C -*-
2 *
3 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4 * University Research and Technology
5 * Corporation. All rights reserved.
6 * Copyright (c) 2004-2005 The University of Tennessee and The University
7 * of Tennessee Research Foundation. All rights
8 * reserved.
9 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10 * University of Stuttgart. All rights reserved.
11 * Copyright (c) 2004-2005 The Regents of the University of California.
12 * All rights reserved.
13 * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
14 * $COPYRIGHT$
15 *
16 * Additional copyrights may follow
17 *
18 * $HEADER$
19 */
20
21 #ifndef ORTE_UTIL_HOSTFILE_LEX_H_
22 #define ORTE_UTIL_HOSTFILE_LEX_H_
23
24 #include "orte_config.h"
25
26 #ifdef malloc
27 #undef malloc
28 #endif
29 #ifdef realloc
30 #undef realloc
31 #endif
32 #ifdef free
33 #undef free
34 #endif
35
36 #include <stdio.h>
37
38 typedef union {
39 int ival;
40 char* sval;
41 } orte_hostfile_value_t;
42
43 extern int orte_util_hostfile_lex(void);
44 extern FILE *orte_util_hostfile_in;
45 extern int orte_util_hostfile_line;
46 extern bool orte_util_hostfile_done;
47 extern orte_hostfile_value_t orte_util_hostfile_value;
48
49 /*
50 * Make lex-generated files not issue compiler warnings
51 */
52 #define YY_STACK_USED 0
53 #define YY_ALWAYS_INTERACTIVE 0
54 #define YY_NEVER_INTERACTIVE 0
55 #define YY_MAIN 0
56 #define YY_NO_UNPUT 1
57 #define YY_SKIP_YYWRAP 1
58
59 #define ORTE_HOSTFILE_DONE 0
60 #define ORTE_HOSTFILE_ERROR 1
61 #define ORTE_HOSTFILE_QUOTED_STRING 2
62 #define ORTE_HOSTFILE_EQUAL 3
63 #define ORTE_HOSTFILE_INT 4
64 #define ORTE_HOSTFILE_STRING 5
65 #define ORTE_HOSTFILE_CPU 6
66 #define ORTE_HOSTFILE_COUNT 7
67 #define ORTE_HOSTFILE_SLOTS 8
68 #define ORTE_HOSTFILE_SLOTS_MAX 9
69 #define ORTE_HOSTFILE_USERNAME 10
70 #define ORTE_HOSTFILE_IPV4 11
71 #define ORTE_HOSTFILE_HOSTNAME 12
72 #define ORTE_HOSTFILE_NEWLINE 13
73 #define ORTE_HOSTFILE_IPV6 14
74 #define ORTE_HOSTFILE_SLOT 15
75 #define ORTE_HOSTFILE_RELATIVE 16
76 #define ORTE_HOSTFILE_BOARDS 17
77 #define ORTE_HOSTFILE_SOCKETS_PER_BOARD 18
78 #define ORTE_HOSTFILE_CORES_PER_SOCKET 19
79 /* ensure we can handle a rank_file input */
80 #define ORTE_HOSTFILE_RANK 20
81
82 #endif
orte_hostfile_value_t
Definition: hostfile_lex.h:38