Skip to content

Commit 20b8580

Browse files
committed
add abi variantes of mpi_aint_diff and add
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 8a74623 commit 20b8580

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

ompi/mpi/c/Makefile_abi.include

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ libmpi_c_abi_la_SOURCES = \
4646
extra_abi_fns = \
4747
abi_get_info.c \
4848
abi_get_version.c \
49+
aint_add_abi.c \
50+
aint_diff_abi.c \
4951
pcontrol.c \
5052
wtick.c
5153

ompi/mpi/c/aint_add_abi.c

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
3+
* University Research and Technology
4+
* Corporation. All rights reserved.
5+
* Copyright (c) 2004-2005 The University of Tennessee and The University
6+
* of Tennessee Research Foundation. All rights
7+
* reserved.
8+
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9+
* University of Stuttgart. All rights reserved.
10+
* Copyright (c) 2004-2005 The Regents of the University of California.
11+
* All rights reserved.
12+
* Copyright (c) 2015 Research Organization for Information Science
13+
* and Technology (RIST). All rights reserved.
14+
* $COPYRIGHT$
15+
*
16+
* Additional copyrights may follow
17+
*
18+
* $HEADER$
19+
*/
20+
#include "ompi_config.h"
21+
#include <stdio.h>
22+
23+
#include "ompi/mpi/c/bindings.h"
24+
#include "ompi/runtime/params.h"
25+
#include "ompi/errhandler/errhandler.h"
26+
#include "ompi/mpi/c/abi.h"
27+
#include "ompi/mpi/c/abi_converters.h"
28+
29+
#if OMPI_BUILD_MPI_PROFILING
30+
#if OPAL_HAVE_WEAK_SYMBOLS
31+
#pragma weak MPI_Aint_add = PMPI_Aint_add
32+
#endif
33+
#define MPI_Aint_add PMPI_Aint_add
34+
#endif
35+
36+
MPI_Aint MPI_Aint_add(MPI_Aint addr1, MPI_Aint addr2)
37+
{
38+
return (addr1 + addr2);
39+
}
40+

ompi/mpi/c/aint_diff_abi.c

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
3+
* University Research and Technology
4+
* Corporation. All rights reserved.
5+
* Copyright (c) 2004-2005 The University of Tennessee and The University
6+
* of Tennessee Research Foundation. All rights
7+
* reserved.
8+
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9+
* University of Stuttgart. All rights reserved.
10+
* Copyright (c) 2004-2005 The Regents of the University of California.
11+
* All rights reserved.
12+
* Copyright (c) 2015 Research Organization for Information Science
13+
* and Technology (RIST). All rights reserved.
14+
* $COPYRIGHT$
15+
*
16+
* Additional copyrights may follow
17+
*
18+
* $HEADER$
19+
*/
20+
#include "ompi_config.h"
21+
#include <stdio.h>
22+
23+
#include "ompi/mpi/c/bindings.h"
24+
#include "ompi/runtime/params.h"
25+
#include "ompi/errhandler/errhandler.h"
26+
27+
#include "ompi/mpi/c/abi.h"
28+
#include "ompi/mpi/c/abi_converters.h"
29+
30+
#if OMPI_BUILD_MPI_PROFILING
31+
#if OPAL_HAVE_WEAK_SYMBOLS
32+
#pragma weak MPI_Aint_diff = PMPI_Aint_diff
33+
#endif
34+
#define MPI_Aint_diff PMPI_Aint_diff
35+
#endif
36+
37+
MPI_Aint MPI_Aint_diff(MPI_Aint addr1, MPI_Aint addr2)
38+
{
39+
return (addr1 - addr2);
40+
}
41+

0 commit comments

Comments
 (0)