This is a section of C++ develoepd muti-gpu code. I am trying the CPU version where OPENACC=0
#if (OPENACC==1)
#pragma acc routine
#endif
void myCass::method( int i, int j, int dir, int index )
{
#if (OPENACC==1)
double Sn[ZSIZE];
#else
double *Sn=new double[ZSIZE] (double *Sn=()malloc(ZSIZE))
#endif
}
The following method gives the compiler error "PGCC-S-1000-Call in OpenACC region to procedure '_Znam' which has no acc routine information" but if I replace the "new" with C-style allocation (i.e. malloc ) in compiles fine. Is this something to be expected? I use PGI version 18.1
Is it safe to use a large private variable such as Sn ?