How do I validate my MATLAB cluster when I do not have access to a GUI?
32 views (last 30 days)
Show older comments
MathWorks Support Team
on 9 Apr 2014
Edited: MathWorks Support Team
on 15 Apr 2024 at 13:23
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
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
Matlabpool (Interactive Communicating Job)
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:
cluster = parcluster('name_of_profile');
job = createJob (cluster);
createTask(job, @sum, 1, {[1 1]});
submit(job);
wait(job);
out = fetchOutputs(job)
cluster = parcluster('name_of_profile');
job = createCommunicatingJob(cluster, 'Type', 'spmd') ;
createTask(job, @labindex, 1, {});
submit(job);
wait(job);
out = fetchOutputs(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('name_of_profile', 2)
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!