test: call opal_init/finalize_util in ddt tests
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
родитель
a39cb747dd
Коммит
46255d0790
@ -1,8 +1,10 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2018 Triad National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -14,6 +16,7 @@
|
|||||||
#include "opal/datatype/opal_convertor.h"
|
#include "opal/datatype/opal_convertor.h"
|
||||||
#include "ompi/datatype/ompi_datatype.h"
|
#include "ompi/datatype/ompi_datatype.h"
|
||||||
#include "opal/datatype/opal_datatype_checksum.h"
|
#include "opal/datatype/opal_datatype_checksum.h"
|
||||||
|
#include "opal/runtime/opal.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -38,6 +41,7 @@ int main( int argc, char* argv[] )
|
|||||||
struct iovec iov[2];
|
struct iovec iov[2];
|
||||||
opal_convertor_t* convertor;
|
opal_convertor_t* convertor;
|
||||||
|
|
||||||
|
opal_init_util (NULL, NULL);
|
||||||
ompi_datatype_init();
|
ompi_datatype_init();
|
||||||
srandom( (int)time(NULL) );
|
srandom( (int)time(NULL) );
|
||||||
/*srandomdev();*/
|
/*srandomdev();*/
|
||||||
@ -149,6 +153,7 @@ int main( int argc, char* argv[] )
|
|||||||
|
|
||||||
/* clean-ups all data allocations */
|
/* clean-ups all data allocations */
|
||||||
ompi_datatype_finalize();
|
ompi_datatype_finalize();
|
||||||
|
opal_finalize_util ();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
||||||
* University Research and Technology
|
* University Research and Technology
|
||||||
@ -13,6 +13,8 @@
|
|||||||
* Copyright (c) 2006 Sun Microsystems Inc. All rights reserved.
|
* Copyright (c) 2006 Sun Microsystems Inc. All rights reserved.
|
||||||
* Copyright (c) 2015-2017 Research Organization for Information Science
|
* Copyright (c) 2015-2017 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
|
* Copyright (c) 2018 Triad National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -63,6 +65,7 @@ main(int argc, char* argv[])
|
|||||||
int _dbg = 0;
|
int _dbg = 0;
|
||||||
while (_dbg) poll(NULL, 0, 1);
|
while (_dbg) poll(NULL, 0, 1);
|
||||||
|
|
||||||
|
opal_init_util (NULL, NULL);
|
||||||
ompi_datatype_init();
|
ompi_datatype_init();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -397,6 +400,7 @@ main(int argc, char* argv[])
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
ompi_datatype_finalize();
|
ompi_datatype_finalize();
|
||||||
|
opal_finalize_util ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
||||||
* University Research and Technology
|
* University Research and Technology
|
||||||
@ -13,6 +13,8 @@
|
|||||||
* Copyright (c) 2006 Sun Microsystems Inc. All rights reserved.
|
* Copyright (c) 2006 Sun Microsystems Inc. All rights reserved.
|
||||||
* Copyright (c) 2018 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2018 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2018 Triad National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -23,6 +25,8 @@
|
|||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
#include "ddt_lib.h"
|
#include "ddt_lib.h"
|
||||||
#include "opal/datatype/opal_convertor.h"
|
#include "opal/datatype/opal_convertor.h"
|
||||||
|
#include "opal/runtime/opal.h"
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef HAVE_SYS_TIME_H
|
#ifdef HAVE_SYS_TIME_H
|
||||||
@ -148,6 +152,7 @@ int main( int argc, char* argv[] )
|
|||||||
ompi_datatype_t *pdt, *pdt1, *pdt2, *pdt3;
|
ompi_datatype_t *pdt, *pdt1, *pdt2, *pdt3;
|
||||||
int rc, length = 500, iov_num = 5;
|
int rc, length = 500, iov_num = 5;
|
||||||
|
|
||||||
|
opal_init_util (NULL, NULL);
|
||||||
ompi_datatype_init();
|
ompi_datatype_init();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -310,6 +315,7 @@ int main( int argc, char* argv[] )
|
|||||||
|
|
||||||
/* clean-ups all data allocations */
|
/* clean-ups all data allocations */
|
||||||
ompi_datatype_finalize();
|
ompi_datatype_finalize();
|
||||||
|
opal_finalize_util ();
|
||||||
|
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004-2007 The University of Tennessee and The University
|
* Copyright (c) 2004-2007 The University of Tennessee and The University
|
||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
|
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2018 Triad National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -19,6 +21,7 @@
|
|||||||
#include "opal/datatype/opal_convertor.h"
|
#include "opal/datatype/opal_convertor.h"
|
||||||
#include "ompi/datatype/ompi_datatype.h"
|
#include "ompi/datatype/ompi_datatype.h"
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
|
#include "opal/runtime/opal.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The purpose of this test is to simulate the multi-network packing and
|
* The purpose of this test is to simulate the multi-network packing and
|
||||||
@ -231,7 +234,7 @@ int main( int argc, char* argv[] )
|
|||||||
}
|
}
|
||||||
memcpy(recv_buffer, send_buffer, sizeof(ddt_ldi_t) * data_count );
|
memcpy(recv_buffer, send_buffer, sizeof(ddt_ldi_t) * data_count );
|
||||||
|
|
||||||
opal_datatype_init();
|
opal_init_util (NULL, NULL);
|
||||||
ompi_datatype_init();
|
ompi_datatype_init();
|
||||||
|
|
||||||
#if (OPAL_ENABLE_DEBUG == 1) && (OPAL_C_HAVE_VISIBILITY == 0)
|
#if (OPAL_ENABLE_DEBUG == 1) && (OPAL_C_HAVE_VISIBILITY == 0)
|
||||||
@ -278,6 +281,7 @@ int main( int argc, char* argv[] )
|
|||||||
free(segments);
|
free(segments);
|
||||||
|
|
||||||
ompi_datatype_finalize();
|
ompi_datatype_finalize();
|
||||||
|
opal_finalize_util ();
|
||||||
|
|
||||||
return (0 == errors ? 0 : -1);
|
return (0 == errors ? 0 : -1);
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004-2017 The University of Tennessee and The University
|
* Copyright (c) 2004-2017 The University of Tennessee and The University
|
||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2011-2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
|
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2018 Triad National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -19,6 +21,7 @@
|
|||||||
#include "opal/datatype/opal_convertor.h"
|
#include "opal/datatype/opal_convertor.h"
|
||||||
#include "ompi/datatype/ompi_datatype.h"
|
#include "ompi/datatype/ompi_datatype.h"
|
||||||
#include "opal/util/output.h"
|
#include "opal/util/output.h"
|
||||||
|
#include "opal/runtime/opal.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The purpose of this test is to simulate the multi-network packing and
|
* The purpose of this test is to simulate the multi-network packing and
|
||||||
@ -199,7 +202,7 @@ int main( int argc, char* argv[] )
|
|||||||
recv_buffer[i] = 0xdeadbeef;
|
recv_buffer[i] = 0xdeadbeef;
|
||||||
}
|
}
|
||||||
|
|
||||||
opal_datatype_init();
|
opal_init_util (NULL, NULL);
|
||||||
ompi_datatype_init();
|
ompi_datatype_init();
|
||||||
|
|
||||||
ompi_datatype_create_vector(NELT/2, 1, 2, MPI_INT, &datatype);
|
ompi_datatype_create_vector(NELT/2, 1, 2, MPI_INT, &datatype);
|
||||||
@ -245,6 +248,7 @@ int main( int argc, char* argv[] )
|
|||||||
free(segments);
|
free(segments);
|
||||||
|
|
||||||
ompi_datatype_finalize();
|
ompi_datatype_finalize();
|
||||||
|
opal_finalize_util ();
|
||||||
|
|
||||||
return (0 == errors ? 0 : -1);
|
return (0 == errors ? 0 : -1);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user