Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Francois Tessier
TAPIOCA
Commits
4306067c
Commit
4306067c
authored
Aug 16, 2017
by
Francois Tessier
Browse files
Change the preprocessor variable printing debug messages
parent
984b2b17
Changes
4
Hide whitespace changes
Inline
Side-by-side
tapioca.cpp
View file @
4306067c
...
...
@@ -76,7 +76,6 @@ void Tapioca::SetDefaultValues ()
this
->
nCommit_
=
0
;
this
->
writeDevNull_
=
false
;
this
->
pipelinedBuffers_
=
true
;
/* DEBUG */
}
...
...
@@ -238,9 +237,9 @@ void Tapioca::IdentifyMyAggregators ()
}
}
#ifdef D
EBU
G
#ifdef D
B
G
if
(
this
->
commRank_
==
4
)
{
f
print
f
(
stdout
,
"[
DEBUG
]
Rounds distrib. on %d aggregators: AGG "
,
this
->
nAggr_
);
print
Msg
(
DEBUG
,
"
Rounds distrib. on %d aggregators: AGG "
,
this
->
nAggr_
);
for
(
i
=
0
;
i
<
this
->
totalNeededBuffers_
;
i
++
)
fprintf
(
stdout
,
"%d "
,
rounds
[
i
].
aggr
);
fprintf
(
stdout
,
"
\n
RND "
);
...
...
@@ -364,7 +363,7 @@ void Tapioca::ElectAggregators ()
if
(
this
->
globalAggregatorsRanks
[
i
]
==
aggr
)
this
->
aggregatorsRanks
[
i
]
=
aggrRank
;
#ifdef D
EBU
G
#ifdef D
B
G
int
coords
[
topology
.
NetworkDimensions
()
+
1
];
if
(
this
->
commRank_
==
aggrRank
)
{
topology
.
RankToCoordinates
(
this
->
worldRank_
,
coords
);
...
...
@@ -414,10 +413,10 @@ void Tapioca::InitAggregators ()
{
int
aggr
,
retval
;
this
->
memBuffer0
.
memAlloc
(
this
->
bufferSize_
,
DDR
,
this
->
amAnAggr_
,
""
,
this
->
subComm_
);
this
->
memBuffer1
.
memAlloc
(
this
->
bufferSize_
,
DDR
,
this
->
amAnAggr_
,
""
,
this
->
subComm_
);
this
->
memBuffer0
.
memAlloc
(
this
->
bufferSize_
,
HBM
,
this
->
amAnAggr_
,
""
,
this
->
subComm_
);
this
->
memBuffer1
.
memAlloc
(
this
->
bufferSize_
,
HBM
,
this
->
amAnAggr_
,
""
,
this
->
subComm_
);
#ifdef D
EBU
G
#ifdef D
B
G
if
(
this
->
commRank_
==
MASTER
)
{
fprintf
(
stdout
,
"[DEBUG] %d RMA windows created (%d aggr., %d buffers)
\n
"
,
NBUFFERS
,
this
->
nAggr_
,
NBUFFERS
);
...
...
@@ -456,7 +455,7 @@ const char* Tapioca::getStrategyName ()
void
Tapioca
::
HandleMPIError
(
int
retval
)
{
#ifdef D
EBU
G
#ifdef D
B
G
char
msg
[
MPI_MAX_ERROR_STRING
];
int
resultlen
;
if
(
retval
!=
MPI_SUCCESS
)
{
...
...
tp_placement.cpp
View file @
4306067c
...
...
@@ -21,7 +21,7 @@ int Tapioca::RankShortestPath (MPI_Comm aggrComm, int64_t dataSize)
this
->
amAnAggr_
=
true
;
}
#ifdef D
EBU
G
#ifdef D
B
G
if
(
shortestPath
.
rank
==
commRank
)
fprintf
(
stdout
,
"[DEBUG] Aggr. rank %d in aggrComm, distance to I/O node %d hops
\n
"
,
shortestPath
.
rank
,
shortestPath
.
hops
);
...
...
@@ -54,7 +54,7 @@ int Tapioca::RankLongestPath (MPI_Comm aggrComm, int64_t dataSize)
this
->
amAnAggr_
=
true
;
}
#ifdef D
EBU
G
#ifdef D
B
G
if
(
longestPath
.
rank
==
commRank
)
fprintf
(
stdout
,
"[DEBUG] Aggr. rank %d in aggrComm, distance to I/O node %d hops
\n
"
,
longestPath
.
rank
,
longestPath
.
hops
);
...
...
@@ -124,7 +124,7 @@ int Tapioca::RankTopologyAware (MPI_Comm aggrComm, int64_t dataSize)
MPI_Bcast
(
&
aggrRank
,
1
,
MPI_INT
,
minCost
.
rank
,
aggrComm
);
#ifdef D
EBU
G
#ifdef D
B
G
if
(
minCost
.
rank
==
aggrCommRank
)
fprintf
(
stdout
,
"[DEBUG] Aggr. rank %d in aggrComm, distance to I/O node %d hops, cost: %.4f
\n
"
,
minCost
.
rank
,
topology
.
DistanceToIONode
(
worldRank
),
minCost
.
cost
);
...
...
@@ -250,7 +250,7 @@ int Tapioca::RankContentionAware (MPI_Comm aggrComm, int64_t dataSize)
MPI_Bcast
(
&
aggrRank
,
1
,
MPI_INT
,
minCost
.
rank
,
aggrComm
);
#ifdef D
EBU
G
#ifdef D
B
G
if
(
minCost
.
rank
==
aggrCommRank
)
fprintf
(
stdout
,
"[DEBUG] Aggr. rank %d in aggrComm, distance to I/O node %d hops, cost: %.4f
\n
"
,
minCost
.
rank
,
topology
.
DistanceToIONode
(
this
->
worldRank_
),
minCost
.
cost
);
...
...
tp_read.cpp
View file @
4306067c
...
...
@@ -33,7 +33,7 @@ void Tapioca::ReadInitialize (char *filename, int64_t *chunkCount, int *chunkSiz
this
->
SetCommValues
();
this
->
SetOffsets
();
#ifdef D
EBU
G
#ifdef D
B
G
if
(
this
->
commRank_
==
MASTER
)
{
fprintf
(
stdout
,
"[DEBUG] #Aggr = %d
\n
"
,
this
->
nAggr_
);
fprintf
(
stdout
,
"[DEBUG] bufferSize = %lld
\n
"
,
this
->
bufferSize_
);
...
...
tp_write.cpp
View file @
4306067c
...
...
@@ -38,7 +38,7 @@ void Tapioca::WriteInitialize (char *filename, int64_t *chunkCount, int *chunkSi
MPI_MODE_WRONLY
|
MPI_MODE_CREATE
,
MPI_INFO_NULL
,
&
this
->
devNullFileHandle_
);
#ifdef D
EBU
G
#ifdef D
B
G
if
(
this
->
commRank_
==
MASTER
)
{
fprintf
(
stdout
,
"[DEBUG] #Aggr = %d
\n
"
,
this
->
nAggr_
);
fprintf
(
stdout
,
"[DEBUG] bufferSize = %lld
\n
"
,
this
->
bufferSize_
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment