4141
4242headers = bindings.h
4343
44+ #
45+ # Template/prototype source files used for generating MPI functions
46+ #
4447prototype_sources = \
4548 abort.c.in \
4649 alltoallv.c.in \
@@ -88,10 +91,11 @@ ompi_HEADERS = $(headers)
8891endif
8992
9093#
91- # List of all C files that have profile versions
94+ # List of all C files that have profile versions (generated_*.c files were
95+ # generated from prototype_sources above).
9296#
9397interface_profile_sources = \
94- ompi_abort .c \
98+ generated_abort .c \
9599 add_error_class.c \
96100 add_error_code.c \
97101 add_error_string.c \
@@ -102,22 +106,22 @@ interface_profile_sources = \
102106 iallgatherv.c \
103107 allgatherv_init.c \
104108 alloc_mem.c \
105- ompi_allreduce .c \
109+ generated_allreduce .c \
106110 iallreduce.c \
107111 allreduce_init.c \
108112 alltoall.c \
109113 ialltoall.c \
110114 alltoall_init.c \
111- ompi_alltoallv .c \
115+ generated_alltoallv .c \
112116 ialltoallv.c \
113117 alltoallv_init.c \
114- ompi_alltoallw .c \
118+ generated_alltoallw .c \
115119 ialltoallw.c \
116120 alltoallw_init.c \
117121 attr_delete.c \
118122 attr_get.c \
119123 attr_put.c \
120- ompi_barrier .c \
124+ generated_barrier .c \
121125 ibarrier.c \
122126 barrier_init.c \
123127 bcast.c \
@@ -153,8 +157,8 @@ interface_profile_sources = \
153157 comm_dup_with_info.c \
154158 comm_idup.c \
155159 comm_idup_with_info.c \
156- ompi_comm_f2c .c \
157- ompi_comm_free .c \
160+ generated_comm_f2c .c \
161+ generated_comm_free .c \
158162 comm_free_keyval.c \
159163 comm_get_attr.c \
160164 comm_get_errhandler.c \
@@ -163,7 +167,7 @@ interface_profile_sources = \
163167 comm_get_parent.c \
164168 comm_group.c \
165169 comm_join.c \
166- ompi_comm_rank .c \
170+ generated_comm_rank .c \
167171 comm_remote_group.c \
168172 comm_remote_size.c \
169173 comm_set_attr.c \
@@ -174,11 +178,11 @@ interface_profile_sources = \
174178 dist_graph_neighbors_count.c \
175179 comm_set_errhandler.c \
176180 comm_set_name.c \
177- ompi_comm_size .c \
181+ generated_comm_size .c \
178182 comm_spawn.c \
179183 comm_spawn_multiple.c \
180- ompi_comm_split .c \
181- ompi_comm_split_type .c \
184+ generated_comm_split .c \
185+ generated_comm_split_type .c \
182186 comm_test_inter.c \
183187 compare_and_swap.c \
184188 dims_create.c \
@@ -218,7 +222,7 @@ interface_profile_sources = \
218222 file_iwrite.c \
219223 file_iwrite_all.c \
220224 file_iwrite_shared.c \
221- ompi_file_open .c \
225+ generated_file_open .c \
222226 file_preallocate.c \
223227 file_read_all_begin.c \
224228 file_read_all.c \
@@ -252,8 +256,8 @@ interface_profile_sources = \
252256 file_write_ordered.c \
253257 file_write_ordered_end.c \
254258 file_write_shared.c \
255- ompi_finalize .c \
256- ompi_finalized .c \
259+ generated_finalize .c \
260+ generated_finalized .c \
257261 free_mem.c \
258262 gather.c \
259263 igather.c \
@@ -266,8 +270,8 @@ interface_profile_sources = \
266270 get_elements.c \
267271 get_elements_x.c \
268272 get_accumulate.c \
269- ompi_get_library_version .c \
270- ompi_get_processor_name .c \
273+ generated_get_library_version .c \
274+ generated_get_processor_name .c \
271275 get_version.c \
272276 graph_create.c \
273277 graph_get.c \
@@ -308,17 +312,17 @@ interface_profile_sources = \
308312 info_get_string.c \
309313 info_get_valuelen.c \
310314 info_set.c \
311- ompi_init .c \
315+ generated_init .c \
312316 init_thread.c \
313- ompi_initialized .c \
317+ generated_initialized .c \
314318 intercomm_create.c \
315319 intercomm_create_from_groups.c \
316320 intercomm_merge.c \
317321 iprobe.c \
318- ompi_irecv .c \
322+ generated_irecv .c \
319323 irsend.c \
320324 is_thread_main.c \
321- ompi_isend .c \
325+ generated_isend .c \
322326 isendrecv.c \
323327 isendrecv_replace.c \
324328 issend.c \
@@ -366,7 +370,7 @@ interface_profile_sources = \
366370 query_thread.c \
367371 raccumulate.c \
368372 recv_init.c \
369- ompi_recv .c \
373+ generated_recv .c \
370374 reduce.c \
371375 ireduce.c \
372376 reduce_init.c \
@@ -470,12 +474,12 @@ interface_profile_sources = \
470474 unpack.c \
471475 unpublish_name.c \
472476 wait.c \
473- ompi_waitall .c \
477+ generated_waitall .c \
474478 waitany.c \
475- ompi_waitsome .c \
476- ompi_wtime .c \
479+ generated_waitsome .c \
480+ generated_wtime .c \
477481 wtick.c \
478- ompi_accumulate .c \
482+ generated_accumulate .c \
479483 get.c \
480484 put.c \
481485 win_allocate.c \
@@ -516,7 +520,7 @@ interface_profile_sources = \
516520 win_test.c \
517521 win_unlock.c \
518522 win_unlock_all.c \
519- ompi_send .c \
523+ generated_send .c \
520524 win_wait.c
521525
522526# The following functions were removed from the MPI standard, but are
@@ -543,7 +547,7 @@ libmpi_c_noprofile_la_CPPFLAGS = -DOMPI_BUILD_MPI_PROFILING=0
543547
544548# ABI generation rules
545549if OMPI_GENERATE_BINDINGS
546- ompi_ % .c : % .c.in
550+ generated_ % .c : % .c.in
547551 $(PYTHON ) $(top_srcdir ) /ompi/mpi/bindings/bindings.py \
548552 --builddir $(abs_top_builddir ) \
549553 --srcdir $(abs_top_srcdir ) \
@@ -553,6 +557,6 @@ ompi_%.c: %.c.in
553557 ompi \
554558 $<
555559
556- distclean-local :
557- -rm -rf ompi_ * .c
560+ # Delete generated files on maintainer-clean
561+ MAINTAINERCLEANFILES = generated_ *.c
558562endif
0 commit comments