Hello. I allocated memory for a 2D array using
where Ints is a global int pointer. The allocation is done in a function. The copy is done in another function
#pragma acc data copy(Ints)
but i get this message.
“PGCC-S-0155-Cannot determine bounds for array Ints”
What could be the problem???
“Ints” is an unbounded pointer so the compiler doesn’t know it’s shape. To fix, add the starting element and the number of elements to copy. For example:
#pragma acc data copy(Ints[0:M][0:N])
For details see the OpenACC best practices guide, in particular chapter four’s section on “Shaping Arrays”.
Hope this helps,
mkcolg, I did what you said and it worked. Thanks mate