2005-01-28 00:08:35 +03:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-01-28 00:08:35 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2010-07-28 18:20:58 +04:00
|
|
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
2005-01-28 00:08:35 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
clean up the OMPI_BUILDING #define. Rather than being defined to 1 if
we are part of the source tree and not defined otherwise, we are going
with an always defined if ompi_config.h is included policy. If
ompi_config.h is included before mpi.h or before OMPI_BUILDING is set,
it will set OMPI_BUILDING to 1 and enable all the internal code that
is in ompi_config_bottom.h. Otherwise, it will only include the
system configuration data (enough for defining the C and C++ interfaces
to MPI, but not perturbing the user environment).
This should fix the problems with bool and the like that the Eclipse
folks were seeing. It also cleans up some build system hacks that
we had along the way.
Also, don't use int64_t as the default size of MPI_Offset, because it
requires us including stdint.h in mpi.h, which is something we really
shouldn't be doing.
And finally, fix a ROMIO Makefile that didn't set -DOMPI_BUILDING=1,
as ROMIO includes mpi.h, but not ompi_config.h
This commit was SVN r5430.
2005-04-19 07:51:20 +04:00
|
|
|
#define OMPI_BUILDING 0
|
2010-07-28 18:20:58 +04:00
|
|
|
#include "opal_config.h"
|
2005-01-28 00:08:35 +03:00
|
|
|
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/sys/atomic.h"
|
2005-01-28 00:08:35 +03:00
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2005-07-04 01:38:51 +04:00
|
|
|
#if OPAL_HAVE_ATOMIC_MEM_BARRIER
|
2005-04-18 23:33:23 +04:00
|
|
|
|
2005-01-28 00:08:35 +03:00
|
|
|
/* there really isn't a great way to test that the barriers
|
|
|
|
actually barrier, but at least make sure they don't kill the
|
|
|
|
machine.*/
|
|
|
|
|
2005-07-04 01:38:51 +04:00
|
|
|
opal_atomic_mb();
|
|
|
|
opal_atomic_rmb();
|
|
|
|
opal_atomic_wmb();
|
2005-01-28 00:08:35 +03:00
|
|
|
|
|
|
|
return 0;
|
2005-04-18 23:33:23 +04:00
|
|
|
#else
|
|
|
|
return 77;
|
|
|
|
#endif
|
2005-01-28 00:08:35 +03:00
|
|
|
}
|
|
|
|
|