can I use multiple cores of my CPU?
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
Rik
2017-2-22
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?
回答(1 个)
Adam
2017-2-22
编辑:Adam
2017-2-22
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!