|
[Sponsors] |
September 24, 2013, 04:31 |
pvbatch & Amazon EC2
|
#1 |
Senior Member
|
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 Code:
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so Note: I have not tried using the tag Code:
export LIBGL_ALWAYS_INDIRECT=y 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.
__________________
--- Julien de Charentenay |
|
September 28, 2013, 13:05 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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§ion=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
__________________
|
|
September 28, 2013, 21:31 |
|
#3 |
Senior Member
|
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 de Charentenay Last edited by julien.decharentenay; September 28, 2013 at 23:42. Reason: add comment |
|
September 29, 2013, 07:21 |
|
#4 |
Senior Member
|
I finished building ParaView with OSmesa and running a few initial test on Amazon EC2. It looks like a working solution.
__________________
--- Julien de Charentenay |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Paraview parallel processing with pvbatch | wouterremmerie | ParaView | 2 | February 26, 2020 11:41 |
OpenFOAM on Amazon EC2 | bjr | OpenFOAM | 24 | May 3, 2017 10:42 |
Amazon EC2 - unknown patchfield type turbulentHeatFluxTemperature | SarahLee | OpenFOAM Running, Solving & CFD | 0 | January 21, 2016 07:56 |
OpenFOAM on Amazon Elastic Compute Cloud (Amazon EC2) | piina | OpenFOAM Running, Solving & CFD | 14 | November 11, 2015 14:17 |
Amazon EC2 for CFD ? | DoHander | Main CFD Forum | 0 | April 21, 2012 11:53 |