srun and matlab
ok Mr. Cluster, here I come, I have unlocked the power to issue commands to your nodes for my maltab function ha ha ha ha!
so if you are in slurm
srun -n1 -o t.txt matlab -nodesktop -nosplash -nodisplay -r “temp4(29)” &
t.txt <— will get all the output
after -r you can give all the commands as the form of script i.e. ” “
in above case temp4 was matlab file function, and 29 was input
& so that it can run in background
-n1 only one measly node
But then you can run multiple of such commands and each one gets node
Don’t forget to open the matlabpool in the file you are running if you are using the parallel commands.
Advertisement