fab.tools.psyclone module#

This file contains the tool class for PSyclone.

class fab.tools.psyclone.Psyclone(api=None)#

Bases: Tool

This is the base class for PSyclone.

process(config, x90_file, psy_file, alg_file, transformation_script=None, additional_parameters=None, kernel_roots=None, api=None)#

Run PSyclone with the specified parameters.

Parameters:
  • api (Optional[str]) – the PSyclone API. (default: None)

  • x90_file (Path) – the input file for PSyclone

  • psy_file (Path) – the output PSy-layer file.

  • alg_file (Union[Path, str]) – the output modified algorithm file.

  • transformation_script (Optional[Callable[[Path, BuildConfig], Path]]) – an optional transformation script (default: None)

  • additional_parameters (Optional[List[str]]) – optional additional parameters for PSyclone (default: None)

  • kernel_roots (Optional[List[Union[Path, str]]]) – optional directories with kernels. (default: None)