Rank: 359868 based on 0 downloads (last 30 days) and 0 file submitted
photo

Jordi Arnabat

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Jordi Arnabat
Updated File Comments Rating
25 Jan 2009 Multicore - Parallel processing on multiple cores This package provides 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

Contact us