[Paraview] Debugging a pvserver with multiple GPUs
pat marion
pat.marion at kitware.com
Tue Mar 15 17:04:53 EDT 2011
I just wanted to share a bit of useful code. I wanted to confirm that all
my pvserver processes had the correct DISPLAY environment variable defined.
I created an mpi command line that launched two processes per node, with
half the processes using -display :0.0 and the other half using -display
:0.1. After connecting to the server, I ran this python code inside a
Programmable Source:
import os
import subprocess
display = os.getenv('DISPLAY')
hostname = subprocess.Popen(['hostname'],
stdout=subprocess.PIPE).communicate()[0].strip()
print hostname, display
The output is printed to the pvserver terminal:
Process id: 3 >> vs8 :0.0
Process id: 4 >> vs14 :0.1
Process id: 7 >> vs8 :0.1
Process id: 0 >> vs14 :0.0
Process id: 5 >> vs30 :0.1
Process id: 1 >> vs30 :0.0
Process id: 2 >> vs2 :0.0
Process id: 6 >> vs2 :0.1
Pat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110315/d9deef97/attachment.htm>
More information about the ParaView
mailing list