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/interface/c/bindings.h"
|
||||
|
||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||
#pragma weak PMPI_Alloc_mem = MPI_Alloc_mem
|
||||
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||
#pragma weak MPI_Alloc_mem = PMPI_Alloc_mem
|
||||
#endif
|
||||
|
||||
|
||||
int MPI_Alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr)
|
||||
{
|
||||
if (size < 0) {
|
||||
|
@ -12,8 +12,8 @@
|
||||
#include "mpi/interface/c/bindings.h"
|
||||
#include "mpi/communicator/communicator.h"
|
||||
|
||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||
#pragma weak PMPI_Comm_get_name = MPI_Comm_get_name
|
||||
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||
#pragma weak MPI_Comm_get_name = PMPI_Comm_get_name
|
||||
#endif
|
||||
|
||||
int
|
||||
|
@ -12,11 +12,10 @@
|
||||
#include "mpi/interface/c/bindings.h"
|
||||
#include "mpi/communicator/communicator.h"
|
||||
|
||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||
#pragma weak PMPI_Comm_set_name = MPI_Comm_set_name
|
||||
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||
#pragma weak MPI_Comm_set_name = PMPI_Comm_set_name
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
MPI_Comm_set_name(MPI_Comm comm, char *name)
|
||||
{
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include "mpi.h"
|
||||
#include "mpi/interface/c/bindings.h"
|
||||
|
||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||
#pragma weak PMPI_Finalize = MPI_Finalize
|
||||
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||
#pragma weak MPI_Finalize = PMPI_Finalize
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include "mpi.h"
|
||||
#include "mpi/interface/c/bindings.h"
|
||||
|
||||
#if LAM_WANT_MPI_PROFILING && LAM_HAVE_WEAK_SYMBOLS
|
||||
#pragma weak PMPI_Init = MPI_Init
|
||||
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
||||
#pragma weak MPI_Init = PMPI_Init
|
||||
#endif
|
||||
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user