fab.tools.psyclone#
This file contains the tool class for PSyclone.
Classes
|
This is the base class for PSyclone. |
- class fab.tools.psyclone.Psyclone#
This is the base class for PSyclone.
- check_available()#
This function determines if PSyclone is available. Additionally, it established the version, since command line option changes significantly from python 2.5.0 to the next release.
- Return type:
- process(config, x90_file, psy_file=None, alg_file=None, transformed_file=None, transformation_script=None, additional_parameters=None, kernel_roots=None, api=None)#
Run PSyclone with the specified parameters. If PSyclone is used to transform existing Fortran files, api must be None, and the output file name is transformed_file. If PSyclone is using its DSL features, api must be a valid PSyclone API, and the two output filenames are psy_file and alg_file.
- Parameters:
x90_file (
Path) – the input file for PSyclonepsy_file (
Path|None) – the output PSy-layer file. (default:None)alg_file (
Path|str|None) – the output modified algorithm file. (default:None)transformed_file (
Path|None) – the output filename if PSyclone is called as transformation tool. (default:None)transformation_script (
Callable[[Path,BuildConfig],Path] |None) – an optional transformation script (default:None)additional_parameters (
List[str] |None) – optional additional parameters for PSyclone (default:None)kernel_roots (
List[str|Path] |None) – optional directories with kernels. (default:None)