circshift slower on GPU
Mostra commenti meno recenti
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;
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su GPU Computing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!