Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
vite
Commits
a53967a1
Commit
a53967a1
authored
Jan 28, 2020
by
François Trahay
Committed by
Mathieu Faverge
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OTF2: improve support for mpi communicators
parent
72b33654
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
src/parser/OTF2Parser/ParserDefinitionOTF2.cpp
src/parser/OTF2Parser/ParserDefinitionOTF2.cpp
+12
-8
src/parser/OTF2Parser/ParserDefinitionOTF2.hpp
src/parser/OTF2Parser/ParserDefinitionOTF2.hpp
+0
-1
No files found.
src/parser/OTF2Parser/ParserDefinitionOTF2.cpp
View file @
a53967a1
...
...
@@ -315,7 +315,6 @@ OTF2_CallbackCode ParserDefinitionOTF2::handler_DefGroup(void * /*userD
g
->
_paradigm
=
paradigm
;
g
->
_flags
=
flags
;
g
->
_members
.
resize
(
numberOfMembers
);
g
->
_membersSize
=
numberOfMembers
;
for
(
uint32_t
i
=
0
;
i
<
numberOfMembers
;
i
++
)
{
g
->
_members
[
i
]
=
members
[
i
];
}
...
...
@@ -465,20 +464,25 @@ OTF2_Location* ParserDefinitionOTF2::get_location_in_communicator(const OTF2_Com
uint32_t
rank
)
{
struct
OTF2_Comm
*
c
=
_comms
[
comm
];
if
(
!
c
)
{
cerr
<<
"Error: cannot find communicator "
<<
comm
<<
endl
;
abort
();
cerr
<<
"Warning: cannot find communicator "
<<
comm
<<
endl
;
// This is probably because the tracing tool did not support communicators
// Let's assume that rank is actually a locationRef
return
get_location_by_id
(
rank
);
}
struct
OTF2_Group
*
g
=
_groups
[
c
->
_group
];
if
(
!
g
)
{
cerr
<<
"Error: cannot find rank "
<<
rank
<<
" in communicator "
<<
comm
<<
endl
;
abort
();
cerr
<<
"Warning: cannot find rank "
<<
rank
<<
" in communicator "
<<
comm
<<
endl
;
// This is probably because the tracing tool did not support communicators
// Let's assume that rank is actually a locationRef
return
get_location_by_id
(
rank
);
}
if
(
rank
>
g
->
_members
.
size
())
{
cerr
<<
"Error: searching for rank "
<<
rank
<<
" in communicator "
<<
comm
<<
", but comm_size="
<<
g
->
_members
.
size
()
<<
", memberSize="
<<
g
->
_membersSize
<<
endl
;
*
(
int
*
)
0
=
0
;
abort
();
cerr
<<
"Warning: searching for rank "
<<
rank
<<
" in communicator "
<<
comm
<<
", but comm_size="
<<
g
->
_members
.
size
()
<<
endl
;
// This is probably because the tracing tool did not support communicators
// Let's assume that rank is actually a locationRef
return
get_location_by_id
(
rank
);
}
return
get_location_by_id
(
g
->
_members
[
rank
]);
}
...
...
src/parser/OTF2Parser/ParserDefinitionOTF2.hpp
View file @
a53967a1
...
...
@@ -172,7 +172,6 @@ struct OTF2_Group {
OTF2_Paradigm
_paradigm
;
OTF2_GroupFlag
_flags
;
std
::
vector
<
uint64_t
>
_members
;
size_t
_membersSize
;
};
struct
OTF2_Comm
{
...
...
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