Parfor dynare

Has anyone had much success running dynare in parallel via parfor?

Specifically wondering if anybody has solved around the global variables oo_, M_ issue. I’d like to avoid pre-processing a new dynare session for each thread.

Thanks!

Please provide an example of what you are trying to achieve.

I’m simply looping over different parameterizations and collecting the moments on pretty standard NK model. I just need to loop over a large combination of parameters…I currently have the loop inside the mod file, but I’m guessing I need to loop the stoch_simul file as a first step.

Please provide the file for your current try.