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
codes
codes
Commits
43059659
Commit
43059659
authored
Feb 02, 2016
by
Misbah Mubarak
Browse files
Adding error messages for multiple communicators
parent
434033d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
View file @
43059659
...
...
@@ -229,6 +229,11 @@ static int handleDUMPIInit(
return
0
;
}
int
handleDUMPIError
(
const
void
*
prm
,
uint16_t
thread
,
const
dumpi_time
*
cpu
,
const
dumpi_time
*
wall
,
const
dumpi_perfinfo
*
perf
,
void
*
uarg
)
{
tw_error
(
TW_LOC
,
"
\n
MPI operation not supported by the MPI-Sim Layer "
);
}
int
handleDUMPIIgnore
(
const
void
*
prm
,
uint16_t
thread
,
const
dumpi_time
*
cpu
,
const
dumpi_time
*
wall
,
const
dumpi_perfinfo
*
perf
,
void
*
uarg
)
{
rank_mpi_context
*
myctx
=
(
rank_mpi_context
*
)
uarg
;
...
...
@@ -652,7 +657,8 @@ int dumpi_trace_nw_workload_load(const char* params, int app_id, int rank)
callbacks
.
on_comm_size
=
(
dumpi_comm_size_call
)
handleDUMPIIgnore
;
callbacks
.
on_comm_rank
=
(
dumpi_comm_rank_call
)
handleDUMPIIgnore
;
callbacks
.
on_comm_get_attr
=
(
dumpi_comm_get_attr_call
)
handleDUMPIIgnore
;
callbacks
.
on_comm_create
=
(
dumpi_comm_create_call
)
handleDUMPIIgnore
;
callbacks
.
on_comm_dup
=
(
dumpi_comm_dup_call
)
handleDUMPIError
;
callbacks
.
on_comm_create
=
(
dumpi_comm_create_call
)
handleDUMPIError
;
callbacks
.
on_wtime
=
(
dumpi_wtime_call
)
handleDUMPIIgnore
;
callbacks
.
on_finalize
=
(
dumpi_finalize_call
)
handleDUMPIFinalize
;
...
...
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