Run matlab parallel parpool.m in a python wrapper

2 visualizaciones (últimos 30 días)
Junhao WEN
Junhao WEN el 31 de Jul. de 2017
Hi, Matlab experts:
I have a question to use local parallel pool, I set up the configuration and the code to call it: myPool = gcp('nocreate'); % If no pool, do not create new one.
myPool = gcp('nocreate'); % If no pool, do not create new one.
if isempty(myPool)
myPool = parpool(poolsize);
end
It works in matlab script or from terminal to call it, but I have problem to call it from a python wrapper, which gave me errors:
Standard error:
MATLAB code threw an exception:
Failed to start a parallel pool. (For information in addition to the causing error, validate the profile 'local' in the Cluster Profile Manager.)
File:/Applications/MATLAB_R2016a.app/toolbox/distcomp/cluster/parpool.m
Name:/Users/junhao.wen/Hao/Project/NODDI/NODDI_toolbox_v0.9/fitting/batch_fitting.m
Line:47
File:Users/junhao.wen/Hao/Project/NODDI/scripts/noddiprocessing.m
Name:/Users/junhao.wen/test/NODDI/working_dir/NoddiMatlab/nodditoolbox/mapflow/_nodditoolbox1/pyscript.m
Line:112
File:arpool
Name:batch_fitting
Line:110
File:oddiprocessing
Name:pyscript
Line:103
File:3
Name::
Line:6
I do not know why, is it because that Matlab parallel pool does not support in python or other language wrapper??
Thanks very much.
Hao

Respuestas (1)

Sharan Paramasivam Murugesan
Sharan Paramasivam Murugesan el 21 de Ag. de 2017
This could be due to a bug in R2016a. Try the patch available at
If the patch does not help, provide the cluster logs. Log files exist on every system running in the cluster. By default on Windows these files are located in C:\temp\mdce and in /var/log/mdce on UNIX. The default location for the logs is in the file matlabroot\toolbox\distcomp\bin\mdce_def.bat on Windows and matlabroot/toolbox/distcomp/bin/mdce_def.sh on UNIX.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by