shuffling files
going to just use square images for arrayfire grad() tests.
trying to use af::gfor.
naive gfor doesn't seem to work ... it looks like most of the dims have to be a 'span'
trying to do gfor gradX. I seem to have done everything 'properly', but I get: src/gena/gcache.cpp:34: CUDA driver error: device code error during execution (700)
doing just a plain shift-right instead of a full-on gradient. src/cuda/set.cu:39: CUDA runtime error: unspecified launch failure (4)
simple toy gfor example with INNER DIM in parallel works
interesting, seems like only the inner dimension can be run in a gfor.
wtf, input(y, span, span) doesn't work either.
investigating gfor some more