You do not have enough memory to allocate the needed array. That array has dimensions (number of basis functions)x(number of basis functions)x(3 times the number of atoms). It is a global array so you would need to increase the global memory in order to perform this calculation.