From fc9133cc7f4a811cf05f4bcc6b0b1fbb1d4dcb6c Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 20 Jan 2011 20:05:21 +0000 Subject: [PATCH] Correctly initialize the convertor to be used. Don't forget to initialize the OPAL datatype module. This commit was SVN r24279. --- test/datatype/position.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/datatype/position.c b/test/datatype/position.c index 3f821f7089..3f5f784f3d 100644 --- a/test/datatype/position.c +++ b/test/datatype/position.c @@ -51,7 +51,7 @@ create_segments( ompi_datatype_t* datatype, int count, allocate_segments: *segments = (ddt_segment_t*)malloc( (*seg_count) * sizeof(ddt_segment_t) ); - convertor = opal_convertor_create( 0, 0 ); + convertor = opal_convertor_create( opal_local_arch, 0 ); opal_convertor_prepare_for_send( convertor, &(datatype->super), count, NULL ); position = 0; @@ -225,6 +225,7 @@ int main( int argc, char* argv[] ) } memcpy(recv_buffer, send_buffer, sizeof(ddt_ldi_t) * data_count ); + opal_datatype_init(); ompi_datatype_init(); #if (OPAL_ENABLE_DEBUG == 1) && (OPAL_C_HAVE_VISIBILITY == 0)