A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use #if instead if #ifdef for the things in the public config header
[simgrid.git]
/
src
/
smpi
/
smpi_mpi_dt.cpp
diff --git
a/src/smpi/smpi_mpi_dt.cpp
b/src/smpi/smpi_mpi_dt.cpp
index
59af331
..
5e5b242
100644
(file)
--- a/
src/smpi/smpi_mpi_dt.cpp
+++ b/
src/smpi/smpi_mpi_dt.cpp
@@
-377,7
+377,7
@@
void smpi_datatype_create(MPI_Datatype* new_type, int size,int lb, int ub, int h
new_t->attributes=NULL;
*new_type = new_t;
new_t->attributes=NULL;
*new_type = new_t;
-#if
def
HAVE_MC
+#if HAVE_MC
if(MC_is_active())
MC_ignore(&(new_t->in_use), sizeof(new_t->in_use));
#endif
if(MC_is_active())
MC_ignore(&(new_t->in_use), sizeof(new_t->in_use));
#endif
@@
-420,7
+420,7
@@
void smpi_datatype_free(MPI_Datatype* type){
void smpi_datatype_use(MPI_Datatype type){
if(type)type->in_use++;
void smpi_datatype_use(MPI_Datatype type){
if(type)type->in_use++;
-#if
def
HAVE_MC
+#if HAVE_MC
if(MC_is_active())
MC_ignore(&(type->in_use), sizeof(type->in_use));
#endif
if(MC_is_active())
MC_ignore(&(type->in_use), sizeof(type->in_use));
#endif
@@
-433,7
+433,7
@@
void smpi_datatype_unuse(MPI_Datatype type){
if(type && type->in_use == 0 && (type->flags & DT_FLAG_DESTROYED))
smpi_datatype_free(&type);
if(type && type->in_use == 0 && (type->flags & DT_FLAG_DESTROYED))
smpi_datatype_free(&type);
-#if
def
HAVE_MC
+#if HAVE_MC
if(MC_is_active())
MC_ignore(&(type->in_use), sizeof(type->in_use));
#endif
if(MC_is_active())
MC_ignore(&(type->in_use), sizeof(type->in_use));
#endif