# Advises on improving the computational efficiency of DSGE models

**URL:** https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428
**Category:** Installation and Setup
**Created:** [7 July 2026 14:37 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428 "2026-07-07T14:37:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Maxx](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@Maxx](https://forum.dynare.org/u/Maxx)
#### Post date: [7 July 2026 14:37 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428/1 "2026-07-07T14:37:46Z")

</div>

Could you please advise on improving the computational efficiency of DSGE models?

1. The model takes a long time to run, but the CPU utilisation is only around 60%. Are there any settings that can increase CPU utilisation?

2. How can I configure the program to use the GPU? I would like to run the model on the GPU to achieve higher efficiency and shorter run times.

---

<div class="post-metadata">

### Author: ![Maxx](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@Maxx](https://forum.dynare.org/u/Maxx)
#### Post date: [7 July 2026 16:37 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428/2 "2026-07-07T16:37:39Z")

</div>

![20260708003501_40_2](https://forum.dynare.org/uploads/default/original/3X/5/4/548f1a546eb733c3ca8dd8d7017e6d9699af9fde.jpeg)

---

<div class="post-metadata">

### Author: ![Maxx](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@Maxx](https://forum.dynare.org/u/Maxx)
#### Post date: [7 July 2026 23:30 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428/3 "2026-07-07T23:30:06Z")

</div>

I would greatly appreciate for any assistances, guidances, or helps from professors and the experts.

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [8 July 2026 16:33 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428/4 "2026-07-08T16:33:13Z")

</div>

That is tricky. There are various levels of parallelism in Dynare. See e.g. [Making sure you're not a bot!](https://git.dynare.org/Dynare/dynare/-/work_items/2026)  
MATLAB parallelizes many of its internal routines already. Increasing the CPU usage of Dynare’s routines may e.g. conflict with the parallelization of MATLAB. Depending on the pipeline you are working with, you can experiment with PCT setting and the `set_dynare_threads` function.

---

<div class="post-metadata">

### Author: ![Maxx](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@Maxx](https://forum.dynare.org/u/Maxx)
#### Post date: [10 July 2026 16:27 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428/5 "2026-07-10T16:27:54Z")

</div>

…, There is not obvious improvement

% run\_model.m  
set\_dynare\_threads(‘dsge\_likelihood’,16);  
set\_dynare\_threads(‘dynare’,16);  
set\_dynare\_threads(‘kalman\_filter’,16);  
options\_.threads = 16;

% test  
dynare test.mod;

---

<div class="post-metadata">

### Author: ![Maxx](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@Maxx](https://forum.dynare.org/u/Maxx)
#### Post date: [10 July 2026 16:29 UTC](https://forum.dynare.org/t/advises-on-improving-the-computational-efficiency-of-dsge-models/28428/6 "2026-07-10T16:29:41Z")

</div>

![2659afd888101d3a0c989fbd332b4c1e](https://forum.dynare.org/uploads/default/original/3X/7/8/78cd256b923010ae270d278937ce39de1408040d.jpeg)
