Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPI-BugBench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
High Performance Computing - Public
MPI-BugBench
Commits
d997a624
Commit
d997a624
authored
1 year ago
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
fix usage of preprocessor define conflicting with the coverage analysis
parent
2b76e72a
No related branches found
No related tags found
1 merge request
!10
P2P
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/errors/pt2pt/InvalidComm.py
+9
-7
9 additions, 7 deletions
scripts/errors/pt2pt/InvalidComm.py
with
9 additions
and
7 deletions
scripts/errors/pt2pt/InvalidComm.py
+
9
−
7
View file @
d997a624
...
@@ -74,14 +74,16 @@ class InvalidCommErrorP2P(ErrorGenerator):
...
@@ -74,14 +74,16 @@ class InvalidCommErrorP2P(ErrorGenerator):
if
comm_to_use
in
self
.
missmatching_comms
and
comm_to_use
!=
"
MPI_COMM_SELF
"
:
if
comm_to_use
in
self
.
missmatching_comms
and
comm_to_use
!=
"
MPI_COMM_SELF
"
:
comm_var_name
=
get_communicator
(
comm_to_use
,
tm
)
comm_var_name
=
get_communicator
(
comm_to_use
,
tm
)
# use precprcessor to make this two identifieres same
# change the arg in the MPI call to the result variable name
# alternatively, chang the arg in the MPI call to teh result variable name
for
call
in
tm
.
get_instruction
(
identifier
=
"
MPICALL
"
,
return_list
=
True
):
tm
.
insert_instruction
(
Instruction
(
"
#define
"
+
comm_to_use
+
"
"
+
comm_var_name
),
if
call
.
get_arg
(
"
comm
"
)
==
comm_to_use
:
before_instruction
=
0
)
call
.
set_arg
(
"
comm
"
,
comm_var_name
)
if
comm_to_use
in
self
.
intercomms
:
if
comm_to_use
in
self
.
intercomms
:
comm_var_name
=
get_intercomm
(
comm_to_use
,
tm
)
comm_var_name
=
get_intercomm
(
comm_to_use
,
tm
)
tm
.
insert_instruction
(
Instruction
(
"
#define
"
+
comm_to_use
+
"
"
+
comm_var_name
),
for
call
in
tm
.
get_instruction
(
identifier
=
"
MPICALL
"
,
return_list
=
True
):
before_instruction
=
0
)
if
call
.
get_arg
(
"
comm
"
)
==
comm_to_use
:
call
.
set_arg
(
"
comm
"
,
comm_var_name
)
# if intercomm: set rank to 0 instead of 1 as ther is only one rank in intercomm
# if intercomm: set rank to 0 instead of 1 as ther is only one rank in intercomm
if
comm_to_use
in
self
.
intercomms
and
not
comm_to_use
==
"
mpi_intercomm_merge
"
:
if
comm_to_use
in
self
.
intercomms
and
not
comm_to_use
==
"
mpi_intercomm_merge
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment