Rank: 15559 based on downloads (last 30 days) and 0 files submitted
photo

Jordi Arnabat

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Jordi
Updated File Comments Rating
25 Jan 2009 Multicore - Parallel processing on multiple cores This package realizes parallel processing on multiple cores/machines. Author: Markus Buehren

Thanks for this great contribution, it's very useful.

Correction:
I've used in under a grid of computers running different OS: GNU/Linux, Mac and Windows (XP). When the shared folder is on a network computer (not mapped to a local drive, for example: \\servername\sharedfolder); Windows systems fail trying to delete the semaphores, causing the master process run forever.

The solution I found is to slightly modify compsep.m and concatpath.m as follows:

_______________________________________________________
function str = chompsep(str)
unix_sep = '/';
pc_sep = '\';

if isunix && str(1)==pc_sep
    str = strrep(str, pc_sep, unix_sep);
elseif ispc && str(1)==unix_sep
    str = strrep(str, unix_sep, pc_sep);
end

if ~isempty(str) && (str(end) == unix_sep || str(end) == pc_sep)
str(end) = '';
end

_______________________________________________________
function str = concatpath(varargin)
unix_sep = '/';
pc_sep = '\';

str = '';
for n=1:nargin
curStr = varargin{n};
str = fullfile(str, chompsep(curStr));
end

if isunix && str(1)==pc_sep
    str = strrep(str, pc_sep, unix_sep);
elseif ispc && str(1)==unix_sep
    str = strrep(str, unix_sep, pc_sep);
end

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com