- Allow parallel runs with unix;
- unix path syntax git-svn-id: https://www.dynare.org/svn/dynare/trunk@2695 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
58819397e6
commit
5085a1785f
|
@ -69,7 +69,7 @@ localVars.varargin=varargin;
|
||||||
tic,
|
tic,
|
||||||
|
|
||||||
|
|
||||||
if isnumeric(options_.parallel) | isunix, % for the moment exclude unix platform from parallel implementation
|
if isnumeric(options_.parallel),% | isunix, % for the moment exclude unix platform from parallel implementation
|
||||||
fout = random_walk_metropolis_hastings_core(localVars, fblck, nblck, 0);
|
fout = random_walk_metropolis_hastings_core(localVars, fblck, nblck, 0);
|
||||||
record = fout.record;
|
record = fout.record;
|
||||||
|
|
||||||
|
@ -88,11 +88,11 @@ else
|
||||||
NamFileInput(length(NamFileInput)+1,:)={'',[ModelName '_steadystate.m']};
|
NamFileInput(length(NamFileInput)+1,:)={'',[ModelName '_steadystate.m']};
|
||||||
end
|
end
|
||||||
if (options_.load_mh_file~=0) & any(fline>1) ,
|
if (options_.load_mh_file~=0) & any(fline>1) ,
|
||||||
NamFileInput(length(NamFileInput)+1,:)={[M_.dname '\metropolis\'],[ModelName '_mh' int2str(NewFile(1)) '_blck*.mat']};
|
NamFileInput(length(NamFileInput)+1,:)={[M_.dname '/metropolis/'],[ModelName '_mh' int2str(NewFile(1)) '_blck*.mat']};
|
||||||
end
|
end
|
||||||
|
|
||||||
% from where to get back results
|
% from where to get back results
|
||||||
% NamFileOutput(1,:) = {[M_.dname,'\metropolis\'],'*.*'};
|
% NamFileOutput(1,:) = {[M_.dname,'/metropolis/'],'*.*'};
|
||||||
|
|
||||||
[fout, nBlockPerCPU, totCPU] = masterParallel(options_.parallel, fblck, nblck,NamFileInput,'random_walk_metropolis_hastings_core', localVars, globalVars);
|
[fout, nBlockPerCPU, totCPU] = masterParallel(options_.parallel, fblck, nblck,NamFileInput,'random_walk_metropolis_hastings_core', localVars, globalVars);
|
||||||
for j=1:totCPU,
|
for j=1:totCPU,
|
||||||
|
|
Loading…
Reference in New Issue