Add the OMPI_SKIP_MPICXX to allow the user to avoid the inclusion of the
CXX bindings if a C code is compiled with a CXX compiler. This commit was SVN r9567.
Этот коммит содержится в:
родитель
f710ef5b2b
Коммит
7055e9765e
3
NEWS
3
NEWS
@ -24,6 +24,9 @@ version 1.0.
|
||||
1.1
|
||||
---
|
||||
|
||||
- Add a define OMPI_SKIP_CXX to allow the user to skip the mpicxx.h from
|
||||
being included in mpi.h. It allows the user to compile C code with a CXX
|
||||
compiler without including the CXX bindings.
|
||||
- The PERUSE support is now available directly on the trunk. In order to
|
||||
activate it add --enable-peruse to the configure options. All events
|
||||
described in the PERUSE 2.0 draft are supported, plus one Open MPI
|
||||
|
@ -2,7 +2,7 @@
|
||||
* 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
|
||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -1745,12 +1745,13 @@ OMPI_DECLSPEC double PMPI_Wtime(void);
|
||||
|
||||
/*
|
||||
* Conditional MPI 2 C++ bindings support. Include if:
|
||||
* - The user does not explicitly request us to skip it (when a C++ compiler
|
||||
* is used to compile C code).
|
||||
* - We want C++ bindings support
|
||||
* - We are not building OMPI itself
|
||||
* - We are using a C++ compiler
|
||||
*/
|
||||
|
||||
#if defined(OMPI_WANT_CXX_BINDINGS) && OMPI_WANT_CXX_BINDINGS && !OMPI_BUILDING
|
||||
#if !defined(OMPI_SKIP_MPICXX) && OMPI_WANT_CXX_BINDINGS && !OMPI_BUILDING
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
#include "ompi/mpi/cxx/mpicxx.h"
|
||||
#endif
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user