Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, api="", distributed_memory=None) |
def | create (self, invoke_info) |
Creates a specific version of the PSy. If a particular api is not provided then the default api, as specified in the psyclone.cfg file, is chosen. :param str api: name of the PSyclone API (domain) for which to create \ a factory. :param bool distributed_memory: whether or not the PSy object created \ will include support for distributed-memory parallelism. :raises TypeError: if the distributed_memory argument is not a bool.
def psyclone.psyGen.PSyFactory.create | ( | self, | |
invoke_info | |||
) |
Create the API-specific PSy instance. :param invoke_info: information on the invoke()s found by parsing \ the Algorithm layer or (for NEMO) the fparser2 \ parse tree of the source file. :type invoke_info: :py:class:`psyclone.parse.algorithm.FileInfo` or \ :py:class:`fparser.two.Fortran2003.Program` :returns: an instance of the API-specific sub-class of PSy. :rtype: subclass of :py:class:`psyclone.psyGen.PSy` :raises InternalError: if this factory is found to have an \ unsupported type (API).
Definition at line 183 of file psyGen.py.
References psyclone.parse.kernel.KernelTypeFactory._type, and psyclone.psyGen.PSyFactory._type.