Effacer les filtres
Effacer les filtres

How to run the iteration (total= 2^22) faster?

2 vues (au cours des 30 derniers jours)
SAMET YILDIZ
SAMET YILDIZ le 12 Déc 2014
Modifié(e) : Matt J le 12 Déc 2014
Hi everyone, I will make number of simulations next week, and I would like to know if I can make the for loop faster. I already use parfor actually in pretty straight forward coding algorithm in a mimo communication system model. I heard that maybe gpu can be added to make the iteration faster. Does anyone have an idea? Otherwise, I will keep my computer to finish my simulations almos 2 weeks non-stop. Best regards Samet

Réponse acceptée

Matt J
Matt J le 12 Déc 2014
Modifié(e) : Matt J le 12 Déc 2014
It depends on what your computation looks like. The GPU can accelerate many of the usual vectorized operations. A.*B, A+B, A./B, etc... can be made faster as long as A and B can be kept on the GPU across all iterations. However, if you have to pull data back from the GPU to the host, at every iteration, it can introduce communication overhead that could make it all non-worthwhile.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by