Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

Compiling CESM for intel MIC in offload mode

$
0
0

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

 

 

 

 


Viewing all articles
Browse latest Browse all 1347


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>