Ways to use MPI executable in Qt? -


i have developed application comprises of frontend qt-gui , solver exe. these 2 independent module, launch exe in qt-gui using qprocess below:

qprocess *myprocess = new qprocess; myprocess->start(exefilepath, args); 

where

exefilepath = "exe" args = "input1 -option1 name1 -option2 name2" 

from qprocess's signals, read output channels , update progress in qt-gui's qglwidget.


things have changed time. exe mpi-exe, mpi based executable , need use through qt-gui in practical way.

i tried above qprocess exercise mpi-exe following change:

exefilepath = "mpirun -np 4 mpi-exe" 

when doing this, myprocess not started , when error printed, gave unknownerror. understand, qprocess runs in separate thread , have launch 4-process mpi-exe makes problematic.

i need in :

  1. how can launch mpi-exe without qt-gui freezing ?
  2. how can monitor progress of mpi-exe have plot progress in qglwidget ?

i appreciate comments on questions. please help. thanks.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -