Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Francois Tessier
TAPIOCA
Commits
67d54621
Commit
67d54621
authored
Apr 24, 2017
by
François Tessier
Browse files
Add member and env variable to disable pipelined buffers
parent
19da3380
Changes
2
Hide whitespace changes
Inline
Side-by-side
tapioca.cpp
View file @
67d54621
...
...
@@ -79,6 +79,7 @@ void Tapioca::SetDefaultValues ()
this
->
currentDataSize_
=
0
;
this
->
nCommit_
=
0
;
this
->
writeDevNull_
=
false
;
this
->
pipelinedBuffers_
=
true
;
/* DEBUG */
}
...
...
@@ -90,6 +91,7 @@ void Tapioca::ParseEnvVariables ()
char
*
envBufferSize
=
getenv
(
"TAPIOCA_BUFFERSIZE"
);
char
*
envSplit
=
getenv
(
"TAPIOCA_COMMSPLIT"
);
char
*
envDevNull
=
getenv
(
"TAPIOCA_DEVNULL"
);
char
*
envPipelining
=
getenv
(
"TAPIOCA_PIPELINING"
);
if
(
envStrategy
!=
NULL
)
{
strcmp
(
envStrategy
,
"SHORTEST_PATH"
)
?
0
:
this
->
strategy_
=
SHORTEST_PATH
;
...
...
@@ -116,6 +118,11 @@ void Tapioca::ParseEnvVariables ()
strcmp
(
envDevNull
,
"true"
)
?
0
:
this
->
writeDevNull_
=
true
;
strcmp
(
envDevNull
,
"false"
)
?
0
:
this
->
writeDevNull_
=
false
;
}
if
(
envPipelining
!=
NULL
)
{
strcmp
(
envPipelining
,
"true"
)
?
0
:
this
->
pipelinedBuffers_
=
true
;
strcmp
(
envPipelining
,
"false"
)
?
0
:
this
->
pipelinedBuffers_
=
false
;
}
}
...
...
tapioca.hpp
View file @
67d54621
...
...
@@ -173,6 +173,7 @@ class Tapioca
bool
writeDevNull_
;
MPI_File
devNullFileHandle_
;
bool
pipelinedBuffers_
;
/* TIMING */
double
startAggrTime
,
endAggrTime
,
totAggrTime
;
double
startIOTime
,
endIOTime
,
totIOTime
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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