# mpi question

**URL:** https://discourse.paraview.org/t/mpi-question/17381
**Category:** ParaView Support
**Created:** [December 16, 2025, 12:30pm UTC](https://discourse.paraview.org/t/mpi-question/17381 "2025-12-16T12:30:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![akoodlyr](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@akoodlyr](https://discourse.paraview.org/u/akoodlyr)
#### Post date: [December 16, 2025, 12:30pm UTC](https://discourse.paraview.org/t/mpi-question/17381/1 "2025-12-16T12:30:21Z")

</div>

Hi,

I am having trouble with running pvbatch in parallel mode after installing v6.0.1-MPI version. I have the Microsoft MPI installed on my machine and I have re-installed Paraview 6.0.1 with MPI support.

I am trying to load a script that is supposed to read approx 100GB of data and despite using multiple cores with pvbatch, I notice I run out of memory eventually and the program crashes (on a machine with 128GB RAM). I suspected that the code was not actually running in parallel, so I tried a simpler code below -

```python
import paraview.servermanager as sm
pm = sm.vtkProcessModule.GetProcessModule()
nranks = pm.GetNumberOfLocalPartitions()

print(f"I am rank {pm.GetPartitionId()} out of {nranks}")

```

I only see the output ‘I am rank 0 of n’ no matter how many cores I use. I run the following command

```bash
 mpiexec -n 2 "C:\Program Files\ParaView 6.0.1\bin\pvbatch.exe" --mpi .\try.py

```

I am unsure what I need to do to ensure pvbatch works in parallel mode.

Thanks in advance.
