CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

pvbatch & Amazon EC2

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By julien.decharentenay

Reply
 
LinkBack Thread Tools Display Modes
Old   September 24, 2013, 03:31
Default pvbatch & Amazon EC2
  #1
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 229
Rep Power: 9
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
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 ParaFoam error could not find a decent visual.

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
julien.decharentenay is offline   Reply With Quote

Old   September 28, 2013, 12:05
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   September 28, 2013, 20:31
Default
  #3
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 229
Rep Power: 9
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
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 22:42. Reason: add comment
julien.decharentenay is offline   Reply With Quote

Old   September 29, 2013, 06:21
Default
  #4
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 229
Rep Power: 9
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
I finished building ParaView with OSmesa and running a few initial test on Amazon EC2. It looks like a working solution.
wyldckat likes this.
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM on Amazon EC2 bjr OpenFOAM 21 June 28, 2014 17:04
OpenFOAM on Amazon Elastic Compute Cloud (Amazon EC2) piina OpenFOAM Running, Solving & CFD 13 February 20, 2013 13:01
Amazon EC2 for CFD ? DoHander Main CFD Forum 0 April 21, 2012 10:53
Can I run ANSYS FLUENT on Amazon HPC? federvo.mala ANSYS 2 March 5, 2012 19:34
OpenFOAM on Amazon Elastic Cloud Compute opencfd OpenFOAM Announcements from ESI-OpenCFD 0 May 12, 2011 09:24


All times are GMT -4. The time now is 21:09.