- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding "-qoffload-attribute-target=mic" to the compiler command line will cause all functions and variables to be compiled as it they had the been explicitly declared with the offload attribute.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page