Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
High Performance Computing - Public
MPI-BugBench
Commits
3cc83b3f
Commit
3cc83b3f
authored
Apr 3, 2024
by
Emmanuelle Saillard
Browse files
Options
Downloads
Patches
Plain Diff
add CallOrdering script
parent
362b8c02
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/Infrastructure/TemplateFactory.py
+1
-1
1 addition, 1 deletion
scripts/Infrastructure/TemplateFactory.py
scripts/errors/coll/CallOrdering.py
+32
-0
32 additions, 0 deletions
scripts/errors/coll/CallOrdering.py
scripts/main.py
+1
-1
1 addition, 1 deletion
scripts/main.py
with
34 additions
and
2 deletions
scripts/Infrastructure/TemplateFactory.py
+
1
−
1
View file @
3cc83b3f
...
...
@@ -212,8 +212,8 @@ def get_collective_template(collective_func, seperate=True):
b
=
InstructionBlock
(
"
MPICALL
"
)
if
seperate
:
b
.
register_instruction
(
c
,
1
)
b
.
register_instruction
(
c
,
0
)
b
.
register_instruction
(
c
,
'
not0
'
)
else
:
b
.
register_instruction
(
c
,
'
all
'
)
...
...
...
...
This diff is collapsed.
Click to expand it.
scripts/errors/coll/CallOrdering.py
0 → 100644
+
32
−
0
View file @
3cc83b3f
#! /usr/bin/python3
from
scripts.Infrastructure.ErrorGenerator
import
ErrorGenerator
from
scripts.Infrastructure.InstructionBlock
import
InstructionBlock
from
scripts.Infrastructure.MPICallFactory
import
MPICallFactory
,
CorrectMPICallFactory
from
scripts.Infrastructure.CorrectParameter
import
CorrectParameterFactory
,
get_matching_recv
from
scripts.Infrastructure.Template
import
TemplateManager
from
scripts.Infrastructure.TemplateFactory
import
get_send_recv_template
,
get_collective_template
class
InvalidRankErrorColl
(
ErrorGenerator
):
functions_to_use
=
[
"
mpi_reduce
"
,
"
mpi_bcast
"
]
def
__init__
(
self
):
pass
def
get_feature
(
self
):
return
[
"
COLL
"
]
def
generate
(
self
,
generate_full_set
):
for
func_to_use
in
self
.
functions_to_use
:
tm
=
get_collective_template
(
func_to_use
,
seperate
=
True
)
tm
.
set_description
(
"
CallOrdering-unmatched-
"
+
func_to_use
,
func_to_use
+
"
is not called by all processes
"
)
tm
.
get_block
(
"
MPICALL
"
).
get_instruction
(
kind
=
'
not0
'
,
index
=
0
).
set_has_error
()
yield
tm
if
not
generate_full_set
:
return
This diff is collapsed.
Click to expand it.
scripts/main.py
+
1
−
1
View file @
3cc83b3f
...
...
@@ -14,6 +14,6 @@ if __name__ == "__main__":
os
.
remove
(
os
.
path
.
join
(
gencodes_dir
,
f
))
#gm.generate(gencodes_dir, try_compile=True, generate_full_set=False) # default
gm
.
generate
(
gencodes_dir
,
try_compile
=
Tru
e
,
generate_full_set
=
True
,
max_mpi_version
=
"
3.1
"
)
#all cases that can compile for my local mpi installation
gm
.
generate
(
gencodes_dir
,
try_compile
=
Fals
e
,
generate_full_set
=
True
,
max_mpi_version
=
"
3.1
"
)
#all cases that can compile for my local mpi installation
pass
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
sign in
to comment