PSyclone
PSyclone copied to clipboard
Using the `omp_gpu_trans` script is resulting in some compiler errors with some socrates files
There are some files in socrates that are failing to compile only after using the omp_gpu_trans
script on them.
The issue occurs because some static arrays are moved to be dynamic module level declarations from the subroutine level, however these arrays use a Kind
parameter which is not visible in the module, resulting in failed compilation:
Subroutine declaration in original:
real(kind=realk), dimension(nd_profile) :: x
Moved to module:
real(kind=realk), allocatable, dimension(:), private :: x
Compiler fails as realk
is not known at the module level.
Easy fix by hand - add the import.
@sergisiso this is the issue i mentioned on teams.