<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div><div>That's a cool trick. I took the liberty of adding it to the ParaView wiki page on setting up a pvserver:</div><div><br></div><blockquote style="margin:0 0 0 40px; border:none; padding:0px;"><div><a href="http://www.paraview.org/Wiki/Setting_up_a_ParaView_Server#Multiple_GPUs_Per_Node">http://www.paraview.org/Wiki/Setting_up_a_ParaView_Server#Multiple_GPUs_Per_Node</a></div></blockquote><div><br></div><div>-Ken</div><div>
<font size="2"><font face="Consolas,Courier New,Courier"><span style="font-size:10pt"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font>
</div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> pat marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>><br><span style="font-weight:bold">Date: </span> Tue, 15 Mar 2011 15:04:53 -0600<br><span style="font-weight:bold">To: </span> ParaView <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br><span style="font-weight:bold">Subject: </span> [Paraview] Debugging a pvserver with multiple GPUs<br></div><div><br></div>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:<br><br><br>import os<br>import subprocess<br><br>display = os.getenv('DISPLAY')<br>hostname = subprocess.Popen(['hostname'], stdout=subprocess.PIPE).communicate()[0].strip()<br>print hostname, display<br><br><br><br><br>The output is printed to the pvserver terminal:<br><br>Process id: 3 >> vs8 :0.0<br>Process id: 4 >> vs14 :0.1<br>Process id: 7 >> vs8 :0.1<br>Process id: 0 >> vs14 :0.0<br>Process id: 5 >> vs30 :0.1<br>
Process id: 1 >> vs30 :0.0<br>Process id: 2 >> vs2 :0.0<br>Process id: 6 >> vs2 :0.1<br><br><br>Pat<br></span></body></html>