[Paraview] [Non-DoD Source] Building Paraview with OSMESA
Christopher Neal
chrisneal at snumerics.com
Wed Sep 14 15:13:24 EDT 2016
Thanks Andy,
I’m set on trying to get a build that doesn’t use a graphics card, because the nodes on Nasa’s Plieades cluster don’t have GPUs, so running a code with Catalyst would not work on that machine.
I’ll give the superbuild a shot with Rick’s configuration script.
Thanks,
Chris N
From: Andy Bauer <andy.bauer at kitware.com>
Date: Wednesday, September 14, 2016 at 2:53 PM
To: "Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US)" <richard.c.angelini.civ at mail.mil>
Cc: Christopher Neal <chrisneal at snumerics.com>, Benson Muite via ParaView <paraview at paraview.org>
Subject: Re: [Paraview] [Non-DoD Source] Building Paraview with OSMESA
Hi Rick,
This CMake script is for the superbuild, correct?
That's definitely the way to go for OS Mesa as it builds the proper version of OS Mesa for you. The superbuild stuff is at https://gitlab.kitware.com/paraview/paraview-superbuild.
Chris, if you have an NVIDIA card with a fairly new driver what I would recommend is using NVIDIA's EGL drivers. There's more information on that at https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/.
Best,
andy
On Wed, Sep 14, 2016 at 2:28 PM, Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US) <richard.c.angelini.civ at mail.mil> wrote:
Chris - Yeah, so I’m also not sure how Catalyst might be firing this up. Here’s an example OS_Mesa/cmake command used on one of our generic RHEL6 systems. With this build, we throw the “—use-offscreen-rendering” flag when we fire up the pvserver. I think that the critical flags are “osmesa=ON, mesa=OFF, qt=OFF” ….. Can you use your current build in a traditional client-server configuration to verify that the OS_Mesa is built correctly? That might make it easier to narrow down to a build issue or a Catalyst issue. Just a thought.
cmake -DCMAKE_INSTALL_PREFIX:PATH=${HOME}/pv/${paraview_version}${build_extension} \
-Ddownload_location=`pwd`/../Downloads \
-DParaView_FROM_GIT=OFF \
-DParaView_URL=`pwd`/../Downloads/ParaView-v${paraview_version}-source.tar.gz \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_boost=ON \
-DBoost_NO_BOOST_CMAKE:BOOL=ON \
-DENABLE_visitbridge:BOOL=ON \
-DENABLE_cgns=ON \
-DENABLE_ffmpeg=ON \
-DENABLE_hdf5=ON \
-DENABLE_matplotlib=ON \
-DENABLE_osmesa=ON \
-DENABLE_mesa=OFF \
-DPARAVIEW_RENDERING_BACKEND:STRING=OpenGL2 \
-DENABLE_mpi=ON \
-DUSE_SYSTEM_mpi=ON \
-DENABLE_numpy=ON \
-DENABLE_paraview=ON \
-DENABLE_python=ON \
-DENABLE_qt=OFF \
-DENABLE_silo=ON \
-DENABLE_szip=ON \
-Dqt_DISABLE_WEBKIT=ON \
-DMPI_CXX_LIBRARIES:STRING="-L${MPI_HOME}/lib -lmpi_cxx -ldl" \
-DMPI_C_LIBRARIES:STRING="-L${MPI_HOME}/lib -lmpi -ldl" \
-DMPI_LIBRARY:FILEPATH="-L${MPI_HOME}/lib -lmpi_cxx -ldl" \
../Source
________________________________
Rick Angelini
USArmy Research Laboratory
CISD/HPC Architectures Team
Phone: 410-278-6266
From: Christopher Neal <chrisneal at snumerics.com> on behalf of Christopher Neal <chrisneal at snumerics.com>
Date: Wednesday, September 14, 2016 at 1:44 PM
To: Rick Angelini <Richard.C.Angelini.CIV at mail.mil>, Benson Muite via ParaView <paraview at paraview.org>
Subject: Re: [Non-DoD Source] [Paraview] Building Paraview with OSMESA
All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.
Thanks Rick!
I’m running OpenSuse 13.2 64bit. I’m not explicitly starting a pvserver, because I’m running one of the C++ Catalyst examples, which is located at ParaView/Examples/Catalyst/CxxFullExample. That is mainly what is confusing me. I’m not sure if I built ParaView with osMesa incorrectly, or if that Catalyst example is somehow just telling ParaView ‘Hey, don’t use the offscreen rendering stuff, just go ahead and keep rendering to the screen.”
I’m thinking that I should be able to test the offscreen rendering capability independently of that Catalyst example by generating a Python trace of a pipeline that creates an image output, and the running it with a command like:
pvserver –use-offscreen-rendering TestScript.py
From: "Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US)" <richard.c.angelini.civ at mail.mil>
Date: Wednesday, September 14, 2016 at 1:24 PM
To: Christopher Neal <chrisneal at snumerics.com>, Benson Muite via ParaView <paraview at paraview.org>
Subject: Re: [Non-DoD Source] [Paraview] Building Paraview with OSMESA
Stupid question – when you start up the pvserver process, are you passing it the “—use-offscreen-rendering” flag?
mpirun –np 8 pvserver —use-offscreen-rendering …….
What’s your build platform? I have lots and lots of build scripts I can share!
________________________________
Rick Angelini
USArmy Research Laboratory
CISD/HPC Architectures Team
Phone: 410-278-6266
From: ParaView <paraview-bounces at paraview.org < Caution-mailto:paraview-bounces at paraview.org > > on behalf of Christopher Neal <chrisneal at snumerics.com < Caution-mailto:chrisneal at snumerics.com > >
Date: Wednesday, September 14, 2016 at 12:44 PM
To: Benson Muite via ParaView <paraview at paraview.org < Caution-mailto:paraview at paraview.org > >
Subject: [Non-DoD Source] [Paraview] Building Paraview with OSMESA
All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.
Hi All,
I’ve been trying to compile a version of ParaView that uses osMesa. I’ve tried to follow the process that is explained on the wiki (Caution-Caution-http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D < Caution-http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D > < Caution-Caution-http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D < Caution-http://www.paraview.org/Wiki/ParaView/ParaView_And_Mesa_3D > > ), but I haven’t been able to get ParaView to render offscreen. I don’t have build errors, but when I run something that saves a screenshot I still see a window pop up on my screen. Would anyone be willing to share their configuration script/command that they use for compiling ParaView with osMESA?
Also – If I have a python script that creates a screenshot of some geometry, do I need to edit it in any way before running it with a version of ParaView that uses osMesa? Or is all of that handled behind the scenes?
Thank you,
Chris N
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160914/6e918433/attachment.html>
More information about the ParaView
mailing list