PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Acc. restriction: function/procedure calls are not supported

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
VaibhavJ



Joined: 22 Apr 2013
Posts: 1

PostPosted: Wed Apr 24, 2013 11:49 pm    Post subject: Acc. restriction: function/procedure calls are not supported Reply with quote

I am trying to compile the following code:
for(int i=0;i<1000;i++)
for(int j=0;j<1000;j++)
a[i][j] = 1;
#pragma data copy(a)
#pragma acc kernels
for(int i=0;i<1000;i++)
for(int j=0;j<1000;j++)
a[i][j] = 2 * a[i][j];

But I am getting the following errors:
Accelerator region ignored
Accelerator restriction: function/procedure calls are not supported
Accelerator restriction: unsupported call to '__c_subchk'

What could be the problem?

Thanks in Advance.
Vaibhav Jain
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Apr 25, 2013 2:13 am    Post subject: Reply with quote

Hi Vaibhav Jain,

What flags are you using? This routine is added when bounds checking is enabled and bounds checking isn't available on the device. Please remove "-C" and/or "-Mbounds" and try again.

- 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
Page 1 of 1

 
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