How can I use dlmwrite in conjunction with cluster computing?

1 vue (au cours des 30 derniers jours)
Dhrubojyoti Roy
Dhrubojyoti Roy le 20 Août 2014
Modifié(e) : Thomas Ibbotson le 21 Août 2014
I want to submit a batch process using the PCT on MATLAB R2014a that is connected to a remote cluster. However, I am unable to use the dlmwrite command to save a matrix from the following script:
%testscript
parfor i=1:5,
lele(:,i) = eig(rand(1000));
end
dlmwrite('lele_data.dat', lele, 'delimiter', '\t', 'precision', 16);
After the job is completed, I am able to load the workspace and retrieve the variable manually, but the dlmwrite doesn't produce any output in the remote MATLAB directory. Please help.
  1 commentaire
Thomas Ibbotson
Thomas Ibbotson le 21 Août 2014
Modifié(e) : Thomas Ibbotson le 21 Août 2014
How are you submitting 'testscript' to the cluster? Can you show us that code?
Secondly, you might need to use a full path instead of just the filename. The worker's current working directory is probably not what you expect. For example with MJS on linux the default location for the worker's current working directory is /var/lib/mdce/ClusterName/WorkerName_mlworker_log/matlab/work

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Parallel Server dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by