can I use multiple cores of my CPU?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have an Apple Mac Pro with 6 cores. I've got a math-intensive application running. Can I launch another instance of Matlab or some other way run another copy of my code (with different parameters) do use multiple cores in parallel and get several (different) copies of my algorithm done in the same overall time frame? To be clear: my code is not parallel code - it's a simple looping computation, and I just want to run several different versions of it at the same time, using multiple CPUs in Apple OS X. Possible?
2 commentaires
Rik
le 22 Fév 2017
What do you mean when you say that your code is not parallel code? parfor doesn't work I guess?
On Windows it is possible to open multiple instances of Matlab, so I don't see why you shouldn't be able to on a Mac. They should run on different cores, but there is an easy way to check...
Is it really impossible to vectorize your loop? Or at the very least convert it to something that you can hand over to rowfun?
Réponses (1)
Adam
le 22 Fév 2017
Modifié(e) : Adam
le 22 Fév 2017
You can launch as many instances of Matlab as you like (on Windows at least, I don't know about Apple) as far as I am aware (well, there must be a limit, but I have never wanted more than 2). Why don't you just try doing it, it seems the easiest way to find out?!
0 commentaires
Voir également
Catégories
En savoir plus sur Startup and Shutdown 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!