Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Buehlmann
GenericIO
Commits
72ac664b
Commit
72ac664b
authored
Aug 26, 2016
by
Hal Finkel
Browse files
Optionally, the GIO write benchmark should create compressed files
parent
754e14cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
GenericIOBenchmarkWrite.cxx
View file @
72ac664b
...
...
@@ -63,16 +63,23 @@ int main(int argc, char *argv[]) {
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
commRank
);
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
commRanks
);
int
a
=
1
;
if
(
argc
>
1
&&
string
(
argv
[
a
])
==
"-c"
)
{
GenericIO
::
setDefaultShouldCompress
(
true
);
--
argc
;
++
a
;
}
if
(
argc
!=
4
)
{
fprintf
(
stderr
,
"USAGE: %s <mpiioName> <NP> <seed>
\n
"
,
argv
[
0
]);
fprintf
(
stderr
,
"USAGE: %s
[-c]
<mpiioName> <NP> <seed>
\n
"
,
argv
[
0
]);
exit
(
-
1
);
}
GenericIO
::
setNaturalDefaultPartition
();
char
*
mpiioName
=
argv
[
1
];
size_t
Np
=
atoi
(
argv
[
2
])
/
commRanks
;
int
seed
=
atoi
(
argv
[
3
]);
char
*
mpiioName
=
argv
[
a
++
];
size_t
Np
=
atoi
(
argv
[
a
++
])
/
commRanks
;
int
seed
=
atoi
(
argv
[
a
++
]);
srand48
(
seed
+
commRank
);
...
...
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