[Paraview] pvbatch hangs when enabling OSPRay
Benjamín Hernández
benjha at gmail.com
Thu Aug 4 15:24:35 EDT 2016
Hello,
I've compiled Paraview 5.1 with multithreaded mpi and ospray (with OpenMP)
support using the next modules:
1) gcc/4.8.2 5) xalt/0.5.3 9) szip/2.1
13) boost/1.61.0
2) openmpi/1.8.4_mtm 6) DefApps 10) hdf5/1.8.11
14) libtool/2.4.2
3) PE-gnu/4.8.2-1.8.4 7) qt4/4.8.5 11) mxml/2.9
15) git/1.8.0.2
4) lustredu/1.4 8) python/2.7.9 12) adios/1.9.0
16) cmake/3.5.2
and wrote a python script that loads a vtu file and renders it as glyph
particles.
When running pvbatch in one node it works fine, I can visualize and save
images. However, when running pvbatch with mpi the script just hangs in the
line that enables OSPRay:
oSPRayRendered3DView1.EnableOSPRay = 1
I am using the next mpi commands with no success:
mpirun -npernode 16 pvbatch --mpi --use-offscreen-rendering myscript
inputfile.vtu outputimage.png
mpirun -np 13 --map-by ppr:1:socket:pe=16 pvbatch --mpi
--use-offscreen-rendering myscript inputfile.vtu outputimage.png
I did a simpler script that does the following:
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# set active view
SetActiveView(None)
CreateLayout('Layout #1')
# Create a new 'Render View'
print "Creating render view"
renderView1 = CreateView('RenderView')
renderView1.ViewSize = [11520, 3240]
renderView1.CameraPosition = [0.0, 0.0, 6.69]
renderView1.CameraFocalPoint = [0.0, 0.0, 0.0]
renderView1.CameraViewUp = [0.0, 1.0, 0.0]
renderView1.CameraViewAngle = 30.0
renderView1.CameraParallelScale = 1.73
renderView1.Background = [0.32, 0.34, 0.43]
print "Before Enabling OSPRay"
renderView1.EnableOSPRay = 1
print "After Enabling OSPRay"
renderView1.Shadows = 1
renderView1.AmbientSamples = 4
renderView1.SamplesPerPixel = 8
renderView1.MaxFrames = 1
renderView1.LightScale = 1.0
print "Done!"
#### saving camera placements for all active views
# current camera placement for renderView1
renderView1.CameraPosition = [148.48492741767512, 106.10239872416838,
-28480.984448300518]
renderView1.CameraFocalPoint = [137.62326776804608, 95.85538889348155,
-28593.41405565134]
renderView1.CameraViewUp = [-0.529722197084864, 0.8477698001026378,
-0.02609137691878691]
renderView1.CameraParallelScale = 19159.165918040744
but it never reaches the print "After Enabling OSPRay" line
Any advice will be appreciated,
Benjamin Hernandez
OLCF
Oak Ridge National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160804/95cfe346/attachment.html>
More information about the ParaView
mailing list