Is it allowed to pass objects instead of a pointer to the following directive
pragma acc host_data use_device(myobject)
here is the code , Pn is the object and Pn.P is the pointer to the array where data is stored
#pragma acc data pcopyin( rank,N )
{
#pragma acc host_data use_device( Pn )
{
cufftPlan1d( &plan, 1000 , CUFFT_Z2Z, 1 );
cufftExecZ2Z( plan, (cufftDoubleComplex*)Pn.P, (cufftDoubleComplex *)Pn.P, CUFFT_FORWARD );
}
}
runing gives Seg Fault