Changed all the files to have the right #if for including #pragma weak
Yet to incorporate the optimization macros for these files. This commit was SVN r411.
Этот коммит содержится в:
родитель
51a7ab499f
Коммит
81dd740452
@ -9,11 +9,10 @@
|
|||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/interface/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||||
#pragma weak PMPI_Alloc_mem = MPI_Alloc_mem
|
#pragma weak MPI_Alloc_mem = PMPI_Alloc_mem
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr)
|
int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr)
|
||||||
{
|
{
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
#include "mpi/interface/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
#include "mpi/communicator/communicator.h"
|
#include "mpi/communicator/communicator.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||||
#pragma weak PMPI_Comm_get_name = MPI_Comm_get_name
|
#pragma weak MPI_Comm_get_name = PMPI_Comm_get_name
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -12,11 +12,10 @@
|
|||||||
#include "mpi/interface/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
#include "mpi/communicator/communicator.h"
|
#include "mpi/communicator/communicator.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||||
#pragma weak PMPI_Comm_set_name = MPI_Comm_set_name
|
#pragma weak MPI_Comm_set_name = PMPI_Comm_set_name
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
MPI_Comm_set_name(MPI_Comm comm, char *name)
|
MPI_Comm_set_name(MPI_Comm comm, char *name)
|
||||||
{
|
{
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/interface/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||||
#pragma weak PMPI_Finalize = MPI_Finalize
|
#pragma weak MPI_Finalize = PMPI_Finalize
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "mpi/interface/c/bindings.h"
|
#include "mpi/interface/c/bindings.h"
|
||||||
|
|
||||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||||
#pragma weak PMPI_Init = MPI_Init
|
#pragma weak MPI_Init = PMPI_Init
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user