- In the included headers, the string.h is missing.
- For size_t, Posix offers %z length modifier, get rid of warning (or need to cast...) This commit was SVN r21165.
Этот коммит содержится в:
родитель
f6b95c4ee0
Коммит
7663fb47f0
@ -23,7 +23,12 @@
|
|||||||
#include "ompi/datatype/convertor.h"
|
#include "ompi/datatype/convertor.h"
|
||||||
#include "ompi/proc/proc.h"
|
#include "ompi/proc/proc.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_STDLIB_H
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_STRING_H
|
||||||
|
#include <string.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -115,7 +115,7 @@ static int local_copy_ddt_raw( ompi_datatype_t* pdt, int count, int iov_num )
|
|||||||
GET_TIME( start );
|
GET_TIME( start );
|
||||||
while( 0 == ompi_convertor_raw(convertor, iov, &iov_count, &max_data) ) {
|
while( 0 == ompi_convertor_raw(convertor, iov, &iov_count, &max_data) ) {
|
||||||
#if 0
|
#if 0
|
||||||
printf( "New raw extraction (iov_count = %d, max_data = %lu)\n",
|
printf( "New raw extraction (iov_count = %d, max_data = %zu)\n",
|
||||||
iov_count, max_data );
|
iov_count, max_data );
|
||||||
for( i = 0; i < iov_count; i++ ) {
|
for( i = 0; i < iov_count; i++ ) {
|
||||||
printf( "\t{%p, %d}\n", iov[i].iov_base, iov[i].iov_len );
|
printf( "\t{%p, %d}\n", iov[i].iov_base, iov[i].iov_len );
|
||||||
@ -130,7 +130,7 @@ static int local_copy_ddt_raw( ompi_datatype_t* pdt, int count, int iov_num )
|
|||||||
printf( "raw extraction in %ld microsec\n", total_time );
|
printf( "raw extraction in %ld microsec\n", total_time );
|
||||||
OBJ_RELEASE( convertor );
|
OBJ_RELEASE( convertor );
|
||||||
if( remaining_length != 0 ) {
|
if( remaining_length != 0 ) {
|
||||||
printf( "Not all raw description was been extracted (%ld bytes missing)\n",
|
printf( "Not all raw description was been extracted (%zd bytes missing)\n",
|
||||||
remaining_length );
|
remaining_length );
|
||||||
}
|
}
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user