Skip to content

Commit 3d85943

Browse files
Joe-DownsJoseph Downs
authored andcommitted
WIP: move code out of consts.py
1 parent 4e85726 commit 3d85943

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

ompi/mpi/bindings/ompi_bindings/consts.py

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,63 +8,17 @@
88
# $HEADER$
99
#
1010
"""Constants used for generating bindings."""
11-
import re
12-
import json
13-
from enum import Enum
14-
15-
# TODO: remove?
16-
from pathlib import Path
17-
1811

1912
FORTRAN_ERROR_NAME = 'ierror'
2013
C_ERROR_NAME = 'ierr'
2114
C_ERROR_TMP_NAME = 'c_ierr'
2215
GENERATED_MESSAGE = 'THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT BY HAND.'
2316

24-
DIR = Path("/mnt/")
25-
26-
with open(DIR / "abi.json") as f:
27-
abi = json.load(f)
28-
consts = abi["constants"]
29-
categories = abi["categories"]
30-
31-
class Lang(Enum):
32-
C = 1
33-
CPP = 2
34-
FORTRAN = 3
3517
#
3618
# C and ABI constants
3719
#
3820
# C type: const int
3921

40-
ENUM_CATEGORIES = [
41-
"ERROR_CLASSES",
42-
"MODE_CONSTANTS",
43-
"ASSORTED_CONSTANTS",
44-
"THREADS_CONSTANTS",
45-
"FILE_OPERATIONS_CONSTANTS",
46-
"DATATYPE_DECODING_CONSTANTS",
47-
"F90_DATATYPE_MATCHING_CONSTANTS",
48-
"COMMUNICATOR_GROUP_COMP_RESULTS",
49-
"TOPOLOGIES",
50-
"COMMUNICATOR_SPLIT_TYPE",
51-
"WINDOW_LOCK_TYPE_CONSTANTS",
52-
"WINDOW_CREATE_FLAVORS",
53-
"WINDOW_MODELS",
54-
"FILE_POS_CONSTANTS",
55-
"FILE_OP_CONSTANTS",
56-
"ENV_INQ_AND_ATTR_KEYS",
57-
"FORTRAN_STATUS_ARRAY_SIZE_AND_INDEX_C",
58-
"C_PREPROCESSOR_CONSTANTS_FORTRAN_PARAMETERS",
59-
"TOOL_INFO_IFACE_VERBOSITY_LEVELS",
60-
"TOOL_INFO_IFACE_VAR_ASSOCIATIONS",
61-
"TOOL_INFO_IFACE_VAR_SCOPES",
62-
"TOOL_INFO_IFACE_PVAR_CLASSES",
63-
"TOOL_INFO_IFACE_SOURCE_ORDERINGS",
64-
"TOOL_INFO_IFACE_CB_SAFETY_REQ_LEVELS",
65-
]
66-
67-
6822
C_OPAQUE_TYPES = {
6923
'MPI_Aint': 'intptr_t',
7024
'MPI_Offset': 'int64_t',

0 commit comments

Comments
 (0)