PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

EventSynchronize returned error 700
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
mkcolg



Joined: 30 Jun 2004
Posts: 6119
Location: The Portland Group Inc.

PostPosted: Tue Jul 03, 2012 10:16 am    Post subject: Reply with quote

Hi Sunita,

OpenACC requires that arrays be contiguous in memory. Hence, arrays of pointers can not be used. How are A and Anew declared?

- Mat
Back to top
View user's profile
sunitachandra



Joined: 26 Mar 2012
Posts: 2

PostPosted: Tue Jul 03, 2012 10:31 am    Post subject: Reply with quote

Hi Mat

Thanks for the reply. A and Anew are declared as arrays and using memset is used to set the values of the array...

float A[n][m];
float Anew[n][m];
float y0[n];

memset(A, 0, n * m * sizeof(float));

Sunita
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6119
Location: The Portland Group Inc.

PostPosted: Tue Jul 03, 2012 10:53 am    Post subject: Reply with quote

Hi Sunita,

The declarations look fine, so I tried to create an example from what you posted, but my example ran correctly. Can you please post a complete reproducing example?

Thanks,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group