|
@@ -115,7 +115,7 @@ int _starpu_debug_rank;
|
|
|
fprintf(stderr, "[%d][starpu_mpi] :%d:%s:%d:%d:%ld:%s:%p:%ld:%d:%s:%d\n", _rank, _rank, way, node, tag, utag, _comm_name, ptr, count, __size, __starpu_func__ , __LINE__); \
|
|
|
fflush(stderr); \
|
|
|
} \
|
|
|
- } while(0);
|
|
|
+ } while(0)
|
|
|
# define _STARPU_MPI_COMM_TO_DEBUG(ptr, count, datatype, dest, tag, utag, comm) _STARPU_MPI_COMM_DEBUG(ptr, count, datatype, dest, tag, utag, comm, "-->")
|
|
|
# define _STARPU_MPI_COMM_FROM_DEBUG(ptr, count, datatype, source, tag, utag, comm) _STARPU_MPI_COMM_DEBUG(ptr, count, datatype, source, tag, utag, comm, "<--")
|
|
|
# define _STARPU_MPI_DEBUG(level, fmt, ...) \
|
|
@@ -127,7 +127,7 @@ int _starpu_debug_rank;
|
|
|
fprintf(stderr, "%*s[%d][starpu_mpi][%s:%d] " fmt , (_starpu_debug_rank+1)*4, "", _starpu_debug_rank, __starpu_func__ , __LINE__,## __VA_ARGS__); \
|
|
|
fflush(stderr); \
|
|
|
} \
|
|
|
- } while(0);
|
|
|
+ } while(0)
|
|
|
#else
|
|
|
# define _STARPU_MPI_COMM_DEBUG(ptr, count, datatype, node, tag, utag, comm, way) do { } while(0)
|
|
|
# define _STARPU_MPI_COMM_TO_DEBUG(ptr, count, datatype, dest, tag, utag, comm) do { } while(0)
|
|
@@ -138,10 +138,10 @@ int _starpu_debug_rank;
|
|
|
#define _STARPU_MPI_DISP(fmt, ...) do { if (!_starpu_silent) { \
|
|
|
if (_starpu_debug_rank == -1) starpu_mpi_comm_rank(MPI_COMM_WORLD, &_starpu_debug_rank); \
|
|
|
fprintf(stderr, "%*s[%d][starpu_mpi][%s:%d] " fmt , (_starpu_debug_rank+1)*4, "", _starpu_debug_rank, __starpu_func__ , __LINE__ ,## __VA_ARGS__); \
|
|
|
- fflush(stderr); }} while(0);
|
|
|
+ fflush(stderr); }} while(0)
|
|
|
#define _STARPU_MPI_MSG(fmt, ...) do { if (_starpu_debug_rank == -1) starpu_mpi_comm_rank(MPI_COMM_WORLD, &_starpu_debug_rank); \
|
|
|
fprintf(stderr, "[%d][starpu_mpi][%s:%d] " fmt , _starpu_debug_rank, __starpu_func__ , __LINE__ ,## __VA_ARGS__); \
|
|
|
- fflush(stderr); } while(0);
|
|
|
+ fflush(stderr); } while(0)
|
|
|
|
|
|
#ifdef STARPU_MPI_EXTRA_VERBOSE
|
|
|
# define _STARPU_MPI_LOG_IN() do { if (!_starpu_silent) { \
|