Skip to content

Commit 8d75368

Browse files
committed
fortran: generate bindings from templates
make the code less error prone by generating mpif-h bindings for - blocking collective - non blocking collective - persistent collective from a single template file Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent c4d0752 commit 8d75368

File tree

14 files changed

+201
-558
lines changed

14 files changed

+201
-558
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ ompi/mpi/fortran/mpiext-use-mpi-f08/mpi-f08-ext-module.F90
212212
ompi/mpi/fortran/mpif-h/sizeof_f.f90
213213
ompi/mpi/fortran/mpif-h/profile/p*.c
214214
ompi/mpi/fortran/mpif-h/profile/psizeof_f.f90
215+
ompi/mpi/fortran/mpif-h/bcast_f.c
216+
ompi/mpi/fortran/mpif-h/gather_f.c
217+
ompi/mpi/fortran/mpif-h/ibcast_f.c
218+
ompi/mpi/fortran/mpif-h/igather_f.c
215219

216220
ompi/mpi/fortran/use-mpi-f08/constants.h
217221
ompi/mpi/fortran/use-mpi-f08/sizeof_f08.f90
@@ -279,6 +283,8 @@ ompi/mpiext/pcollreq/c/profile/pscatter_init.c
279283
ompi/mpiext/pcollreq/c/profile/pscatterv_init.c
280284
ompi/mpiext/pcollreq/c/profile/ppcollreq_c.h
281285

286+
ompi/mpiext/pcollreq/mpif-h/bcast_init_f.c
287+
ompi/mpiext/pcollreq/mpif-h/gather_init_f.c
282288
ompi/mpiext/pcollreq/mpif-h/profile/pallgather_init_f.c
283289
ompi/mpiext/pcollreq/mpif-h/profile/pallgatherv_init_f.c
284290
ompi/mpiext/pcollreq/mpif-h/profile/pallreduce_init_f.c

autogen.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,7 @@ sub in_tarball {
13121312

13131313
my @scripts;
13141314
push(@scripts, "ompi/include/mpif-values.pl");
1315+
push(@scripts, "ompi/templates/generate_collectives.sh");
13151316

13161317
foreach my $s (@scripts) {
13171318
verbose "=== $s\n";

config/ompi_config_files.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ AC_DEFUN([OMPI_CONFIG_FILES],[
4545
ompi/mpi/tool/Makefile
4646
ompi/mpi/tool/profile/Makefile
4747

48+
ompi/templates/Makefile
49+
4850
ompi/tools/ompi_info/Makefile
4951
ompi/tools/wrappers/Makefile
5052
ompi/tools/wrappers/mpicc-wrapper-data.txt

ompi/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ SUBDIRS = \
7979
datatype \
8080
debuggers \
8181
etc \
82+
templates \
8283
mpi/c \
8384
mpi/tool \
8485
$(OMPI_MPIEXT_C_DIRS) \

ompi/mpi/fortran/mpif-h/bcast_f.c

Lines changed: 0 additions & 86 deletions
This file was deleted.

ompi/mpi/fortran/mpif-h/gather_f.c

Lines changed: 0 additions & 93 deletions
This file was deleted.

ompi/mpi/fortran/mpif-h/ibcast_f.c

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)