1
1

Remove the memcpy we can do it as we parse the datatypes in order to increase their references.

This commit was SVN r7811.
Этот коммит содержится в:
George Bosilca 2005-10-19 20:51:11 +00:00
родитель 6c6f17628f
Коммит 8987bcabe2
2 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -165,11 +165,9 @@ int32_t ompi_ddt_set_args( ompi_datatype_t* pData,
/* copy the array of MPI_Aint */
if( pArgs->a != NULL )
memcpy( pArgs->a, a, ca * sizeof(MPI_Aint) );
/* copy the array of types */
if( pArgs->d != NULL )
memcpy( pArgs->d, d, cd * sizeof(MPI_Datatype) );
for( pos = 0; pos < cd; pos++ ) {
pArgs->d[pos] = d[pos];
if( !(d[pos]->flags & DT_FLAG_PREDEFINED) ) {
/* We handle a user defined datatype. We should make sure that the
* user will not have the oportunity to destroy it before all derived

Просмотреть файл

@ -18,9 +18,6 @@
#include "datatype/datatype.h"
#include "datatype/convertor.h"
#include "request/request.h"
#include "mca/pml/pml.h"
/*
* ompi_dtsndrcv