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
8ff0e14a
Commit
8ff0e14a
authored
1 year ago
by
Jammer, Tim
Browse files
Options
Downloads
Patches
Plain Diff
added free call to default template
parent
b86e4017
No related branches found
No related tags found
1 merge request
!4
Devel tj
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/Infrastructure/CorrectParameter.py
+6
-1
6 additions, 1 deletion
scripts/Infrastructure/CorrectParameter.py
scripts/Infrastructure/TemplateFactory.py
+4
-0
4 additions, 0 deletions
scripts/Infrastructure/TemplateFactory.py
with
10 additions
and
1 deletion
scripts/Infrastructure/CorrectParameter.py
+
6
−
1
View file @
8ff0e14a
#! /usr/bin/python3
from
scripts.Infrastructure.MPICallFactory
import
MPICallFactory
from
scripts.Infrastructure.Template
import
InstructionBlock
from
scripts.Infrastructure.AllocCall
import
AllocCall
from
scripts.Infrastructure.AllocCall
import
AllocCall
,
get_free
class
CorrectParameterFactory
:
...
...
@@ -19,6 +19,11 @@ class CorrectParameterFactory:
b
.
register_operation
(
AllocCall
(
self
.
dtype
[
0
],
self
.
buf_size
,
self
.
buf_var_name
,
use_malloc
=
False
),
kind
=
'
all
'
)
return
b
def
get_buffer_free
(
self
):
b
=
InstructionBlock
(
"
free
"
)
b
.
register_operation
(
get_free
(
AllocCall
(
self
.
dtype
[
0
],
self
.
buf_size
,
self
.
buf_var_name
,
use_malloc
=
False
)),
kind
=
'
all
'
)
return
b
def
get
(
self
,
param
,
func
=
None
):
if
param
==
"
BUFFER
"
or
param
==
"
buf
"
or
param
==
"
buffer
"
or
param
==
"
sendbuf
"
or
param
==
"
recvbuf
"
:
return
self
.
buf_var_name
...
...
This diff is collapsed.
Click to expand it.
scripts/Infrastructure/TemplateFactory.py
+
4
−
0
View file @
8ff0e14a
...
...
@@ -77,6 +77,8 @@ def get_send_recv_template(send_func, recv_func):
b
.
register_operation
(
CorrectMPICallFactory
().
mpi_wait
(),
0
)
tm
.
register_instruction_block
(
b
)
b
.
register_operation
(
cf
.
get_buffer_free
())
return
tm
...
...
@@ -106,4 +108,6 @@ def get_collective_template(collective_func, seperate=True):
tm
.
register_instruction_block
(
b
)
b
.
register_operation
(
cf
.
get_buffer_free
())
return
tm
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