[PyCUDA] Assertion Error

2014-02-10 Thread Jayanth Channagiri
Dear all I am having problems with slicing a 3D array into 2D array and then sending it to GPU. For example, array1 = ones((128,128,128)) array1_gpu = gpuarray.to_gpu(array1) #no problem in sending it to GPU But if I convert it to a 2D array like, array1_slice = array1[:,:,1] array1_gpu =

Re: [PyCUDA] Assertion Error

2014-02-10 Thread Andreas Kloeckner
Jayanth Channagiri cv.jaya...@hotmail.com writes: Dear all I am having problems with slicing a 3D array into 2D array and then sending it to GPU. For example, array1 = ones((128,128,128)) array1_gpu = gpuarray.to_gpu(array1) #no problem in sending it to GPU But if I convert it to a 2D