Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, parent_call) |
def | psyir_expressions (self) |
def | names (self) |
def | args (self) |
def | iteration_space_arg (self) |
def | acc_args (self) |
def | scalars (self) |
def | append (self, name, argument_type) |
Arguments abstract base class. :param parent_call: kernel call with which the arguments are associated. :type parent_call: sub-class of :py:class:`psyclone.psyGen.Kern`
def psyclone.psyGen.Arguments.acc_args | ( | self | ) |
:returns: the list of quantities that must be available on an \ OpenACC device before the associated kernel can be launched :rtype: list of str
Reimplemented in psyclone.gocean1p0.GOKernelArguments, and psyclone.dynamo0p3.DynKernelArguments.
def psyclone.psyGen.Arguments.append | ( | self, | |
name, | |||
argument_type | |||
) |
Abstract method to append KernelArguments to the Argument list. :param str name: name of the appended argument. :param str argument_type: type of the appended argument.
Reimplemented in psyclone.gocean1p0.GOKernelArguments.
Definition at line 1962 of file psyGen.py.
def psyclone.psyGen.Arguments.iteration_space_arg | ( | self | ) |
Returns an argument that can be iterated over, i.e. modified (has WRITE, READWRITE or INC access), but not the result of a reduction operation. :returns: a Fortran argument name :rtype: string :raises GenerationError: if none such argument is found.
Reimplemented in psyclone.dynamo0p3.DynKernelArguments.
Definition at line 1924 of file psyGen.py.
References psyclone.dynamo0p3.DynKernelArguments._args, psyclone.gocean1p0.GOKernelArguments._args, psyclone.parse.algorithm.ParsedCall._args, and psyclone.psyGen.Arguments._args.
def psyclone.psyGen.Arguments.names | ( | self | ) |
:returns: the Algorithm-visible kernel arguments in a \ comma-delimited string. :rtype: str
Definition at line 1912 of file psyGen.py.
References psyclone.dynamo0p3.DynKernelArguments._args, psyclone.gocean1p0.GOKernelArguments._args, psyclone.parse.algorithm.ParsedCall._args, psyclone.psyGen.Arguments._args, psyclone.expression.FunctionVar.args, psyclone.f2pygen.SubroutineGen.args(), psyclone.parse.algorithm.ParsedCall.args(), psyclone.psyGen.GlobalSum.args(), psyclone.psyGen.HaloExchange.args(), psyclone.psyGen.Kern.args(), psyclone.psyGen.Arguments.args(), and psyclone.psyir.nodes.node.Node.args().
def psyclone.psyGen.Arguments.psyir_expressions | ( | self | ) |
:returns: the PSyIR expressions representing this Argument list. :rtype: list of :py:class:`psyclone.psyir.nodes.Node`
Reimplemented in psyclone.gocean1p0.GOKernelArguments, and psyclone.dynamo0p3.DynKernelArguments.
def psyclone.psyGen.Arguments.scalars | ( | self | ) |
:returns: the list of scalar quantities belonging to this object :rtype: list of str
Reimplemented in psyclone.gocean1p0.GOKernelArguments, and psyclone.dynamo0p3.DynKernelArguments.