MATLAB: I run the example “Stencil Operations on a GPU” in matlab command. I got following output. I don’t have any advantage in using of Arrayfun on GPU compared with simple GPU array. the GPU device is GeForce GTX 980 Ti. is it reasonable

gpu computation performance

paralleldemo_gpu_stencil
Average time on the CPU: 1.906ms per generation.
Average time on the GPU: 0.792ms per generation (2.4x faster).
Average time using GPU arrayfun: 0.996ms per generation (1.9x faster).
CPU: 1.906ms per generation.
Simple GPU: 0.792ms per generation (2.4x faster).
Arrayfun GPU: 0.996ms per generation (1.9x faster).

Best Answer

Yes, it's perfectly reasonable.
Related Question