Skip to content

Commit 0b679ff

Browse files
authored
Merge pull request #33 from mpaiao/mpaiao-pr-fcfuncfix
Additional function interfaces in type.h and mpi.h
2 parents 39416b7 + 101a25a commit 0b679ff

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
*.mod
44
Makefile.conf
55
config.h
6+
diff_version.sh
7+

mpi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,13 @@ extern int MPI_Type_ub(MPI_Datatype datatype, MPI_Aint * ub);
438438

439439
extern double MPI_Wtime(void);
440440

441+
442+
443+
/*
444+
* Additional interfaces needed for compiling E3SM with gcc-14
445+
*/
446+
extern int MPI_Get_Version(int *mpi_vers, int *mpi_subvers);
447+
extern int MPI_Get_library_version(char *version, int *resultlen);
448+
extern int MPI_Info_free(MPI_Info *info);
449+
441450
#endif

type.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,28 @@ extern int Unpack(void * inbuf, int insize, int * position, void *outbuf,
122122
int outcount, Datatype type, Comm* comm);
123123
extern int Pack(void *inbuf, int incount, Datatype type,
124124
void *outbuf, int outsize, int *position, Comm * comm);
125+
126+
// added to avoid implicit declaration error (GCC-14)
127+
extern int Copy_type(typepair *source, typepair *dest);
128+
extern int FGet_address(void * loc, long * address);
129+
extern int MPI_Address(void * loc, MPI_Aint * address);
130+
extern int MPI_Get_address(void * loc, MPI_Aint * address);
131+
extern int Pack_size(int incount, Datatype datatype,
132+
Comm * comm, MPI_Aint * size);
133+
extern int Type_contiguous(int count, Datatype oldtype, Datatype *newtype);
134+
extern int Type_create_indexed_block(int count, int blocklen, int *displacements,
135+
Datatype oldtype, Datatype *newtype);
136+
extern int Type_hindexed(int count, int *blocklens, MPI_Aint *displacements,
137+
Datatype oldtype, Datatype *newtype);
138+
extern int Type_hvector(int count, int blocklen, MPI_Aint stride,
139+
Datatype oldtype, Datatype *newtype);
140+
extern int Type_indexed(int count, int *blocklens, int *displacements,
141+
Datatype oldtype, Datatype *newtype);
142+
extern int Type_lb(Datatype type, MPI_Aint * lb);
143+
extern int Type_size(Datatype type, int * size);
144+
extern int Type_struct(int count, int * blocklens, MPI_Aint * displacements,
145+
Datatype *oldtypes_ptr, Datatype *newtype);
146+
extern int Type_ub(Datatype type, MPI_Aint * ub);
147+
extern int Type_vector(int count, int blocklen, int stride,
148+
Datatype oldtype, Datatype *newtype);
125149
#endif /* TYPE_H */

0 commit comments

Comments
 (0)