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
Merge requests
!14
Infrastructure: Remove Instructionblock
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Infrastructure: Remove Instructionblock
infrastructure-patch2
into
main
Overview
0
Commits
16
Pipelines
0
Changes
8
Merged
Infrastructure: Remove Instructionblock
Jammer, Tim
requested to merge
infrastructure-patch2
into
main
Feb 8, 2024
Overview
0
Commits
16
Pipelines
0
Changes
8
Removes instruction Block and let the template manager handle instructions directly
1
0
Merge request reports
Compare
main
version 4
53a1bdec
Feb 12, 2024
version 3
71b6fdc1
Feb 8, 2024
version 2
d21112f6
Feb 8, 2024
version 1
c4407ac8
Feb 8, 2024
main (base)
and
latest version
latest version
53a1bdec
16 commits,
Feb 19, 2024
version 4
53a1bdec
23 commits,
Feb 12, 2024
version 3
71b6fdc1
20 commits,
Feb 8, 2024
version 2
d21112f6
19 commits,
Feb 8, 2024
version 1
c4407ac8
18 commits,
Feb 8, 2024
8 files
+
483
−
458
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
scripts/Infrastructure/AllocCall.py
+
5
−
2
View file @ 53a1bdec
Edit in single-file editor
Open in Web IDE
Show full file
#! /usr/bin/python3
from
__future__
import
annotations
from
typing_extensions
import
override
from
scripts.Infrastructure.Instruction
import
Instruction
@@ -25,7 +27,8 @@ alloc_template = """
class
AllocCall
(
Instruction
):
@override
def
__init__
(
self
,
type
:
str
,
num_elements
:
str
,
name
:
str
=
"
buf
"
,
use_malloc
:
bool
=
False
):
def
__init__
(
self
,
type
:
str
,
num_elements
:
str
,
name
:
str
=
"
buf
"
,
use_malloc
:
bool
=
False
,
rank
:
str
|
int
=
'
all
'
,
identifier
:
str
=
None
):
"""
Creates a New allocation Call
@@ -35,7 +38,7 @@ class AllocCall(Instruction):
name: name of buffer variable
use_malloc: True: use Malloc, False: use calloc for allocation
"""
super
().
__init__
(
""
)
super
().
__init__
(
""
,
rank
,
identifier
)
self
.
_use_malloc
=
use_malloc
self
.
_type
=
type
self
.
_num_elements
=
num_elements
Loading