I am running the following command:
p = zeros(7000000,1); g_p = gpuArray(p);
1. CPU version
p(i) = 10;
2. GPU version
g_p(i) = 10;
It is amazing that the execution time in CPU really more faster than it in GPU. Why?