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
aac6f99b
Commit
aac6f99b
authored
Apr 30, 2024
by
Emmanuelle Saillard
Browse files
Options
Downloads
Patches
Plain Diff
add root mismatch
parent
0d73c92a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/errors/coll/InvalidRank.py
+1
-2
1 addition, 2 deletions
scripts/errors/coll/InvalidRank.py
scripts/errors/coll/ParamMatching.py
+20
-6
20 additions, 6 deletions
scripts/errors/coll/ParamMatching.py
with
21 additions
and
8 deletions
scripts/errors/coll/InvalidRank.py
+
1
−
2
View file @
aac6f99b
...
@@ -24,11 +24,10 @@ class InvalidRankErrorColl(ErrorGenerator):
...
@@ -24,11 +24,10 @@ class InvalidRankErrorColl(ErrorGenerator):
for
func_to_use
in
self
.
functions_to_use
:
for
func_to_use
in
self
.
functions_to_use
:
for
rank_to_use
in
self
.
invalid_ranks
:
for
rank_to_use
in
self
.
invalid_ranks
:
tm
=
get_collective_template
(
func_to_use
)
tm
=
get_collective_template
(
func_to_use
)
arg_to_replace
=
"
root
"
tm
.
set_description
(
"
InvalidParam-Rank-
"
+
func_to_use
,
"
Invalid Rank: %s
"
%
rank_to_use
)
tm
.
set_description
(
"
InvalidParam-Rank-
"
+
func_to_use
,
"
Invalid Rank: %s
"
%
rank_to_use
)
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
call
.
set_arg
(
arg_to_replace
,
rank_to_use
)
call
.
set_arg
(
"
root
"
,
rank_to_use
)
call
.
set_has_error
()
call
.
set_has_error
()
yield
tm
yield
tm
...
...
This diff is collapsed.
Click to expand it.
scripts/errors/coll/ParamMatching.py
+
20
−
6
View file @
aac6f99b
...
@@ -12,6 +12,7 @@ class InvalidComErrorColl(ErrorGenerator):
...
@@ -12,6 +12,7 @@ class InvalidComErrorColl(ErrorGenerator):
func_with_one_type_arg
=
[
"
mpi_bcast
"
,
"
mpi_reduce
"
,
"
mpi_exscan
"
,
"
mpi_scan
"
,
"
mpi_ibcast
"
,
"
mpi_ireduce
"
,
"
mpi_iscan
"
,
"
mpi_allreduce
"
,
"
mpi_iallreduce
"
]
func_with_one_type_arg
=
[
"
mpi_bcast
"
,
"
mpi_reduce
"
,
"
mpi_exscan
"
,
"
mpi_scan
"
,
"
mpi_ibcast
"
,
"
mpi_ireduce
"
,
"
mpi_iscan
"
,
"
mpi_allreduce
"
,
"
mpi_iallreduce
"
]
functions_not_supported_yet
=
[
"
mpi_reduce_scatter_block
"
,
"
mpi_allgatherv
"
,
"
mpi_alltoallv
"
,
"
mpi_alltoallw
"
,
"
mpi_gatherv
"
,
"
mpi_reduce_scatter
"
,
"
mpi_scatterv
"
]
functions_not_supported_yet
=
[
"
mpi_reduce_scatter_block
"
,
"
mpi_allgatherv
"
,
"
mpi_alltoallv
"
,
"
mpi_alltoallw
"
,
"
mpi_gatherv
"
,
"
mpi_reduce_scatter
"
,
"
mpi_scatterv
"
]
func_with_op
=
[
"
mpi_reduce
"
,
"
mpi_ireduce
"
,
"
mpi_allreduce
"
,
"
mpi_iallreduce
"
]
func_with_op
=
[
"
mpi_reduce
"
,
"
mpi_ireduce
"
,
"
mpi_allreduce
"
,
"
mpi_iallreduce
"
]
func_with_root
=
[
"
mpi_reduce
"
,
"
mpi_bcast
"
,
"
mpi_gather
"
,
"
mpi_scatter
"
,
"
mpi_ireduce
"
,
"
mpi_ibcast
"
,
"
mpi_igather
"
,
"
mpi_iscatter
"
]
def
__init__
(
self
):
def
__init__
(
self
):
pass
pass
...
@@ -24,12 +25,11 @@ class InvalidComErrorColl(ErrorGenerator):
...
@@ -24,12 +25,11 @@ class InvalidComErrorColl(ErrorGenerator):
# Generate codes with type mismatch
# Generate codes with type mismatch
for
func_to_use
in
self
.
func_with_one_type_arg
:
for
func_to_use
in
self
.
func_with_one_type_arg
:
tm
=
get_collective_template
(
func_to_use
)
tm
=
get_collective_template
(
func_to_use
)
type_to_use
=
"
MPI_
INT
"
type_to_use
=
"
MPI_
DOUBLE
"
# this could be a list of types
tm
.
set_description
(
"
ParamMatching-Type-
"
+
func_to_use
,
"
Wrong datatype matching
"
)
tm
.
set_description
(
"
ParamMatching-Type-
"
+
func_to_use
,
"
Wrong datatype matching
"
)
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
call
.
set_rank_executing
(
0
)
call
.
set_rank_executing
(
0
)
call
.
set_arg
(
"
datatype
"
,
"
MPI_DOUBLE
"
)
call
.
set_arg
(
"
datatype
"
,
type_to_use
)
call
.
set_has_error
()
call
.
set_has_error
()
c
=
CorrectMPICallFactory
.
get
(
func_to_use
)
c
=
CorrectMPICallFactory
.
get
(
func_to_use
)
c
.
set_rank_executing
(
'
not0
'
)
c
.
set_rank_executing
(
'
not0
'
)
...
@@ -41,12 +41,12 @@ class InvalidComErrorColl(ErrorGenerator):
...
@@ -41,12 +41,12 @@ class InvalidComErrorColl(ErrorGenerator):
# Generate codes with op mismatch
# Generate codes with op mismatch
for
func_to_use
in
self
.
func_with_op
:
for
func_to_use
in
self
.
func_with_op
:
tm
=
get_collective_template
(
func_to_use
)
tm
=
get_collective_template
(
func_to_use
)
op_to_use
=
"
MPI_
SUM
"
op_to_use
=
"
MPI_
MAX
"
# this could be a list of op
tm
.
set_description
(
"
ParamMatching-Op-
"
+
func_to_use
,
"
Wrong operation matching
"
)
tm
.
set_description
(
"
ParamMatching-Op-
"
+
func_to_use
,
"
Wrong operation matching
"
)
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
call
.
set_rank_executing
(
0
)
call
.
set_rank_executing
(
0
)
call
.
set_arg
(
"
op
"
,
"
MPI_MAX
"
)
call
.
set_arg
(
"
op
"
,
op_to_use
)
call
.
set_has_error
()
call
.
set_has_error
()
c
=
CorrectMPICallFactory
.
get
(
func_to_use
)
c
=
CorrectMPICallFactory
.
get
(
func_to_use
)
c
.
set_rank_executing
(
'
not0
'
)
c
.
set_rank_executing
(
'
not0
'
)
...
@@ -55,6 +55,20 @@ class InvalidComErrorColl(ErrorGenerator):
...
@@ -55,6 +55,20 @@ class InvalidComErrorColl(ErrorGenerator):
yield
tm
yield
tm
# Generate codes with root mismatch
for
func_to_use
in
self
.
func_with_root
:
tm
=
get_collective_template
(
func_to_use
)
rank_to_use
=
"
rank
"
# process ID, declared in the template
tm
.
set_description
(
"
ParamMatching-Root-
"
+
func_to_use
,
"
Wrong root matching
"
)
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
call
.
set_rank_executing
(
0
)
call
.
set_arg
(
"
root
"
,
rank_to_use
)
call
.
set_has_error
()
c
=
CorrectMPICallFactory
.
get
(
func_to_use
)
yield
tm
# Generate codes with communicator mismatch
# Generate codes with communicator mismatch
for
func_to_use
in
self
.
functions_to_use
:
for
func_to_use
in
self
.
functions_to_use
:
tm
=
get_collective_template
(
func_to_use
)
tm
=
get_collective_template
(
func_to_use
)
...
...
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