matlab2015a parpool,[转载]MATLAB2015A的parpool在win7下起不来,解决方法

MATLAB并行工具箱虽然没有进行深入研究,但是parfor的易用性和威力还是很诱人的。

但是2015a版的在win7系统(我试了好几台电脑)上parpool起不来,

报如下错误

>>

parpool Starting parallel pool (parpool) using the

'local' profile ... Error using parpool (line

103)Failed to start a parallel pool. (For information in addition

to the causing error, validate the profile'local' in the Cluster

Profile Manager.)Caused by:Error using

parallel.internal.pool.InteractiveClient>iThrowWithCause

(line 667)Failed to initialize the interactive session.Error using

parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus

(line 768)The interactive communicating job failed with no

message.

同样的安装文件在win8.1上安装就没有任何问题。

后来用matlab自带的工具测试了一下原来是spmd功能打不开,如下图

a4c26d1e5885305701be709a3d33442f.png

后来看parpool的帮助,可以利用如下参数在win7上启动parpool

>>

parpool('SpmdEnabled',false)Starting parallel pool (parpool) using

the 'local' profile ... connected to 2 workers.ans

= Pool with

properties: Connected: trueNumWorkers: 2Cluster:

localAttachedFiles: {}IdleTimeout: 30 minute(s) (30 minutes

remaining)SpmdEnabled: false

这样的话parpool就能顺利打开,parfor能用,但是spmd就不能用了。

权宜之计,要么就装别的版本matlab,要么就装win8.

还有一个更好的选择,装即将到来的win10。。。

--------分割线-------------

​用google搜了一下发现了更好的解决办法

distcomp.feature( 'LocalUseMpiexec', false )

命令行输入上面的命令,parpool就可以正常启动了。

把它添加到startup.m里面就可以一劳永逸了。​

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值