Now that I can build Claw (see #573), I decided to try out the mo_column code from the documentation using OpenMP transformation.
I can build and run the "before" case:
❯ gfortran -o before_transform mo_column.f90 main.f90
❯ ./before_transform
26116116.0
195520.172
But when I try the transformed case:
❯ make cpu
/home/mathomp4/CLAWTest/claw-compiler/install-GCC9/bin/clawfc --target=cpu --directive=openmp -o mo_column_cpu_openmp.f90 mo_column.f90
mo_column.f90:-:- warning: Fine grain OpenMP directive generation is not advised for CPU target.
/home/mathomp4/CLAWTest/claw-compiler/install-GCC9/bin/clawfc -o main_cpu_openmp.f90 main.f90
❯ gfortran -o after_transform mo_column_cpu_openmp.f90 main_cpu_openmp.f90
main_cpu_openmp.f90:15:55:
CALL compute_column ( nz , q ( : , : ) , t ( : , : ) )
1
Error: Missing actual argument for argument ‘nproma’ at (1)
This is trivial to fix (add , nproma) to the call and when you do:
❯ ./after_transform
26116116.0
195520.172
I was just wondering: is this expected? Or should Claw insert the nproma for you? (Just want to make sure my Claw is working as expected.)
Now that I can build Claw (see #573), I decided to try out the
mo_columncode from the documentation using OpenMP transformation.I can build and run the "before" case:
But when I try the transformed case:
This is trivial to fix (add
, nproma) to the call and when you do:I was just wondering: is this expected? Or should Claw insert the
npromafor you? (Just want to make sure my Claw is working as expected.)