Hi,
I created a SoA in my code.
but when I pass this one by reference, it does not work with pgcc.
typedef struct Coordinates coordinate;
struct Coordinates
{
long double *x;
long double *y;
long double *z;
int n;
};
int main (int argc, char *argv)
{
coordinate r;
ccoordinate(&r);
}
void ccoordinate(coordinate * c)
{
int n;
n=(*c).n;
#pragma acc kernels
for (unsigned int i=0; i < n; i++) {
(*c).x_=0.00;
(*c).y=0.00;
(*c).z=0.00;
}
}
I have these errors
Accelerator restriction: unsupported operation: X87CON
PGC/x86-64 Linux 17.10-0: compilation completed with severe errors
I cannot find what the mistake are.
Thanks in advance for your help._