1
1
openmpi/ompi/mca/coll/ml/coll_ml_descriptors.c
Pavel Shamis 8cf3c95494 Fixing ML COLL compilation issues on some SUN platforms. For more detail see following mail thread:
http://www.open-mpi.org/community/lists/devel/2012/08/11448.php
A lot of thanks to Paul Hargrove for the issue analysis and patch testing.
Refs trac:3243

This commit was SVN r27178.

The following Trac tickets were found above:
  Ticket 3243 --> https://svn.open-mpi.org/trac/ompi/ticket/3243
2012-08-29 14:10:42 +00:00

53 строки
1.2 KiB
C

/*
* Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "coll_ml.h"
#include "coll_ml_inlines.h"
static inline void mca_coll_ml_fragment_constructor(mca_coll_ml_fragment_t *frag)
{
}
static inline void mca_coll_ml_fragment_destructor(mca_coll_ml_fragment_t *frag)
{
}
static inline void mca_coll_ml_descriptor_constructor(mca_coll_ml_descriptor_t *descriptor)
{
OBJ_CONSTRUCT(&(descriptor->fragment),mca_coll_ml_fragment_t);
/* this fragment is alway associated with this message descriptor */
descriptor->fragment.full_msg_descriptor=descriptor;
}
static inline void mca_coll_ml_descriptor_destructor(mca_coll_ml_descriptor_t *descriptor)
{
OBJ_DESTRUCT(&(descriptor->fragment));
}
OBJ_CLASS_INSTANCE(
mca_coll_ml_fragment_t,
opal_list_item_t,
mca_coll_ml_fragment_constructor,
mca_coll_ml_fragment_destructor);
OBJ_CLASS_INSTANCE(
mca_coll_ml_descriptor_t,
ompi_request_t,
mca_coll_ml_descriptor_constructor,
mca_coll_ml_descriptor_destructor);