Skip to content

Commit 1613149

Browse files
Joe-DownsJoseph Downs
authored andcommitted
WIP: print out embiggened versions of functions
1 parent 3f229b3 commit 1613149

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ompi/mpi/bindings/ompi_bindings/c_header.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,19 @@ def output_constant(const, use_enum):
100100
output.append("\n")
101101
output.append("/* MPI API */\n")
102102
for proc in std.all_iso_c_procedures():
103-
output.append(f"{proc.express.iso_c}\n")
103+
output.append(f"{proc.express.iso_c};\n")
104+
if proc.has_embiggenment():
105+
output.append(f"{proc.express.embiggen.iso_c};\n")
104106

105107
output.append("\n")
106108
output.append("/* Profiling MPI API */\n")
107109
for proc in std.all_iso_c_procedures():
108-
output.append(f"{proc.express.profile.iso_c}\n")
110+
output.append(f"{proc.express.profile.iso_c};\n")
111+
# TODO: this is a hack and we need to add/fix/figure out the pympistandard
112+
# module to natively print out an embiggened version
113+
if proc.has_embiggenment():
114+
binding = proc.express.embiggen.iso_c.__str__().split()
115+
output.append(f"{binding[0]} P{' '.join(binding[1:])};\n")
109116

110117
# ================================ Final Output ================================
111118
with open(consts.DIR / "abi.h", 'tw') as header_out:

0 commit comments

Comments
 (0)