CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   pvbatch & Amazon EC2 (http://www.cfd-online.com/Forums/paraview/123906-pvbatch-amazon-ec2.html)

julien.decharentenay September 24, 2013 03:31

pvbatch & Amazon EC2
 
Hi,

I have been trying for a few weeks (on and off) to get pvbatch to work on an amazon ec2 ubuntu instance.

I focused on getting pvbatch to work through Xvfb - which sounded like the most obvious/easiest thing to do. I am using ParaView binaries from the paraview.org.

When pvbatch starts it returns the following error message:

Code:

libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL error: failed to load driver: swrast

The file
Code:

/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
does exist, but does not load.

Note: I have not tried using the tag
Code:

export LIBGL_ALWAYS_INDIRECT=y
as per http://www.cfd-online.com/Forums/ope...nt-visual.html.

Do you think that I should try to move ahead with Xvfb (any other tip beyond the LIBGL_ALWAYS_INDIRECT) or drop Xvfb for OSMesa? Is there any binary distribution of ParaView with OSMesa support or do I have to compile it from source?

Thanks in advance.

wyldckat September 28, 2013 12:05

Hi Julien,

Using Xvfb in EC2 probably will only work for basic stuff, such as XTerm. ParaView is pretty hardcore when it comes to using OpenGL :)

If you're using the Ubuntu instance, have you tried the ParaView builds dedicated for Ubuntu? http://packages.ubuntu.com/search?ke...ll&section=all

Beyond this, my guess is that you have to build from source code.

OpenFOAM's makeParaView script already has pretty good options for building with OSMesa as well, but I haven't tried it since my days of helping out with the Nucleation project (OpenFOAM 1.6.x): http://code.google.com/p/nucleation/

Best regards,
Bruno

julien.decharentenay September 28, 2013 20:31

Hi Bruno,

Thanks a lot for your response. I have dropped Xvfb as it did not seem to be getting anywhere and moved on to building ParaView from scratch with OSmesa. I am slowly going through it.

For the record:
- had to add /usr/lib/x86_64-linux-gnu to the cmake UnixPaths.cmake (from memory);
- had to change the GL and Mesa library to /usr/include/GL
- had to add /usr/lib/x86_64-linux-gnu/mesa/libGL.so (as gl_library)
Probably more alterations to follow.

I was getting frustrated so installed quite a bunch of library/utils/etc so they are too long to list (and probably most are irrelevant).

julien.decharentenay September 29, 2013 06:21

I finished building ParaView with OSmesa and running a few initial test on Amazon EC2. It looks like a working solution.


All times are GMT -4. The time now is 15:20.