Skip to content
Snippets Groups Projects

RMA Test Cases

Open Simon Schwitanski requested to merge rma into main
Files
9
#! /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