# Running CCX with more cpus

**URL:** https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974
**Category:** Uncategorized
**Created:** [December 14, 2023, 5:17am UTC](https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974 "2023-12-14T05:17:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pushpa.raj](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pushpa.raj](https://calculix.discourse.group/u/pushpa.raj)
#### Post date: [December 14, 2023, 5:17am UTC](https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974/1 "2023-12-14T05:17:31Z")

</div>

Hello everyone,

I’m currently encountering an issue with CPUs while running my model. When using the command `CMD--- ccx_static file.inp`, the solver seems to utilize only one CPU. Given the size of my assembly, this results in the solver quitting without providing any error messages.

I would greatly appreciate assistance on **how to increase the number of CPUs on a Windows system** for this particular simulation.

Thank you in advance for your help.

---

<div class="post-metadata">

### Author: ![fgr](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@fgr](https://calculix.discourse.group/u/fgr)
#### Post date: [December 14, 2023, 7:48am UTC](https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974/2 "2023-12-14T07:48:00Z")

</div>

@pushpa.raj  
You will need to set the environment parameter OMP\_NUM\_THREADS with the number of cpus/threads you want to use for the ccx simulation.

You can as example do it before you execute the ccx command. You only need to do it once in the same command shell  
set OMP\_NUM\_THREADS=4

---

<div class="post-metadata">

### Author: ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)
#### Post date: [December 14, 2023, 7:48am UTC](https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974/3 "2023-12-14T07:48:15Z")

</div>

Type `setx OMP_NUM_THREADS "number_of_your_cpus"` in the command line or use _System Properties —\> Advanced —\> Environment Variables…_ to add a new variable named _OMP\_NUM\_THREADS_ with the value being the number of cpus. To check the value of this variable using the command line, type: `echo %OMP_NUM_THREADS%`

---

<div class="post-metadata">

### Author: ![pushpa.raj](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pushpa.raj](https://calculix.discourse.group/u/pushpa.raj)
#### Post date: [December 14, 2023, 8:37am UTC](https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974/4 "2023-12-14T08:37:24Z")

</div>

Thanks Dear for your support

---

<div class="post-metadata">

### Author: ![pushpa.raj](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pushpa.raj](https://calculix.discourse.group/u/pushpa.raj)
#### Post date: [December 14, 2023, 8:37am UTC](https://calculix.discourse.group/t/running-ccx-with-more-cpus/1974/5 "2023-12-14T08:37:51Z")

</div>

Thanks @Calc_em for your support
