Hello,
I am trying to run an estimated DSGE model in parallel using Dynare 6.2 on macOS Sequoia 15.2 with MATLAB 2024b. My system has a 14-core M4 Pro CPU, and I have set 1 thread per job in both the configuration file and the hidden structure that contains the necessary information to enable parallel computing in Dynare. However, I am only able to run two additional instances of MATLAB.
How can I resolve this issue?
Best regards,
Federico
Can you provide the relevant parts of the configuration file that you set?
Thanks for your reply! Here is the configuration file I use:
[cluster]
Name = Local
Members = n1
[node]
Name = n1
ComputerName = localhost
CPUnbr = 14
NumberOfThreadsPerJob = 1
MatlabOctavePath=/Applications/MATLAB_R2024b.app/bin/matlab
The hidden structure containing the settings for the parallel computing in Dynare has been created as follows:
parallel_config = struct();
parallel_config.cluster(1).Name = ‘Local’;
parallel_config.cluster(1).Members = {‘n1’};
parallel_config.node(1).Name = ‘n1’;
parallel_config.node(1).ComputerName = ‘localhost’;
parallel_config.node(1).CPUnbr = 14;
parallel_config.node(1).NumberOfThreadsPerJob = 1;
parallel_config.node(1).MatlabOctavePath = ‘/Applications/MATLAB_R2024b.app/bin/matlab’;
mkdir(‘~/.dynare’)
save(‘~/.dynare/parallelnodes.mat’, ‘parallel_config’);
Which command are you running in Dynare for which you expect more than 2 instances of Matlab?
Here is the command:
estimation(datafile=Data,
first_obs=1,
nobs=98,
kalman_algo=1,
lik_init=1,
mh_replic=1000,
posterior_sampling_method=‘slice’,
mh_nblocks=7,
use_univariate_filters_if_singularity_is_detected=0,
heteroskedastic_filter,
mh_drop=0.20,
bayesian_irf,
graph_format=(fig)). Anyway I have updated MacOs to Sequoia 15.3 and now it seems to work properly
I see. The fact that an upgrade of the operating system solved the issue suggests that it was not a problem on the end of Dynare.