MATLAB: Is the code slower on the GPU than CPU when using Parallel Computing Toolbox 6.0 (R2012a)

gpunvidiaParallel Computing Toolboxperformanceslowertesla

I rewrote my MATLAB code for the GPU. However, I do not see any performance gains.

Best Answer

Performance of GPU code is dependent on GPU hardware used, algorithm used in MATLAB, and the problem data size. In general, the more computationally intensive is the algorithm, and the larger amount of data it is working on the higher the performance gain over the CPU.
Please run gpuBench available on MATLAB Central at:
to gain better understanding of potential speedups for your computer setup.