Matlab的2011A使用64位Linux提供的所有核心? [英] Matlab 2011a Use all Cores Available on 64 bit Linux?

查看:295
本文介绍了Matlab的2011A使用64位Linux提供的所有核心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上看了看,但我似乎无法找到答案,我是否需要做任何事情,使MATLAB使用的所有核心?从我了解的多线程提供了支持自2007年以来在我的机器MATLAB只使用一个核心@ 100%,其余挂在约2%。我使用的是64位Linux(薄荷12)。在我的其中只有2个内核,是32位Matlab的似乎是利用两个内核@ 100%的其它计算机。不是所有的时间,但在案件数量充足。在64位,4核PC这永远不会发生。

Hi I've looked online but I can't seem to find the answer whether I need to do anything to make matlab use all cores? From what I understand multi-threading has been supported since 2007. On my machine matlab only uses one core @100% and the rest hang at ~2%. I'm using a 64 bit Linux (Mint 12). On my other computer which has only 2 cores and is 32 bit Matlab seems to be utilizing both cores @100%. Not all of the time but in sufficient number of cases. On the 64 bit, 4 core PC this never happens.

我一定要在64位做任何事情来得到Matlab来尽可能使用所有内核?我不得不做一些定制的链接之后安装的Matlab的是没有找到库(例如,libc.so.6的),因为它不是看在正确的地方。

Do I have to do anything in 64 bit to get Matlab to use all the cores whenever possible? I had to do some custom linking after install as Matlab wasn't finding the libraries (eg. libc.so.6) because it wasn't looking in the correct places.

推荐答案

通过的标准,因为最新的版本,您可以使用使用12芯的的并行计算工具箱的。如果没有这个工具箱,我想你的运气了。任何额外的内核可以通过的 MATLAB分布式计算服务器的,在那里你每个工作线程的数量实际支付进行访问。

By standard, since the latest release, you can use 12 cores using the Parallel Computing Toolbox. Without this toolbox, I guess you're out of luck. Any additional cores could be accessed by the MATLAB Distributed Computing Server, where you actually pay per number of worker threads.

为使MATLAB使用多个内核,你需要做的

To make matlab use your multiple cores you have to do

matlabpool open

和它的作品当然更好,如果你居然还多线程code(就像使用 SPMD 函数或PARFOR循环)

And it of course works better if you actually have multithreaded code (like using the spmd function or parfor loops)

更多信息在MATLAB首页

这篇关于Matlab的2011A使用64位Linux提供的所有核心?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆