221fb9dbca
- Delete unnecessary header files using contrib/check_unnecessary_headers.sh after applying patches, that include headers, being "lost" due to inclusion in one of the now deleted headers... In total 817 files are touched. In ompi/mpi/c/ header files are moved up into the actual c-file, where necessary (these are the only additional #include), otherwise it is only deletions of #include (apart from the above additions required due to notifier...) - To get different MCAs (OpenIB, TM, ALPS), an earlier version was successfully compiled (yesterday) on: Linux locally using intel-11, gcc-4.3.2 and gcc-SVN + warnings enabled Smoky cluster (x86-64 running Linux) using PGI-8.0.2 + warnings enabled Lens cluster (x86-64 running Linux) using Pathscale-3.2 + warnings enabled This commit was SVN r21096.
44 строки
1.3 KiB
C
44 строки
1.3 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
* All rights reserved.
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
* 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$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "opal_config.h"
|
|
|
|
#include "opal/dss/dss_internal.h"
|
|
|
|
int opal_dss_get(void **data, opal_dss_value_t *value, opal_data_type_t type)
|
|
{
|
|
/* check for error */
|
|
if (NULL == value || NULL == data) {
|
|
return OPAL_ERR_BAD_PARAM;
|
|
}
|
|
|
|
/* okay, we assume that the user has provided memory for the destination.
|
|
* check to ensure the data types match.
|
|
* this is absolutely critical as "get" will NOT allocate space
|
|
* but will assume that *data contains a valid address for the
|
|
* type of data being requested
|
|
*/
|
|
if (type != value->type) {
|
|
return OPAL_ERR_TYPE_MISMATCH;
|
|
}
|
|
|
|
/* point the destination at the value */
|
|
*data = value->data;
|
|
|
|
return OPAL_SUCCESS;
|
|
}
|
|
|