Error with parpool (Error using parpool (line 103) Not enough input arguments.)
古いコメントを表示
Hello,
since today I've got a problem with starting the parallel pool. I've used it very often in the past to train neural networks (the last time was yesterday) and it worked without any problems. Today I wanted to test some new parameters with my neural network and tried to train it but everytime when I try to start the parallel pool (for example from the command line) there is the error:
>> parpool
Starting parallel pool (parpool) using the 'local' profile ... Error using parpool (line 103)
Not enough input arguments.
Error using parpool (line 94)
Not enough input arguments.
I've nothing changed in my 'local' profile. The same error happens when I try to 'Validate' in the 'Cluster Profile Manager'. Here are the validation results:
VALIDATION DETAILS
Profile: local
Scheduler Type: Local
Stage: Cluster connection test (parcluster)
Status: Failed
Description:The validation stage encountered a MATLAB exception.
Command Line Output:(none)
Error Report:
Not enough input arguments.
Debug Log:(none)
Can someone help me?
Thanks.
4 件のコメント
Edric Ellis
2015 年 11 月 9 日
Did you change something on your MATLAB path? I suggest trying to restore a default MATLAB path to see if that fixes things.
Christoph Schöne
2015 年 11 月 10 日
編集済み: Walter Roberson
2015 年 11 月 10 日
Edric Ellis
2015 年 11 月 13 日
This sounds like an installation problem somewhere, I suggest that you contact MathWorks support to resolve this.
Tyler Warner
2017 年 7 月 19 日
編集済み: Tyler Warner
2017 年 7 月 19 日
Thanks for the assistance. I ran "restoredefaultpath" and the parpool runs on my PC! However, it doesn't work with my server on Windows server 2012. The following error occurs:
>> restoredefaultpath
Warning: Duplicate directory name: C:\Program
Files\MATLAB\R2016a\toolbox\stateflow\stateflow
> In restoredefaultpath (line 52)
回答 (5 件)
Kanikesh Yedla
2015 年 11 月 12 日
19 投票
I faced same problem, but finally find the solotuion
--> Enter matlab command window 'prefdir' --> You can see C:\Users\xxx\AppData\Roaming\MathWorks\MATLAB\R2015a --> Delete local_cluster_jobs and restart matlab --> I hope this will fix the issue.
-- Kanikesh Yedla
5 件のコメント
NLD
2016 年 3 月 15 日
Thanks for your answer. I was trying to run matlab jobs on our server at school, but it would give me this error. No one in the IT support could solve this error. You saved my life.
Chifeng Liang
2018 年 1 月 27 日
Thanks for your perfect answer for this huge problem. I deleted the file, which you mentioned, and restarted the matlab program, and it work!
Suvidha Tripathi
2018 年 8 月 22 日
I found no such file in the mentioned path. My problem still persists
Walter Roberson
2018 年 8 月 22 日
Suvidha Tripathi: what results do you see for cluster validation?
Suvidha Tripathi
2018 年 8 月 23 日
I found the file and deleted it after which I could successfuly start my parallel pool. I also did cluster validation and found everything ok. However, One problem still remains that I am unable to use my all GPUs for multi-gpu processing. I am going to raise a separate question for this.
nikos skordilis
2016 年 8 月 27 日
5 投票
Hi I have the same problem but local_cluster_jobs folder doesn't exist. Can anyone help me?
6 件のコメント
Gabriel Limeira
2017 年 5 月 11 日
The "local_cluster_jobs" folder is one level up, in C:\Users\xxx\AppData\Roaming\MathWorks\ . Deleting it and restarting Matlab solves it.
Yichen
2017 年 7 月 26 日
Same problem. And this solution works in 7/26/2017. Thanks.
Longsheng Li
2017 年 9 月 19 日
You are the kind of person that we call superhero.
Andrea Federico Loinger
2017 年 10 月 27 日
Thank you for this tip! Extremely helpful and easy to do! I confirm it is still valid!
longlong leng
2019 年 8 月 22 日
Wow. Yes. You are amazing. Succeed.
Jenni Stanley
2019 年 10 月 15 日
Awesome! This worked for me also!
Kanikesh Yedla
2015 年 12 月 14 日
2 投票
Usually it will fix if u delete "local_cluster_jobs" folder at C:\Users\xxx\AppData\Roaming\MathWorks\
2 件のコメント
Niels Carl Hansen
2018 年 3 月 12 日
And btw, if you are on Linux, delete the directory ~user/.matlab/local_cluster_jobs
Allister Mason
2018 年 8 月 25 日
thanks
Christoph Schöne
2015 年 11 月 12 日
0 投票
3 件のコメント
Jien Cao
2015 年 11 月 12 日
I ran into the same issue just now and Kanikesh's solution worked - the missing detail is that the "local_cluster_jobs" folder is one level up, in C:\Users\xxx\AppData\Roaming\MathWorks\ . Deleting it and restarting Matlab fixed it for me.
Bruno Remillard
2017 年 1 月 6 日
Yes it worked also for me. I just removed the .mat file and restarted Matlab
Gabriel Limeira
2017 年 5 月 11 日
It worked for me too.
muhammad irfan
2019 年 2 月 24 日
function dimg = mipbackwarddiff(img,direction)
% MIPFORWARDDIFF Finite difference calculations
%
% DIMG = MIPBACWARDKDIFF(IMG,DIRECTION)
%
% Calculates the central-difference for a given direction
% IMG : input image
% DIRECTION : 'dx' or 'dy'
% DIMG : resultant image
%
% See also MIPCENTRALDIFF MIPFORWARDDIFF MIPSECONDDERIV
% MIPSECONDPARTIALDERIV
% Omer Demirkaya, Musa Asyali, Prasana Shaoo, ... 9/1/06
% Medical Image Processing Toolbox
img = padarray(img,[1 1],'symmetric','both');
[row,col]=size(img);
dimg = zeros(row,col);
switch (direction)
case 'dx',
dimg(:,2:col) = img(:,2:col)-img(:,1:col-1);
case 'dy',
dimg(2:row,:) = img(2:row,:)-img(1:row-1,:);
otherwise, disp('Direction is unknown');
end;
dimg = dimg(2:end-1,2:end-1);
when i will run this program i face the error like this
(Error using mipbackwarddiff (line 17)
Not enough input arguments.)
kindly someone help me to solve this
1 件のコメント
Walter Roberson
2019 年 2 月 24 日
You cannot run that code just be clicking the green Run triangle. You need either call it from other code or else go down to the command window, set up whatever variables you need, and then invoke it at the command window. For example,
img = imread('cameraman.tif');
dimg = mipbackwarddiff(img, 'dx');
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!