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
1cd2be24
Commit
1cd2be24
authored
Feb 6, 2024
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
Default Send/recv Template only creates one wait block
parent
84394d7d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Infrastructure/TemplateFactory.py
+7
-8
7 additions, 8 deletions
scripts/Infrastructure/TemplateFactory.py
with
7 additions
and
8 deletions
scripts/Infrastructure/TemplateFactory.py
+
7
−
8
View file @
1cd2be24
...
...
@@ -24,7 +24,7 @@ def get_default_template(mpi_func):
def
get_send_recv_template
(
send_func
:
str
=
"
mpi_isend
"
,
recv_func
:
str
|
typing
.
Tuple
[
str
,
str
]
=
"
mpi_irecv
"
):
"""
Contructs a default template for the given mpi send recv function pair
Contructs a default template for the given mpi send recv function pair
it contains a send from rank 1 to rank 0
Returns:
TemplateManager Initialized with a default template
The function is contained in a block named MPICALL with seperate calls for rank 1 and 2)
...
...
@@ -142,16 +142,15 @@ def get_send_recv_template(send_func: str = "mpi_isend", recv_func: str | typing
tm
.
register_instruction_block
(
b
)
# wait for op to complete
if
send_func
in
isend_funcs
+
persistent_send_funcs
:
b
=
InstructionBlock
(
"
WAIT
"
)
b
.
register_instruction
(
CorrectMPICallFactory
().
mpi_wait
(),
1
)
tm
.
register_instruction_block
(
b
)
wait_block
=
InstructionBlock
(
"
WAIT
"
)
if
send_func
in
isend_funcs
+
persistent_send_funcs
:
wait_block
.
register_instruction
(
CorrectMPICallFactory
().
mpi_wait
(),
1
)
if
recv_func
in
irecv_funcs
+
persistent_recv_funcs
+
[[
"
mpi_mprobe
"
,
"
mpi_imrecv
"
],
[
"
mpi_improbe
"
,
"
mpi_imrecv
"
]]:
b
=
InstructionBlock
(
"
WAIT
"
)
b
.
register_instruction
(
CorrectMPICallFactory
().
mpi_wait
(),
0
)
tm
.
register_instruction_block
(
b
)
wait_block
.
register_instruction
(
CorrectMPICallFactory
().
mpi_wait
(),
0
)
tm
.
register_instruction_block
(
wait_block
)
# if no waits: block is empty
# end MPI operation
# cleanup
...
...
...
...
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