Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to determine the client machine that submit the job?

2 次查看(过去 30 天)
Under the parallel task currently evaluating, how can one determine the client machine that submit the job?

回答(2 个)

Sangeetha Jayaprakash
My understanding is that you would like to determine the client machine from which a particular job is submitted.
You can obtain the name of the user who owns the job by using the 'Username' property of the 'parallel.Job' class. Refer this link for more details on this class: https://www.mathworks.com/help/distcomp/parallel.job.html
If this does not help, could you provide more information on your use-case and workflow?

Nisai Wanakule
Nisai Wanakule 2016-11-2
Our cluster is on Windows and we usually submit the job using a domain user, so I am not sure if we can use the Username property to determine the machine that submitted the job. I have not try to submit using the local user. Doing so may complicate the security setup on the cluster.
I also curious on how does the JM determine what the machine to send the results back to (network port/pipe)?

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by