选择计算机运行MATLAB和SIMULINK产品s manbetx 845万博1manbetx

预测在特定计算机上运行应用程序时,MATLAB如何执行如何执行。MathWorks提供了关于平台选择标准的这一普遍指导,并强调它不是在特定计算机上测试应用程序的替代品。

内容


操作系统

MATLAB性能在Windows上类似®, 苹果系统®X, and Linux®但是,由于以下原因,平台之间可能会发生差异:

  • MathWorks在每个平台上使用不同的编s manbetx 845译器构建其产品,每个都具有自己的性能特征。
  • MathWorks将第三方库融入其在每个平台上可能执行不同的产品。s manbetx 845
  • 操作系统的执行方式不同,特别是在磁盘或图形密集型操作的情况下。

In general, performance differences in operating system releases (for example, between Windows 7 and Windows 8) are negligible.


硬件考虑因素

Each component of a typical computer configuration has an impact on MATLAB performance.

中央处理单元(CPU)

Computers with更多CPU核心可以优于核心计数较低的那些,但结果将随Matlab应用程序而有所不同。MATLAB自动使用多线程来利用许多MATLAB应用程序中发现的自然并行性。但并非所有Matlab功能都是多线程,速度随算法而变化。为了额外的能力,并行计算工具箱提供并行编程构造,更直接利用多台计算机核心。

MATLAB性能取决于浮点硬件的存在。在许多CPU上,浮点单元(FPU)的数量等于CPU核心的数量。然而,在一些处理器上,可以在多个CPU核心之间共享单个FPU,可能会产生性能瓶颈。

虚拟核心may modestly improve overall system performance, but they are likely to have little effect on the performance of MATLAB applications. Intel CPUs with超线程给电脑的外观有米的两倍any cores than it actually has. When using a tool such as Windows Task Manager, MATLAB may appear to use only half of the CPU cores available on the computer, when in fact the "unused" half is actually the virtual cores created by hyper-threading.

记忆

你的电脑会受苦performance degradation由于捶打when MATLAB and the programs you run concurrently with it use more than the available physical memory and your computer must resort to virtual memory. If, while running a MATLAB application, you find your computer is using little of the CPU, you may be experiencing thrashing. To detect thrashing on a Windows platform, useWindows性能监视器。在MAC上,使用活动监视器

硬盘

硬盘速度是MATLAB启动时间的重要因素。一旦MATLAB正在运行,磁盘速度只是MATLAB应用程序的性能配置文件由文件I / O主导,或者系统使用虚拟内存(请参阅记忆部分)。对于磁盘密集型MATLAB应用程序或改进MATLAB的启动时间,您可以利用诸如技术的技术固态驱动器or袭击

Graphics Processing Unit (GPU) for display

MATLAB图形使用OpenGL技术呈现,因此具有优越的OpenGL支持的图形卡可以越高较小的卡。万博1manbetx建议最新的驱动程序以获得最佳的视觉外观和鲁棒性。

Graphics Processing Unit (GPU) for computation

加速计算并行计算工具箱利用NVIDIA GPU,计算能力3.0或更高。对于释放17B及更早版本,计算能力2.0就足够了。对于释放14A及更早版本,计算能力1.3就足够了。
See the compute capabilities of all NVIDIA GPUs。此时,MATLAB不支持使用AM万博1manbetxD或Intel GPU的计算加速。


基准测试程序

MATLAB提供A.built-in benchmarking utility替补席that provides a general sense of MATLAB performance on a particular computer, but it cannot reliably predict how any particular MATLAB application will run. Use the MATLAB function时代帮助产生可靠和可重复的性能基准。采用gputimeit.要基准GPU代码。