remove now unused (after r27485) fake mpool component
This commit was SVN r27486. The following SVN revision numbers were found above: r27485 --> open-mpi/ompi@a1a52c9e90
Этот коммит содержится в:
родитель
a1a52c9e90
Коммит
51a3ec2d7b
@ -1,53 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
||||||
# University Research and Technology
|
|
||||||
# Corporation. All rights reserved.
|
|
||||||
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
||||||
# of Tennessee Research Foundation. All rights
|
|
||||||
# reserved.
|
|
||||||
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
||||||
# University of Stuttgart. All rights reserved.
|
|
||||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
||||||
# All rights reserved.
|
|
||||||
# Copyright (c) 2008 Myricom. All rights reserved.
|
|
||||||
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
|
||||||
# $COPYRIGHT$
|
|
||||||
#
|
|
||||||
# Additional copyrights may follow
|
|
||||||
#
|
|
||||||
# $HEADER$
|
|
||||||
#
|
|
||||||
|
|
||||||
AM_CPPFLAGS = $(mpool_fake_CPPFLAGS)
|
|
||||||
|
|
||||||
sources = \
|
|
||||||
mpool_fake_module.c \
|
|
||||||
mpool_fake_component.c
|
|
||||||
|
|
||||||
if WANT_INSTALL_HEADERS
|
|
||||||
ompidir = $(includedir)/openmpi/$(subdir)
|
|
||||||
ompi_HEADERS = mpool_fake.h
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Make the output library in this directory, and name it either
|
|
||||||
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
|
|
||||||
# (for static builds).
|
|
||||||
|
|
||||||
if MCA_BUILD_ompi_mpool_fake_DSO
|
|
||||||
component_noinst =
|
|
||||||
component_install = mca_mpool_fake.la
|
|
||||||
else
|
|
||||||
component_noinst = libmca_mpool_fake.la
|
|
||||||
component_install =
|
|
||||||
endif
|
|
||||||
|
|
||||||
mcacomponentdir = $(pkglibdir)
|
|
||||||
mcacomponent_LTLIBRARIES = $(component_install)
|
|
||||||
mca_mpool_fake_la_SOURCES = $(sources)
|
|
||||||
mca_mpool_fake_la_LDFLAGS = -module -avoid-version
|
|
||||||
mca_mpool_fake_la_LIBADD = $(mpool_fake_LIBS)
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = $(component_noinst)
|
|
||||||
libmca_mpool_fake_la_SOURCES = $(sources)
|
|
||||||
libmca_mpool_fake_la_LDFLAGS = -module -avoid-version
|
|
||||||
libmca_mpool_fake_la_LIBADD = $(mpool_fake_LIBS)
|
|
@ -1,71 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
||||||
* University Research and Technology
|
|
||||||
* Corporation. All rights reserved.
|
|
||||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
|
||||||
* of Tennessee Research Foundation. All rights
|
|
||||||
* reserved.
|
|
||||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
||||||
* University of Stuttgart. All rights reserved.
|
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
||||||
* All rights reserved.
|
|
||||||
* Copyright (c) 2008 Myricom. All rights reserved.
|
|
||||||
*
|
|
||||||
* $COPYRIGHT$
|
|
||||||
*
|
|
||||||
* Additional copyrights may follow
|
|
||||||
*
|
|
||||||
* $HEADER$
|
|
||||||
*/
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef MCA_MPOOL_FAKE_H
|
|
||||||
#define MCA_MPOOL_FAKE_H
|
|
||||||
|
|
||||||
#include "ompi_config.h"
|
|
||||||
#include "ompi/mca/mpool/mpool.h"
|
|
||||||
|
|
||||||
BEGIN_C_DECLS
|
|
||||||
|
|
||||||
typedef struct mca_mpool_fake_component_t {
|
|
||||||
mca_mpool_base_component_t super;
|
|
||||||
} mca_mpool_fake_component_t;
|
|
||||||
|
|
||||||
OMPI_DECLSPEC extern mca_mpool_fake_component_t mca_mpool_fake_component;
|
|
||||||
|
|
||||||
typedef struct mca_mpool_base_resources_t {
|
|
||||||
int (*regcache_clean)(void *ptr, size_t size);
|
|
||||||
} mca_mpool_base_resources_t;
|
|
||||||
|
|
||||||
typedef struct mca_mpool_fake_module_t {
|
|
||||||
mca_mpool_base_module_t super;
|
|
||||||
mca_mpool_base_resources_t resources;
|
|
||||||
} mca_mpool_fake_module_t;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Initializes the mpool module.
|
|
||||||
*/
|
|
||||||
void mca_mpool_fake_module_init(mca_mpool_fake_module_t *mpool);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* unregister all registration covering the block of memory
|
|
||||||
*/
|
|
||||||
int mca_mpool_fake_release_memory(mca_mpool_base_module_t* mpool, void *base,
|
|
||||||
size_t size);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* finalize mpool
|
|
||||||
*/
|
|
||||||
void mca_mpool_fake_finalize(struct mca_mpool_base_module_t *mpool);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fault Tolerance Event Notification Function
|
|
||||||
* @param state Checkpoint Stae
|
|
||||||
* @return OMPI_SUCCESS or failure status
|
|
||||||
*/
|
|
||||||
int mca_mpool_fake_ft_event(int state);
|
|
||||||
|
|
||||||
END_C_DECLS
|
|
||||||
#endif
|
|
@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
||||||
* University Research and Technology
|
|
||||||
* Corporation. All rights reserved.
|
|
||||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
||||||
* of Tennessee Research Foundation. All rights
|
|
||||||
* reserved.
|
|
||||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
||||||
* University of Stuttgart. All rights reserved.
|
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
||||||
* All rights reserved.
|
|
||||||
* Copyright (c) 2008 Myricom. All rights reserved.
|
|
||||||
*
|
|
||||||
* $COPYRIGHT$
|
|
||||||
*
|
|
||||||
* Additional copyrights may follow
|
|
||||||
*
|
|
||||||
* $HEADER$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define OPAL_DISABLE_ENABLE_MEM_DEBUG 1
|
|
||||||
#include "ompi_config.h"
|
|
||||||
#include "opal/mca/base/base.h"
|
|
||||||
#include "opal/mca/base/mca_base_param.h"
|
|
||||||
#include "mpool_fake.h"
|
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_MALLOC_H
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Local functions
|
|
||||||
*/
|
|
||||||
static int mca_mpool_fake_open(void);
|
|
||||||
static mca_mpool_base_module_t* mca_mpool_fake_init(
|
|
||||||
struct mca_mpool_base_resources_t* resources);
|
|
||||||
|
|
||||||
mca_mpool_fake_component_t mca_mpool_fake_component = {
|
|
||||||
{
|
|
||||||
/* First, the mca_base_component_t struct containing meta
|
|
||||||
information about the component itself */
|
|
||||||
|
|
||||||
{
|
|
||||||
MCA_MPOOL_BASE_VERSION_2_0_0,
|
|
||||||
|
|
||||||
"fake", /* MCA component name */
|
|
||||||
OMPI_MAJOR_VERSION, /* MCA component major version */
|
|
||||||
OMPI_MINOR_VERSION, /* MCA component minor version */
|
|
||||||
OMPI_RELEASE_VERSION, /* MCA component release version */
|
|
||||||
mca_mpool_fake_open, /* component open */
|
|
||||||
NULL
|
|
||||||
},
|
|
||||||
{
|
|
||||||
/* The component is checkpoint ready */
|
|
||||||
MCA_BASE_METADATA_PARAM_CHECKPOINT
|
|
||||||
},
|
|
||||||
|
|
||||||
mca_mpool_fake_init
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* component open/close/init function
|
|
||||||
*/
|
|
||||||
static int mca_mpool_fake_open(void)
|
|
||||||
{
|
|
||||||
return OMPI_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static mca_mpool_base_module_t* mca_mpool_fake_init(
|
|
||||||
struct mca_mpool_base_resources_t* resources)
|
|
||||||
{
|
|
||||||
mca_mpool_fake_module_t* mpool_module;
|
|
||||||
|
|
||||||
mpool_module = (mca_mpool_fake_module_t*)
|
|
||||||
malloc(sizeof(mca_mpool_fake_module_t));
|
|
||||||
|
|
||||||
mpool_module->resources = *resources;
|
|
||||||
|
|
||||||
mca_mpool_fake_module_init(mpool_module);
|
|
||||||
|
|
||||||
return &mpool_module->super;
|
|
||||||
}
|
|
@ -1,66 +0,0 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
||||||
* University Research and Technology
|
|
||||||
* Corporation. All rights reserved.
|
|
||||||
* Copyright (c) 2004-2007 The University of Tennessee and The University
|
|
||||||
* of Tennessee Research Foundation. All rights
|
|
||||||
* reserved.
|
|
||||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
||||||
* University of Stuttgart. All rights reserved.
|
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
||||||
* All rights reserved.
|
|
||||||
* Copyright (c) 2008 Myricom. All rights reserved.
|
|
||||||
*
|
|
||||||
* $COPYRIGHT$
|
|
||||||
*
|
|
||||||
* Additional copyrights may follow
|
|
||||||
*
|
|
||||||
* $HEADER$
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define OPAL_DISABLE_ENABLE_MEM_DEBUG 1
|
|
||||||
#include "ompi_config.h"
|
|
||||||
#include "mpool_fake.h"
|
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "ompi/mca/mpool/base/base.h"
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Initializes the mpool module.
|
|
||||||
*/
|
|
||||||
void mca_mpool_fake_module_init(mca_mpool_fake_module_t* mpool)
|
|
||||||
{
|
|
||||||
mpool->super.mpool_component = &mca_mpool_fake_component.super;
|
|
||||||
mpool->super.mpool_base = NULL; /* no base .. */
|
|
||||||
mpool->super.mpool_alloc = NULL;
|
|
||||||
mpool->super.mpool_realloc = NULL;
|
|
||||||
mpool->super.mpool_free = NULL;
|
|
||||||
mpool->super.mpool_register = NULL;
|
|
||||||
mpool->super.mpool_find = NULL;
|
|
||||||
mpool->super.mpool_deregister = NULL;
|
|
||||||
mpool->super.mpool_release_memory = mca_mpool_fake_release_memory;
|
|
||||||
mpool->super.mpool_finalize = mca_mpool_fake_finalize;
|
|
||||||
mpool->super.mpool_ft_event = mca_mpool_fake_ft_event;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int mca_mpool_fake_release_memory(struct mca_mpool_base_module_t *mpool,
|
|
||||||
void *base, size_t size)
|
|
||||||
{
|
|
||||||
mca_mpool_fake_module_t *mpool_module = (mca_mpool_fake_module_t*)mpool;
|
|
||||||
|
|
||||||
mpool_module->resources.regcache_clean(base, size);
|
|
||||||
|
|
||||||
return OMPI_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
void mca_mpool_fake_finalize(struct mca_mpool_base_module_t *mpool)
|
|
||||||
{
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|
||||||
int mca_mpool_fake_ft_event(int state)
|
|
||||||
{
|
|
||||||
return OMPI_SUCCESS;
|
|
||||||
}
|
|
Загрузка…
x
Ссылка в новой задаче
Block a user