Here I used acc_map_data, I set /usr/apps/isv/pgi/pgiset14.1.sh
int N=128,X=10;
Hi Guanghao_Jin,
The error is correct. “G[X:N]” is stating to start a element X (10) and copy over N (128) elements. G1 is only N-X (118) elements so is only “partially present” on the GPU.
To fix, either copy over only N-X elements or increase the size of G1.
Hope this helps,
Mat