Hello, I am very new and I have to find a solution for tomorrow :o(...
I have 8 Ubuntu nodes. I create a share folder name /scratch. The /scratch folder is avaiable on all nodes.
I create a matlab script on my mac. The script resize high reslution image from a folder (named source)and move the resized images to another folder name target. The script works fine.
Then I scp the source and target folders and the resize_img.m script to /scratch/pierre/exercise/ of my first node. Matlab is installed in all of my node. Then I ssh my node and I cd to /scratch/pierre/exercise/. From there I run the following command
matlab -nodisplay -r redim_img
< M A T L A B (R) >
Copyright 1984-2016 The MathWorks, Inc.
R2016b (18.104.22.1681655) 64-bit (glnxa64)
September 7, 2016
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
Starting resizing High resolution images ...
Complete => Elapsed time: 11.5222ms
That fine, but now I would like to run the script to all of my nodes to see how long does take the script to resize the images with 1,2,4,6 nodes.
I am a novice and I absoluetly have no idea how to run my script in parallel computing.
Which command should I use to run the split the script on all nodes? Some one fo you can give a way to do my experience? Should I configure my node with a plugin?
FYI: OpenMPI is installed and I can use OpenMPI to run C++ script on all the nodes
many thank for your help