Start an *.exe with MDCS

1 次查看(过去 30 天)
Christian Alteheld
Christian Alteheld 2018-5-22
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

回答(1 个)

Nagarjuna Manchineni
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.

类别

Help CenterFile Exchange 中查找有关 MATLAB Parallel Server 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by