Add GPU to the parallel pool
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Antonio Carlo Bertolino
le 27 Oct 2017
Commenté : Matt J
le 27 Oct 2017
Hello, I would like to know if it were possible to use the GPU as if it were one of the processor cores, adding it into the pool as an extra worker. I'm thinking about it in order to use also the GPU in the calculation performed by the "parsim" command to speed up the simulations I need to do. Thanks in advance, kind regards Antonio
0 commentaires
Réponse acceptée
Matt J
le 27 Oct 2017
Modifié(e) : Matt J
le 27 Oct 2017
This is only possible in the sense that, once you launch a gpuArray operation from one of the workers, MATLAB will carry on with any exclusively CPU operations on that worker without first waiting for the GPU operations to finish. When you're ready to claim the GPU results, you would use gather() to move them back to the host.
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur GPU Computing 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!