# How to run Paraview on multiple GPUs in a single node

**URL:** https://discourse.paraview.org/t/how-to-run-paraview-on-multiple-gpus-in-a-single-node/10014
**Category:** ParaView Support
**Created:** [July 15, 2022, 8:14am UTC](https://discourse.paraview.org/t/how-to-run-paraview-on-multiple-gpus-in-a-single-node/10014 "2022-07-15T08:14:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bruno\_Sotelo](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bruno_sotelo/32/9624_2.png) [@Bruno\_Sotelo](https://discourse.paraview.org/u/Bruno_Sotelo)
#### Post date: [July 15, 2022, 8:14am UTC](https://discourse.paraview.org/t/how-to-run-paraview-on-multiple-gpus-in-a-single-node/10014/1 "2022-07-15T08:14:14Z")

</div>

Hello,

I compiled 5.6 superbuild version with EGL and MPI support on my linux machine. I have an instance with 4 GPUs and 24 cores but since I have EGL capabilities, I want to use all 4 GPUs. The following is a command I tried:

`pvbatch --egl-device-index=0,1,2,3 post_scalar_V3.py`

The issue is that upon reviewing the GPU usage, only the GPU with index 0 is being utilized. What’s the correct command to use all the GPUs in my machine? See the nvidia-smi output. As you see at very bottom, only one GPU is being utlized.

```auto
| NVIDIA-SMI 470.82.01 Driver Version: 470.82.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA A10G On | 00000000:00:1B.0 Off | 0 |
| 0% 29C P0 73W / 300W | 1717MiB / 22731MiB | 24% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 NVIDIA A10G On | 00000000:00:1C.0 Off | 0 |
| 0% 25C P8 18W / 300W | 0MiB / 22731MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 2 NVIDIA A10G On | 00000000:00:1D.0 Off | 0 |
| 0% 25C P8 10W / 300W | 0MiB / 22731MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 3 NVIDIA A10G On | 00000000:00:1E.0 Off | 0 |
| 0% 26C P8 16W / 300W | 0MiB / 22731MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 40294 G ...aview-egl-5.6/lib/pvbatch 1717MiB |
+-----------------------------------------------------------------------------+

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 19, 2022, 9:32am UTC](https://discourse.paraview.org/t/how-to-run-paraview-on-multiple-gpus-in-a-single-node/10014/2 "2022-07-19T09:32:38Z")

</div>

Hi @Bruno_Sotelo ,

You need to use MPI for that, and specify different device for each mpi process.

Best,
