psyclone.domain.gocean#
Module for the GOcean domain.
Submodules#
psyclone.domain.gocean.go_symbol_tablepsyclone.domain.gocean.gocean_constantspsyclone.domain.gocean.gocean_driver_creatorpsyclone.domain.gocean.kernel- Submodules
psyclone.domain.gocean.kernel.psyir- Classes
GOceanContainerGOceanKernelMetadataGOceanKernelMetadata.FieldArgGOceanKernelMetadata.GridArgGOceanKernelMetadata.ScalarArgGOceanKernelMetadata.create_from_fortran_string()GOceanKernelMetadata.create_from_psyir()GOceanKernelMetadata.fortran_string()GOceanKernelMetadata.index_offsetGOceanKernelMetadata.iterates_overGOceanKernelMetadata.lower_to_psyir()GOceanKernelMetadata.meta_argsGOceanKernelMetadata.nameGOceanKernelMetadata.procedure_name
- Classes
- Classes
GOceanKernelMetadataGOceanKernelMetadata.FieldArgGOceanKernelMetadata.GridArgGOceanKernelMetadata.ScalarArgGOceanKernelMetadata.create_from_fortran_string()GOceanKernelMetadata.create_from_psyir()GOceanKernelMetadata.fortran_string()GOceanKernelMetadata.index_offsetGOceanKernelMetadata.iterates_overGOceanKernelMetadata.lower_to_psyir()GOceanKernelMetadata.meta_argsGOceanKernelMetadata.nameGOceanKernelMetadata.procedure_name
- Submodules
psyclone.domain.gocean.transformations- Submodules
psyclone.domain.gocean.transformations.gocean_alg_invoke_2_psy_call_transpsyclone.domain.gocean.transformations.gocean_const_loop_bounds_transpsyclone.domain.gocean.transformations.gocean_extract_transpsyclone.domain.gocean.transformations.gocean_loop_fuse_transpsyclone.domain.gocean.transformations.gocean_move_iteration_boundaries_inside_kernel_transpsyclone.domain.gocean.transformations.gocean_opencl_transpsyclone.domain.gocean.transformations.raise_psyir_2_gocean_kern_trans
- Submodules
Classes#
GOceanConstants: This class stores all GOcean constants. It stores all values inGOceanDriverCreator: This class provides the functionality to create a driver thatGOSymbolTable: Sub-classes SymbolTable to provide a GOcean-specific implementation.
- class psyclone.domain.gocean.GOceanConstants[source]#
This class stores all GOcean constants. It stores all values in class variables (to avoid re-evaluating them).
Inheritance

- class psyclone.domain.gocean.GOceanDriverCreator(integer_type=<psyclone.psyir.symbols.datatypes.ScalarType object>, real_type=<psyclone.psyir.symbols.datatypes.ScalarType object>, region_name=None)[source]#
This class provides the functionality to create a driver that reads in extracted data produced by using the PSyData kernel-extraction functionality.
- Parameters:
integer_type (
ScalarType) – default scalar integer type to be used for integer variables. Defaults to INTEGER_TYPE.real_type (
ScalarType) – default scalar real type to be used for real variables. Defaults to REAL8_TYPE.region_name (
Optional[tuple[str,str]]) – Suggested region name.
Inheritance

- class psyclone.domain.gocean.GOSymbolTable(node=None, default_visibility=Visibility.PUBLIC)[source]#
Sub-classes SymbolTable to provide a GOcean-specific implementation.
Inheritance

- static create_from_table(old_table)[source]#
Create a GOSymbolTable instance from the supplied SymbolTable.
- Parameters:
old_table (
psyclone.psyir.symbols.SymbolTable) – the generic SymbolTable from which to create a new GOSymbolTable.- Returns:
a new GOSymbolTable containing all of the symbols in the supplied table.
- Return type:
psyclone.gocean1p0.GOSymbolTable- Raises:
TypeError – if the supplied argument is not a SymbolTable.
- property data_arguments#
In the GOcean API the data arguments start from the third item in the argument list.
- Returns:
the symbols representing the data arguments.
- Return type:
- property iteration_indices#
In the GOcean API the two first kernel arguments are the iteration indices.
- Returns:
the symbols representing the iteration indices.
- Return type: