Error with parpool (Error using parpool (line 103) Not enough input arguments.)

조회 수: 5 (최근 30일)
Christoph Schöne
Christoph Schöne 2015년 11월 8일
댓글: Jenni Stanley 2019년 10월 15일
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
Edric Ellis 2015년 11월 13일
This sounds like an installation problem somewhere, I suggest that you contact MathWorks support to resolve this.
Tyler Warner
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
Kanikesh Yedla 2015년 11월 12일
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
Walter Roberson
Walter Roberson 2018년 8월 22일
Suvidha Tripathi: what results do you see for cluster validation?
Suvidha Tripathi
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
nikos skordilis 2016년 8월 27일
Hi I have the same problem but local_cluster_jobs folder doesn't exist. Can anyone help me?
  댓글 수: 6

댓글을 달려면 로그인하십시오.


Kanikesh Yedla
Kanikesh Yedla 2015년 12월 14일
Usually it will fix if u delete "local_cluster_jobs" folder at C:\Users\xxx\AppData\Roaming\MathWorks\

Christoph Schöne
Christoph Schöne 2015년 11월 12일
Hello Kanikesh Yedla,
thank you very much for this solution but I haven't got a file called "local_cluster_jobs". I've got a file called "parallel.settings" and deleted this one. But this does not fix the problem.
I think it's not a pure Matlab problem. I've reinstalled Matlab now two times and the error is still there. I've also updated the GPU Drivers (NVIDIA GEFORCE GTX960). but this doesn't solve the problem, too.
  댓글 수: 3
Bruno Remillard
Bruno Remillard 2017년 1월 6일
Yes it worked also for me. I just removed the .mat file and restarted Matlab

댓글을 달려면 로그인하십시오.


muhammad irfan
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
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');

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by