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
a1ad303b
Commit
a1ad303b
authored
Feb 2, 2024
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
added case for mpi_sendrecv using same buffer
parent
a2ce1791
No related branches found
No related tags found
1 merge request
!6
More Work on infrastructure IV
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/errors/pt2pt/InvalidBuf.py
+31
-2
31 additions, 2 deletions
scripts/errors/pt2pt/InvalidBuf.py
with
31 additions
and
2 deletions
scripts/errors/pt2pt/InvalidBuf.py
+
31
−
2
View file @
a1ad303b
...
...
@@ -68,9 +68,9 @@ class InvalidBufErrorP2P(ErrorGenerator):
# without allocation: usage is undefined behaviour
if
check_receive
:
tm
.
set_description
(
"
InvalidParam-Buffer-
"
+
recv_func
,
"
Invalid
Rank
: %s
"
%
buf_to_use
)
tm
.
set_description
(
"
InvalidParam-Buffer-
"
+
recv_func
,
"
Invalid
Buffer
: %s
"
%
buf_to_use
)
else
:
tm
.
set_description
(
"
InvalidParam-Buffer-
"
+
send_func
,
"
Invalid
Rank
: %s
"
%
buf_to_use
)
tm
.
set_description
(
"
InvalidParam-Buffer-
"
+
send_func
,
"
Invalid
Buffer
: %s
"
%
buf_to_use
)
if
check_receive
:
if
tm
.
get_block
(
"
MPICALL
"
).
get_operation
(
kind
=
0
,
index
=
0
).
has_arg
(
"
buf
"
):
...
...
@@ -86,3 +86,32 @@ class InvalidBufErrorP2P(ErrorGenerator):
tm
.
get_block
(
"
MPICALL
"
).
get_operation
(
kind
=
1
,
index
=
0
).
set_has_error
()
return
tm
class
MessageRaceErrorSendRecv
(
ErrorGenerator
):
def
__init__
(
self
):
pass
def
get_num_errors
(
self
):
# MPI_IN_PLACE and same buffer
return
1
*
2
# the number of errors to produce in the extended mode (all possible combinations)
def
get_num_errors_extended
(
self
):
return
1
def
get_feature
(
self
):
return
[
"
P2P
"
]
def
generate
(
self
,
i
):
tm
=
get_send_recv_template
(
"
mpi_sendrecv
"
,
"
mpi_sendrecv
"
)
tm
.
set_description
(
"
InvalidParam-Buffer-mpi_sendrecv
"
,
"
send and recv buffer must be disjoint in sendrecv
"
)
for
k
in
[
0
,
1
]:
if
i
==
0
:
tm
.
get_block
(
"
MPICALL
"
).
get_operation
(
kind
=
k
,
index
=
0
).
set_arg
(
"
recvbuf
"
,
"
buf
"
)
else
:
tm
.
get_block
(
"
MPICALL
"
).
get_operation
(
kind
=
k
,
index
=
0
).
set_arg
(
"
recvbuf
"
,
"
MPI_IN_PLACE
"
)
tm
.
get_block
(
"
MPICALL
"
).
get_operation
(
kind
=
k
,
index
=
0
).
set_has_error
()
return
tm
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