circshift slower on GPU
Afficher commentaires plus anciens
Unlike other matrix operations, it seems that circshift runs slower on GPU than on CPU.
Run the following code, GPU spends twice the time of CPU. Any method to improve it?
M = rand(512);
N = gpuArray(rand(512));
tic;
for i = 1:10
circshift(M, [10, 10]);
end
toc;
tic;
for i = 1:10
circshift(N, [10, 10]);
end
toc;
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur GPU Computing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!