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
Elsa Gonsiorowski
codes
Commits
04f3eab4
Commit
04f3eab4
authored
Jul 06, 2015
by
Jonathan Jenkins
Browse files
allow rank dumping from specific starting ranks
parent
db92ff07
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/workload/codes-workload-dump.c
View file @
04f3eab4
...
...
@@ -16,11 +16,13 @@ static iolang_params i_params = {0, 0, "", ""};
static
recorder_params
r_params
=
{
""
,
0
};
static
dumpi_trace_params
du_params
=
{
""
,
0
};
static
int
n
=
-
1
;
static
int
start_rank
=
0
;
static
struct
option
long_opts
[]
=
{
{
"type"
,
required_argument
,
NULL
,
't'
},
{
"num-ranks"
,
required_argument
,
NULL
,
'n'
},
{
"start-rank"
,
required_argument
,
NULL
,
'r'
},
{
"d-log"
,
required_argument
,
NULL
,
'l'
},
{
"d-aggregator-cnt"
,
required_argument
,
NULL
,
'a'
},
{
"i-meta"
,
required_argument
,
NULL
,
'm'
},
...
...
@@ -92,7 +94,7 @@ int main(int argc, char *argv[])
int64_t
num_testalls
=
0
;
char
ch
;
while
((
ch
=
getopt_long
(
argc
,
argv
,
"t:n:l:a:m:sp:w"
,
long_opts
,
NULL
))
!=
-
1
){
while
((
ch
=
getopt_long
(
argc
,
argv
,
"t:n:l:a:m:sp:w
r:
"
,
long_opts
,
NULL
))
!=
-
1
){
switch
(
ch
){
case
't'
:
strcpy
(
type
,
optarg
);
...
...
@@ -125,6 +127,10 @@ int main(int argc, char *argv[])
case
's'
:
print_stats
=
1
;
break
;
case
'r'
:
start_rank
=
atoi
(
optarg
);
assert
(
n
>
0
);
break
;
}
}
...
...
@@ -224,7 +230,7 @@ int main(int argc, char *argv[])
}
}
for
(
i
=
0
;
i
<
n
;
i
++
){
for
(
i
=
start_rank
;
i
<
start_rank
+
n
;
i
++
){
struct
codes_workload_op
op
;
printf
(
"loading %s, %d
\n
"
,
type
,
i
);
int
id
=
codes_workload_load
(
type
,
wparams
,
0
,
i
);
...
...
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