Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

DCS parallel config validation - make the scratch directory during validation otherwise validation fails (any workarounds)

Asked by Thomas on 11 Oct 2011
DCS 128 node license
Parallel configuration - Parallel Submit function in the configuration manager is parallelSubmitFcn- {@parallelSubmitFcn, 'cluster.*******.***.edu', '/lustre/scratch/USERID/matlab'}

However If the folder /lustre/scratch/USERID/matlab does not exist, validation of the parallel configuration fails. Is there anyway to create the folder using 'mkdir' just before the validation runs.

once it is made it can always be used by Matlab.

Right now we ask Users to ssh and create the folder but was wondering if the there was way to automate it before validation as 'validation' is the first step users perform before using MATLAB on our cluster.

P.S.- Have looked into the Submit scripts tailored for our cluster parallelSubmitFcn.m , distributedSubmitFcn.m, findResource.m and the validateConfig.m in the distcomp toolbox but could not find a place to make the directory.

8 Comments

Thomas on 14 Nov 2011

Konrad,
We do not want to create the directory for all users on our cluster, but only a small fraction of those users that use MATLAB (less than 2%) and hence we did not want to go ahead and put it in for all our numerous users and clutter their scratch space with an extra folder. My question was can we create this space while validation of the MATLAB config from the desktop since that is one of the first steps we ask our users to perform after configuring MATLAB with our cluster.

Validation fails if that directory does not exist.
Can we create the directory during the 'findResource' part of the validation?

Konrad Malkowski on 17 Nov 2011

Hi Thomas,

No, at the moment there is no way of doing this automatically during validation.

I will add it as an enhancement request for a future release.

Thomas on 17 Nov 2011

Thanks, Konrad!

Thomas

1 Answer

Answer by Thomas on 19 Mar 2012
Accepted answer

This request has been added as an enhancement form a future release..

0 Comments

Thomas

Contact us