# PVbatch running in a single thread

**URL:** https://discourse.paraview.org/t/pvbatch-running-in-a-single-thread/7816
**Category:** ParaView Support
**Created:** [August 12, 2021, 8:57pm UTC](https://discourse.paraview.org/t/pvbatch-running-in-a-single-thread/7816 "2021-08-12T20:57:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vamsi\_Galigutta](https://discourse.paraview.org/user_avatar/discourse.paraview.org/vamsi_galigutta/32/7365_2.png) [@Vamsi\_Galigutta](https://discourse.paraview.org/u/Vamsi_Galigutta)
#### Post date: [August 12, 2021, 8:57pm UTC](https://discourse.paraview.org/t/pvbatch-running-in-a-single-thread/7816/1 "2021-08-12T20:57:09Z")

</div>

Hi, I am new to paraview and am struggling with something that seems basic.

I downloaded the full version of paraview 5.9.1 to my desktop machine with Nvidia gpu and am able to script it to run my animation job (generate a surface changing over time) and this runs in parallel fine, leveraging all the cores available.

I do want the same setup to run on an AWS machine with a Nvidia GPU, and it does run and generate results. But the PVbatch command uses a single core only instead of the 8 available.

The only difference is, I am using the mpi egl version of the binary. (The full version doesn’t work presumably because the server is headless)

Don’t really want to build and run on a cloud machine, and using the binary would greatly simplify my workflow.

Any pointers would be greatly appreciated

---

<div class="post-metadata">

### Author: ![Vamsi\_Galigutta](https://discourse.paraview.org/user_avatar/discourse.paraview.org/vamsi_galigutta/32/7365_2.png) [@Vamsi\_Galigutta](https://discourse.paraview.org/u/Vamsi_Galigutta)
#### Post date: [August 12, 2021, 11:07pm UTC](https://discourse.paraview.org/t/pvbatch-running-in-a-single-thread/7816/2 "2021-08-12T23:07:24Z")

</div>

I was able to figure out a solution by having mpiexec invoke paraview batch. Just had to make sure I was giving full paths for everything, and also setting my LD\_LIBRARY\_PATH appropriately as per the manual.

in my case it was something like this.

```auto
LD_LIBRARY_PATH=/opt/ParaView-5.9/lib/
/opt/ParaView-5.9/bin/mpiexec -np 30 /opt/ParaView-5.9/bin/pvbatch /path/to/my/anim_temp.py

```

Hope this helps someone else in a similar predicament.
