# Set up of paraview server on to use GPUs on Amazon AWS?

**URL:** https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534
**Category:** ParaView Support
**Created:** [March 26, 2019, 8:31pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534 "2019-03-26T20:31:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![gridley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gridley/32/823_2.png) [@gridley](https://discourse.paraview.org/u/gridley)
#### Post date: [March 26, 2019, 8:31pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/1 "2019-03-26T20:31:53Z")

</div>

Hi all,

I’m hoping to run pvserver on an Amazon EC2 instance with an Nvidia M60 GPU on it. Unfortunately, I’m having some issues which I believe are related to X displays on the EC2 instance. When I try to render something on the server after connecting with paraview running on my laptop, I see:

> Display is not accessible on the server side.  
> Remote rendering will be disabled.

Why is this? What info can I provide to diagnose this issue?

---

<div class="post-metadata">

### Author: ![Scott\_Wittenburg](https://discourse.paraview.org/user_avatar/discourse.paraview.org/scott_wittenburg/32/16472_2.png) [@Scott\_Wittenburg](https://discourse.paraview.org/u/Scott_Wittenburg)
#### Post date: [March 26, 2019, 8:38pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/2 "2019-03-26T20:38:49Z")

</div>

Hi Gavin,

It’s hard to say without more information. Maybe you’re missing something really simple like just making sure to export the display environment variable before starting pvserver?

export DISPLAY=:0.0

Or maybe the issue is more involved, like the graphics card drivers aren’t installed/verified, or something else.

You might find some documentation from paraviewweb relevant: [https://kitware.github.io/paraviewweb/docs/graphics\_on\_ec2\_g2.html](https://kitware.github.io/paraviewweb/docs/graphics_on_ec2_g2.html)

There are some other docs on that site as well which you may find interesting/useful.

Hope this helps,

Scott

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [March 26, 2019, 9:13pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/3 "2019-03-26T21:13:06Z")

</div>

Ideally you want to use an EGL build of ParaView.

---

<div class="post-metadata">

### Author: ![Scott\_Wittenburg](https://discourse.paraview.org/user_avatar/discourse.paraview.org/scott_wittenburg/32/16472_2.png) [@Scott\_Wittenburg](https://discourse.paraview.org/u/Scott_Wittenburg)
#### Post date: [March 27, 2019, 4:11pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/5 "2019-03-27T16:11:47Z")

</div>

Hi Gavin,

If you use EGL, there is no need for an X Server, and then your instance needs fewer packages installed, no need to set the DISPLAY environment variable, among other things.

You can read a blog post about it here:

[https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/](https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/)

At the end of that article, there is a link to some updated information as well.

Hope this helps,

Scott

---

<div class="post-metadata">

### Author: ![gridley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gridley/32/823_2.png) [@gridley](https://discourse.paraview.org/u/gridley)
#### Post date: [March 27, 2019, 4:15pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/6 "2019-03-27T16:15:10Z")

</div>

Thanks for the advice Mr. Wittenburg. That was close to the answer: there are some intermediate steps. It was more of an issue with the xorg.conf file.

I solved it by first making sure the latest nvidia drivers were installed, and running nvidia’s x configuration script with the following options:

```
sudo nvidia-xconfig --enable-all-gpus --use-display-device=none

```

which is documented [here](https://devtalk.nvidia.com/default/topic/1021047/linux/headless-remote-server-setup/).

Then, you must manually modify the xorg.conf file and remove the ServerLayout and Screen blocks from the file, according to [here](https://github.com/yrahal/ec2-setup/issues/2).

Then, start an X server on the GPU on display 0 with:

```
export DISPLAY=:0
sudo X :0 &

```

Then pvserver should just include the argument:

```
pvserver <other_options> -display localhost:0

```

As for running on both GPUs with MPI… that’s yet to be figured out.

Thanks again! 😃

---

<div class="post-metadata">

### Author: ![gridley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gridley/32/823_2.png) [@gridley](https://discourse.paraview.org/u/gridley)
#### Post date: [March 27, 2019, 4:16pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/7 "2019-03-27T16:16:06Z")

</div>

Why is EGL preferred?

---

<div class="post-metadata">

### Author: ![gridley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gridley/32/823_2.png) [@gridley](https://discourse.paraview.org/u/gridley)
#### Post date: [March 27, 2019, 4:20pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/8 "2019-03-27T16:20:21Z")

</div>

OK, this all makes sense now. Thanks. And I assume that would make it easier to render on both GPUs?

---

<div class="post-metadata">

### Author: ![Scott\_Wittenburg](https://discourse.paraview.org/user_avatar/discourse.paraview.org/scott_wittenburg/32/16472_2.png) [@Scott\_Wittenburg](https://discourse.paraview.org/u/Scott_Wittenburg)
#### Post date: [March 27, 2019, 4:25pm UTC](https://discourse.paraview.org/t/set-up-of-paraview-server-on-to-use-gpus-on-amazon-aws/1534/9 "2019-03-27T16:25:45Z")

</div>

Well, for rendering on multiple GPUs, I may have to let someone else with chime in. This article could be helpful though, as it seems to describe something similar to what you want:

[https://devblogs.nvidia.com/egl-eye-opengl-visualization-without-x-server/](https://devblogs.nvidia.com/egl-eye-opengl-visualization-without-x-server/)

Cheers,

Scott
