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
98437d25
Commit
98437d25
authored
1 year ago
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
only one generator for type matching
parent
ffe77f0c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/errors/coll/ParamMatching.py
+3
-15
3 additions, 15 deletions
scripts/errors/coll/ParamMatching.py
with
3 additions
and
15 deletions
scripts/errors/coll/ParamMatching.py
+
3
−
15
View file @
98437d25
...
@@ -29,26 +29,13 @@ class InvalidComErrorColl(ErrorGenerator):
...
@@ -29,26 +29,13 @@ class InvalidComErrorColl(ErrorGenerator):
def
generate
(
self
,
generate_level
,
real_world_score_table
):
def
generate
(
self
,
generate_level
,
real_world_score_table
):
# Generate codes with type mismatch
# type missmatches are generated by ParamMatchingTypes.py
for
func_to_use
in
self
.
func_with_one_type_arg
:
tm
=
get_collective_template
(
func_to_use
)
type_to_use
=
"
MPI_DOUBLE
"
# this could be a list of types
tm
.
set_description
(
"
ParamMatching-Type-
"
+
func_to_use
,
"
Wrong datatype matching
"
)
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
call
.
set_rank_executing
(
0
)
call
.
set_arg
(
"
datatype
"
,
type_to_use
)
call
.
set_has_error
()
c
=
CorrectMPICallFactory
.
get
(
func_to_use
)
c
.
set_rank_executing
(
'
not0
'
)
c
.
set_has_error
()
tm
.
insert_instruction
(
c
,
after_instruction
=
call
)
yield
tm
# 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_MAX
"
# this could be a list of op
op_to_use
=
"
MPI_MAX
"
# this could be a list of op
#TODO implement Real world coverage for that
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
):
...
@@ -80,6 +67,7 @@ class InvalidComErrorColl(ErrorGenerator):
...
@@ -80,6 +67,7 @@ class InvalidComErrorColl(ErrorGenerator):
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
)
com_to_use
=
"
MPI_COMM_SELF
"
com_to_use
=
"
MPI_COMM_SELF
"
#TODO use real word coverage for that
tm
.
set_description
(
"
ParamMatching-Com-
"
+
func_to_use
,
"
Wrong communicator matching
"
)
tm
.
set_description
(
"
ParamMatching-Com-
"
+
func_to_use
,
"
Wrong communicator matching
"
)
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
for
call
in
tm
.
get_instruction
(
"
MPICALL
"
,
return_list
=
True
):
...
...
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