Thread Subject: mdce - workername - How to determine which worker/CPU core is being used

Subject: mdce - workername - How to determine which worker/CPU core is being used

From: Ian

Date: 15 Sep, 2010 07:08:03

Message: 1 of 1

Hello,
-Has anyone worked out how to determine which CPU core is being used when using mdce and parfor?
-This information is available in "Admin center". ie. "PC1_Worker01" which refers to hostname "PC1" and core 1 of the 4 core machine.
-I want to use this feature as it is the best way when dealing with parfor and using user designed functions.

-----
-Eg. Assume running parfor on a slave creates the flat file: "My_OUT.txt". This will force an error with write permissions as each of the 4 processes will be trying to write and access this file.

-Ideally a statement such as:
                               get('workername')
-I would get a response like "PC1_Worker01","PC1_Worker02","PC1_Worker03","PC1_Worker04".
-Allowing I/O of:
My_OUT_PC1_Worker01.txt, My_OUT_PC1_Worker02.txt, My_OUT_PC1_Worker03.txt, My_OUT_PC1_Worker04.txt
to avoid such issues.
-This is easily performed on distributive software such as Condor. However, i'm using MATLAB scheduler.

-This particular issue has been discussed below to use 'system_dependent('getpid')'. But this solution is not really appropriate.

http://www.mathworks.com/matlabcentral/newsreader/view_thread/250559
with the solution to

http://matlabwiki.mathworks.com/MATLAB_FAQ#I.27ve_seen_system_dependent_on_the_newsgroup_before._What_does_it_do.3F

kind regards,
Ian Gregory, Sydney.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mdce Ian 15 Sep, 2010 03:09:07
workername Ian 15 Sep, 2010 03:09:07
matlabpool Ian 15 Sep, 2010 03:09:07
windows Ian 15 Sep, 2010 03:09:07
dual Ian 15 Sep, 2010 03:09:07
quad Ian 15 Sep, 2010 03:09:07
core Ian 15 Sep, 2010 03:09:07
worker Ian 15 Sep, 2010 03:09:07
parfor Ian 15 Sep, 2010 03:09:07
rssFeed for this Thread

Contact us at files@mathworks.com