Remove the unnecessary ompi_modex_recv_pointer function.
This commit was SVN r27744.
Этот коммит содержится в:
родитель
34eecb8956
Коммит
791f31d688
@ -90,28 +90,6 @@ ompi_modex_recv(const mca_base_component_t *component,
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* return a pointer to the data, but don't create a new copy of it */
|
||||
int ompi_modex_recv_pointer(const mca_base_component_t *component,
|
||||
const ompi_proc_t *proc,
|
||||
void **buffer, opal_data_type_t type)
|
||||
{
|
||||
int rc;
|
||||
char *name = mca_base_component_to_string(component);
|
||||
|
||||
/* set defaults */
|
||||
*buffer = NULL;
|
||||
|
||||
if (NULL == name) {
|
||||
return OMPI_ERR_OUT_OF_RESOURCE;
|
||||
}
|
||||
|
||||
/* the fetch_poointer API returns a pointer to the data */
|
||||
rc = orte_db.fetch_pointer(&proc->proc_name, name, buffer, type);
|
||||
free(name);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int
|
||||
ompi_modex_send_string(const char* key,
|
||||
const void *buffer, size_t size)
|
||||
|
@ -191,11 +191,6 @@ OMPI_DECLSPEC int ompi_modex_recv(const mca_base_component_t *dest_component,
|
||||
const ompi_proc_t *source_proc,
|
||||
void **buffer, size_t *size);
|
||||
|
||||
|
||||
OMPI_DECLSPEC int ompi_modex_recv_pointer(const mca_base_component_t *component,
|
||||
const ompi_proc_t *proc,
|
||||
void **buffer, opal_data_type_t type);
|
||||
|
||||
/**
|
||||
* Receive a buffer from a given peer
|
||||
*
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user