Hi All,
I am trying to run CESM(community earth system model written in Fortran) with offload sections for Intel Xeon Phi. I am trying to do this for an OpenMP loop present in a section called baroclinic function. While doing this, I get the following error during compilation of the offload code.
A procedure called by a procedure with the OFFLOAD:TARGET attribute must have the OFFLOAD:TARGET attribute.
I am also getting this error for Global variables. I tried adding the attributes "offload: mic :: <function name>" and "offload: mic :: <variable name>". This solves the problem. However, the hierarchical calls go down to almost 7-8 levels and doing this for every function and variable is too tedious.
How to go about this? Is there any workaround?
Thanks,
Aketh