I have a 3d array
V = zeros(N,N,N) and I would like to reverse it with respect to the last component. I achieve this by using the following function. This works well using
CuArray (on master, see link) for
A but this is very inefficient as
N~100. Hence the gpu is wasted doing such a small reverse.
I am wondering if any of you has an idea to speed this up on GPU?
Thank you very much
function myreverse!(A) n = size(A) for jj = 1:n, ii = 1:n reverse!(A[ii,jj,:]) end end