In the following function when I try to compile with
#pragma acc region
i get the following errors. i am really only interested in the last one.
TRA_RAY2:
101, Accelerator restriction: size of the GPU copy of an array depends on values computed in this loop
Accelerator region ignored
102, Accelerator restriction: size of the GPU copy of 'TRD' is unknown
Accelerator restriction: one or more arrays have unknown size
162, Accelerator restriction: size of the GPU copy of an array depends on values computed in this loop
Accelerator region ignored
163, Accelerator restriction: size of the GPU copy of 'Env' is unknown
Accelerator restriction: function/procedure calls are not supported
Accelerator restriction: one or more arrays have unknown size
165, Accelerator restriction: function/procedure calls are not supported
[code/=]
Since it does ot support function or procesdure call I guess thta is why it is giving me the error. Is this something that could possibly be changed in the future?
The code in question is:
for(i=0;i<(*Env).Nfreq;i=i+1)
LWR_VTX2( (*Env).frequency_Hz[i], &Gzv, RRAYb, &((*TRD).ZRAY),
&((*TRD).FRAY[i]), IRb, Env);
(*TRD).NLWR = (*TRD).NLWR + 1;
where the line that begins with & is the line 165.
In addition, how do I put in code in a forum post. Put in like this or use a code box? i
If use a code box how does one make a code box?
Thanks in advance.
THX 1138