constructing gpuarray with gpudata