Start an *.exe with MDCS

2 vues (au cours des 30 derniers jours)
Christian Alteheld
Christian Alteheld le 22 Mai 2018
Hi,
I would like to start an *.exe on a worker. I know the directory on the worker, where the specific *.exe can be found. However it does not work. The client shows that it is busy but the *.exe is not started on the worker.
Code example:
n = 2;
parfor i = 1:n
dos('$path\*.exe');
end
I hope somebody can help me.
Thanks

Réponses (1)

Nagarjuna Manchineni
Nagarjuna Manchineni le 24 Mai 2018
Hi Christian,
I believe that the execution of executable might not have happened successfully. For verifying that, can you check the results of the dos command. For example,
>> [status,results] = dos('foo.exe') % this will display the status of the execution and the results of the execution
I see that you are using '$path' in the dos command. Make sure that the MDCS server is installed on the Windows machine (workers running on Windows) and the executable is present in the correct location which you are referring to and the MDCS server (workers) have access to the executable.
I will be surprised if there is any other reason that could be the cause of the issue.
Also, I am curious to know how you are verifying that the executable is not launched?
Note that MDCS workers run on their designated cluster machines and might not have access to your local file system unless configured explicitly.

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