Unrecognized function or variable 'num_procs'

Hi,

I just installed MATLAB 2023b and Dynare 5.4 on my Mac with Apple chip, but after entering ‘dynare example1.mod’, the following error message appeared:

Starting Dynare (version 5.4).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 6 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 2).
Processing outputs …
done
Preprocessing completed.

Unrecognized function or variable ‘num_procs’.

Error in default_option_values (line 72)
options_.threads.kronecker.sparse_hessian_times_B_kronecker_C = num_procs;

Error in global_initialization (line 136)
options_ = default_option_values(M_);

Error in example1.driver (line 24)
global_initialization;

Error in dynare (line 278)
evalin(‘base’,[fname ‘.driver’]);

I saw previous related issues mentioning that the solution is to install MATLAB 2023a, but on MATLAB’s official website, it states that only 2023b supports Macs with Apple chips. How do I solve this problem?

Please refer to Dynare MacOS -Unrecognized function or variable 'num_procs'