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
Matthieu Dorier
codes
Commits
698e934f
Commit
698e934f
authored
Feb 13, 2014
by
Shane Snyder
Browse files
Add quick debug support for resolving timing issue
parent
bf6dc626
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
codes/codes-workload.h
View file @
698e934f
...
...
@@ -33,6 +33,7 @@ struct bgp_params
struct
darshan_params
{
FILE
*
stream
;
char
log_file_path
[
MAX_NAME_LENGTH_WKLD
];
int64_t
aggregator_cnt
;
};
...
...
src/workload/codes-darshan-io-wrkld.c
View file @
698e934f
This diff is collapsed.
Click to expand it.
tests/workload/codes-workload-mpi-replay.c
View file @
698e934f
...
...
@@ -136,6 +136,7 @@ int load_workload(char *conf_path, int rank)
configuration_get_value
(
&
config
,
"PARAMS"
,
"aggregator_count"
,
aggregator_count
,
10
);
d_params
.
aggregator_cnt
=
atoi
(
aggregator_count
);
d_params
.
stream
=
log_stream
;
return
codes_workload_load
(
workload_type
,
(
char
*
)
&
d_params
,
rank
);
}
else
if
(
strcmp
(
workload_type
,
"bgp_io_workload"
)
==
0
)
...
...
@@ -183,6 +184,27 @@ int main(int argc, char *argv[])
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
nprocs
);
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
myrank
);
/* change the working directory to be the test directory */
ret
=
chdir
(
replay_test_path
);
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"Unable to change to testing directory (%s)
\n
"
,
strerror
(
errno
));
goto
error_exit
;
}
/* set the path for logging this rank's events, if verbose is turned on */
if
(
opt_verbose
)
{
mkdir
(
log_dir
,
0755
);
snprintf
(
my_log_path
,
MAX_NAME_LENGTH_WKLD
,
"%s/rank-%d.log"
,
log_dir
,
myrank
);
log_stream
=
fopen
(
my_log_path
,
"w"
);
if
(
log_stream
==
NULL
)
{
fprintf
(
stderr
,
"Unable to open log file %s
\n
"
,
my_log_path
);
goto
error_exit
;
}
}
/* initialize workload generator from config file */
workload_id
=
load_workload
(
conf_path
,
myrank
);
if
(
workload_id
<
0
)
...
...
@@ -190,6 +212,8 @@ int main(int argc, char *argv[])
goto
error_exit
;
}
#if 0
/* change the working directory to be the test directory */
ret = chdir(replay_test_path);
if (ret < 0)
...
...
@@ -247,6 +271,7 @@ int main(int argc, char *argv[])
/* destroy and finalize the file descriptor hash table */
qhash_destroy_and_finalize(fd_table, struct file_info, hash_link, free);
#endif
error_exit:
MPI_Finalize
();
...
...
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