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
34bb037a
Commit
34bb037a
authored
Jan 31, 2024
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
fix documentation
parent
0fd7778a
Branches
Branches containing commit
No related tags found
1 merge request
!5
more work on infrastructure III
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Infrastructure/Template.py
+7
-6
7 additions, 6 deletions
scripts/Infrastructure/Template.py
with
7 additions
and
6 deletions
scripts/Infrastructure/Template.py
+
7
−
6
View file @
34bb037a
...
@@ -119,7 +119,7 @@ class TemplateManager:
...
@@ -119,7 +119,7 @@ class TemplateManager:
def
register_instruction_block
(
self
,
block
):
def
register_instruction_block
(
self
,
block
):
"""
"""
Registers an instruction block with the template.
Registers an instruction block with the template.
inserting it at the end, before the mpi finalize
Parameters:
Parameters:
- block: The instruction block to register.
- block: The instruction block to register.
"""
"""
...
@@ -160,7 +160,7 @@ class TemplateManager:
...
@@ -160,7 +160,7 @@ class TemplateManager:
def
get_block
(
self
,
block_name
=
None
,
idx
=
None
):
def
get_block
(
self
,
block_name
=
None
,
idx
=
None
):
"""
"""
Retrieves the given Instruction Block Either by name or by index
Retrieves the given Instruction Block Either by name or by index
Raises IndexError if
not
the specified block is not found
Raises IndexError if the specified block is not found
Raises IndexError if multiple Blocks with the given name are found
Raises IndexError if multiple Blocks with the given name are found
Raises ValueError if Both a block name and index are given (or none is given)
Raises ValueError if Both a block name and index are given (or none is given)
Args:
Args:
...
@@ -186,10 +186,11 @@ class TemplateManager:
...
@@ -186,10 +186,11 @@ class TemplateManager:
return
self
.
_blocks
[
idx
]
return
self
.
_blocks
[
idx
]
raise
ValueError
(
"
Neither Both block name nor index is given
"
)
raise
ValueError
(
"
Neither Both block name nor index is given
"
)
def
insert_block
(
self
,
new_block
,
block_name
=
None
,
idx
=
None
):
def
insert_block
(
self
,
new_block
,
block_name
=
None
,
idx
=
None
):
"""
"""
inserts the given Instruction Block AFTER the one specified Either by name or by index
inserts the given Instruction Block AFTER the one specified Either by name or by index
Raises IndexError if
not
the specified block is not found
Raises IndexError if the specified block is not found
Raises IndexError if multiple Blocks with the given name are found
Raises IndexError if multiple Blocks with the given name are found
Raises ValueError if Both a block name and index are given (or none is given)
Raises ValueError if Both a block name and index are given (or none is given)
Args:
Args:
...
@@ -219,7 +220,7 @@ class TemplateManager:
...
@@ -219,7 +220,7 @@ class TemplateManager:
def
remove_block
(
self
,
block_name
=
None
,
idx
=
None
):
def
remove_block
(
self
,
block_name
=
None
,
idx
=
None
):
"""
"""
Removes the given Instruction Block Either by name or by index
Removes the given Instruction Block Either by name or by index
Raises IndexError if
not
the specified block is not found
Raises IndexError if the specified block is not found
Raises IndexError if multiple Blocks with the given name are found
Raises IndexError if multiple Blocks with the given name are found
Raises ValueError if Both a block name and index are given (or none is given)
Raises ValueError if Both a block name and index are given (or none is given)
Args:
Args:
...
@@ -246,7 +247,7 @@ class TemplateManager:
...
@@ -246,7 +247,7 @@ class TemplateManager:
def
replace_block
(
self
,
new_block
,
block_name
=
None
,
idx
=
None
):
def
replace_block
(
self
,
new_block
,
block_name
=
None
,
idx
=
None
):
"""
"""
Removes the given Instruction Block Either by name or by index
Removes the given Instruction Block Either by name or by index
Raises IndexError if
not
the specified block is not found
Raises IndexError if the specified block is not found
Raises IndexError if multiple Blocks with the given name are found
Raises IndexError if multiple Blocks with the given name are found
Raises ValueError if Both a block name and index are given (or none is given)
Raises ValueError if Both a block name and index are given (or none is given)
Args:
Args:
...
...
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