<div dir="ltr"><p>On 09 Jul 2013, at 10:34, Christophe Geuzaine <cgeuzaine at <a href="http://ulg.ac.be">ulg.ac.be</a>> wrote:</p><p>> Hi Nigel - Have a look at utils/solvers/c++ and utils/solvers/python in SVN.</p>
<p>Dear Christophe,</p><div>Thanks for the hint! I used /utils/solvers/c++/pend.cpp as an example for interacting with ONELAB, added some code to handle MPI launch commands, and everything is working even better than before :-)</div>
<div><br></div><div>For our MPI+GPU solvers, it's important to be able to [Pause] and inspect a simulation, so I added a [Pause] button. This uses the process id returned from MPI proc[0] (during /Action = "initialize") to pause that particular process, which just happens to pause all the MPI procs at the next MPI barrier.</div>
<div><br></div><div>Since my code to make this work (on Win x64) is a bit of a hack, I wonder if any of your getDP or ONELAB collaborators have set up a more ONELAB-standard [Pause] mechanism?</div><p>thanks for all the splendid work!</p>
<p>Nigel</p><p><br></p><p>On 07 May 2013, at 00:55, Nigel Nunn <nnnunnn at <a href="http://gmail.com">gmail.com</a>> wrote:</p><p>> Hi Gmsh,<br>> <br>> Sometime before the onelab update, I used GmshClient (from old<br>
> GmshSocket.h) to drive our family of mpi gpu accelerated solvers<br>> (discontinuous Galerkin). I hooked up a pause button to manage the<br>> mpi fleet, and a few parameters for adjusting runtime results passed<br>
> back to Gmsh.<br>> <br>> After looking at the classes in [gmsh/contrib/onelab] and<br>> [gmsh/projects/onelab, and the way getdp uses onelab, I am not sure<br>> how to begin upgrading from GmshSocket to onelab. Can someone please<br>
> suggest which of the classes derived from onelab client would do?<br>> First stage is to reproduce what we had with GmshClient : get Gmsh to<br>> query our solver (mpi proc [0]) for parameters, then launch, pause and<br>
> stop a simulation using 4 gpus on a single node (dual Xeon).<br>> <br>> runGmshClient() from [gmsh/Common/onelabUtils.cpp] sounds promising,<br>> but which client?<br>> </p><p>Hi Nigel - Have a look at utils/solvers/c++ and utils/solvers/python in SVN.</p>
<p><br>> thanks for any help!<br>> Nigel<br>> <br>> _______________________________________________<br>> gmsh mailing list<br>> gmsh at <a href="http://geuz.org">geuz.org</a><br>> <a href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a></p>
<p>-- <br>Prof. Christophe Geuzaine<br>University of Liege, Electrical Engineering and Computer Science </p><div><a href="http://www.montefiore.ulg.ac.be/~geuzaine">http://www.montefiore.ulg.ac.be/~geuzaine</a></div><div>
<br></div></div>