通过matlabpool命令来启动和配置Matlab并行计算池,但是在matlab2013B的帮助文档中说:
matlabpool will be removed in a future release. Use PARPOOL instead.
所以以后应该使用parpool,先来看看帮助文档是怎么说的
parpool Create a parallel pool of workers on a cluster and return a pool object
pool = parpool creates and returns a pool on the default cluster with its
NumWorkers in the range [1, preferredNumWorkers] for running parallel
language features (parfor, parfeval, parfevalOnAll, spmd, and distributed).
preferredNumWorkers is the value defined in your parallel preferences. Use
delete(pool) to shut down the parallel pool.
pool = parpool(numWorkers) creates and returns a pool with the
specified number of workers. numWorkers can be a positive integer or a
range specified as a 2-element vector of integers. If numWorkers is a
ra

本文介绍了如何在MATLAB中配置并行计算池,重点从matlabpool转向推荐使用的parpool命令。讨论了parpool的用法,包括创建指定数量的工作进程,并展示了在不同情况下启动和关闭并行池的操作。同时,文章指出在异常情况下,如设定的worker数量超过系统核心数,应允许系统使用默认配置。
最低0.47元/天 解锁文章
7544

被折叠的 条评论
为什么被折叠?



