I am trying to vectorize my code for Xeon Phi and Xeon.
I am trying to offload a function to the Xeon Phi. Lets say I do this in module A. And this function is defined in some other module, say module B. Now, when I see the optreport for the module B, it says unaligned access, but only for intent(in) and intent(out) variables (these variables are arrays with leading dimension of size 16). Now, when I go to module A optreport, these intent(in) and intent(out) variables have aligned access. Then, I put assume_aligned directive before those variables in the module B. But still it says unaligned access. Also, if I make a local copy of these variables in module B, the local copies have aligned access. So, what should I do? Should I make local copies of each of these variables, or there is some other way?
Thanks.