# How to implement &#34;PWM and PBM&#34; under Windows MPI settings

**URL:** <https://forum.certara.com/t/how-to-implement-34-pwm-and-pbm-34-under-windows-mpi-settings/3692>\
**Category:** Modelling and Simulation\
**Created:** [July 19, 2023, 1:20pm UTC](https://forum.certara.com/t/how-to-implement-34-pwm-and-pbm-34-under-windows-mpi-settings/3692 "2023-07-19T13:20:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0521](https://avatars.discourse-cdn.com/v4/letter/0/839c29/32.png) [@0521](https://forum.certara.com/u/0521)\
**Post date:** [July 19, 2023, 1:20pm UTC](https://forum.certara.com/t/how-to-implement-34-pwm-and-pbm-34-under-windows-mpi-settings/3692/1 "2023-07-19T13:20:34Z")

</div>

Hi Support,

I read “ **Phoenix\_Framework\_Guide** ” and that say, when Phoenix can run “Stepwise Cov Search” in Windows\_MPI, it automatically assigns cores to each model to run based on the number of covariate relationships.

> Phoenix supports both PBM and PWM and even supports a combination of the two. An example of combining PBM and PWM can be seen in a stepwise covariate search. During the first step, let’s assume there are 8 models to be run (base + 7 possible covariates). Phoenix will run all 8 models simultaneously (PBM) with each model using 20 computation cores (PWM).

But I can’t see this when I use it.

For example:

**My Environment information:**

- Phoenix NLME 8.4
- CPU: 32 threads

**Description of the scenario I used:**  
Stepwise 1st Find effect to add:

- 1 Base Model + 11 covariate model =12 Model  
**Observed CPU state** : Models are executed one by one, each model is executed by 32 cores  
**Expected CPU state:** 12 models run simultaneously, per model run under MPI by 2 core, total of 24 cores used

Stepwise 2ed Find effect to add:

- 10 covariates model  
**Observed CPU state:** Models are executed one by one, each model is executed by 32 cores  
**Expected CPU state:** 10 models run simultaneously, per model run under MPI by 3(or 2) core, total of 30(or 20) cores used

Phoenix-Edit-Preferces-RemoteExecution-ComputeGrid:

LocalHost|Windows|MPI|MPI\_32||||32|

Did I set something wrong?

Could you help me?

Sincerely,  
0521

---

<div class="post-metadata">

**Author:** ![bwendt](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@bwendt](https://forum.certara.com/u/bwendt)\
**Post date:** [July 20, 2023, 10:12am UTC](https://forum.certara.com/t/how-to-implement-34-pwm-and-pbm-34-under-windows-mpi-settings/3692/2 "2023-07-20T10:12:07Z")

</div>

Hi 0521,

on Windows and for covariate searches we recommend using Multicore mode since it is more efficient.

Please see the the online-help for setting up parallelization on Windows computers and Linux grids:

[https://onlinehelp.certara.com/phoenix/8.4/index.html#t=Phoenix\_UserDocs%2FPreferences%2FSetting\_up\_grids.htm%231016476&rhsearch=PWM&rhsyns=%20&rhtocid=\_41\_4\_0](https://onlinehelp.certara.com/phoenix/8.4/index.html#t=Phoenix_UserDocs%2FPreferences%2FSetting_up_grids.htm%231016476&rhsearch=PWM&rhsyns=%20&rhtocid=_41_4_0)

Let us know if you have further questions.

Bernd

---

<div class="post-metadata">

**Author:** ![0521](https://avatars.discourse-cdn.com/v4/letter/0/839c29/32.png) [@0521](https://forum.certara.com/u/0521)\
**Post date:** [July 20, 2023, 11:31am UTC](https://forum.certara.com/t/how-to-implement-34-pwm-and-pbm-34-under-windows-mpi-settings/3692/3 "2023-07-20T11:31:52Z")

</div>

Hi Bernd,

Thank you for your reply. As you suggested, I did eventually choose “Windows\_Multicore” (PBM).

Do you mean that Windows\_MPI does not support “PWM and PBM”, only conjunction with job managers under Linux with MPI(eg. Linux\_SLURM\_MPI) supports “PWM and PBM”?

Deploying “SLURM\_MPI (Linux)” is a bit difficult for me :huh: , could you issue pre-deployed docker images ready to use?

(The management side, client side, and executive side are all in one docker. I don’t plan to use a very large cluster built with multiple machines, I just expect to be able to implement “PBM and PWM” on my single machine.)

Thanks in advance! 🙂

0521

---

<div class="post-metadata">

**Author:** ![bwendt](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@bwendt](https://forum.certara.com/u/bwendt)\
**Post date:** [July 21, 2023, 3:59pm UTC](https://forum.certara.com/t/how-to-implement-34-pwm-and-pbm-34-under-windows-mpi-settings/3692/4 "2023-07-21T15:59:31Z")

</div>

Sorry, `PWM and PBM` mode is supported on grids only.

For Slurm I would suggest you raise a support ticket at [support@certara.com](mailto:support@certara.com). We will see how we can help you setting up the grid.

Bernd
