How do I validate my MATLAB cluster when I do not have access to a GUI?

32 views (last 30 days)
The machine I need to run cluster validation from does not have access to the MATLAB GUI. How do I manually validate my MATLAB cluster?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Apr 2024 at 0:00
Edited: MathWorks Support Team on 15 Apr 2024 at 13:23
If you have access to a GUI in your client MATLAB please follow these steps
instead: http://www.mathworks.com/matlabcentral/answers/1590004-how-do-i-validate-my-parallel-cluster-profile-in-matlab
Only use these steps if you do not have access to a GUI in your client MATLAB.
The following commands work whether you are validating a local profile or a MATLAB Parallel Server profile. Please make sure you are validating the correct profile before proceeding and that you replace "name_of_profile" with the name of the profile you want to manually validate.
In order to place MATLAB in verbose mode run the following command within the MATLAB command Window. 
setSchedulerMessageHandler(@disp)
Then run each of the following jobs:

 

Independent (Batch) Job
cluster = parcluster('name_of_profile');
job = createJob (cluster);
createTask(job, @sum, 1, {[1 1]});
submit(job);
wait(job);
out = fetchOutputs(job)

 

SPMD Job (Communicating Batch Job)
cluster = parcluster('name_of_profile');
job = createCommunicatingJob(cluster, 'Type', 'spmd') ;
createTask(job, @labindex, 1, {});
submit(job);
wait(job);
out = fetchOutputs(job)

 

Parpool (Interactive Communicating Job)
parpool('name_of_profile', 2)

 

If you are using MATLAB R2013a or older to run a MATLAB interactive job, use the "matlabpool" command:
 
Matlabpool (Interactive Communicating Job)
matlabpool('name_of_profile', 2)

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!