| View previous topic :: View next topic |
| Author |
Message |
VaibhavJ
Joined: 22 Apr 2013 Posts: 1
|
Posted: Wed Apr 24, 2013 11:49 pm Post subject: Acc. restriction: function/procedure calls are not supported |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Thu Apr 25, 2013 2:13 am Post subject: |
|
|
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 |
|
 |
|