[vtkusers] pvtk use MPI?

Chen Fu novalet at yahoo.com.cn
Mon May 19 23:38:20 EDT 2003


Thank for your reply!
But i try in windows:
mpirun -np 2 d:\vtkbuild\bin\debug\pvtk
D:\VTK-4.2.1\Examples\ParallelProcessing\MPI\Tcl\pvtkdemo.tcl

but there isn't any window at all, and seems enter
into tcl console but without any '%'. Do you know
what's up?

Also test paralleliso, if i use mpi, there will be
only output of console, but without the window of
render. It seems vtk can't invoke window in mpi
environment. Is there any wrong in my compile config?
I use vc6 in win2k.

below is the output of paralleliso, why np 4 cost more
than np 2? i mpiconfig 2 win2k P4 computer.

D:\vtkbuild\bin\Debug>paralleliso
Update 3000 took 1.453 seconds to produce 1518
triangles
Update 1750 took 1.203 seconds to produce 59412
triangles
Update 500 took 1.187 seconds to produce 57608
triangles

D:\vtkbuild\bin\Debug>mpiconfig

D:\vtkbuild\bin\Debug>mpirun -np 4 paralleliso
Mpd needs an account to launch processes with:
account (domain\user): mpich
password:
Update 3000 took 0.984 seconds to produce 0 triangles
Update 1750 took 0.813 seconds to produce 21000
triangles
Update 500 took 0.938 seconds to produce 15306
triangles

D:\vtkbuild\bin\Debug>mpirun -np 2 paralleliso
Mpd needs an account to launch processes with:
account (domain\user): mpich
password:
Update 3000 took 0.75 seconds to produce 164 triangles
Update 1750 took 0.703 seconds to produce 40220
triangles
Update 500 took 0.687 seconds to produce 34226
triangles

D:\vtkbuild\bin\Debug>mpirun -np 1 paralleliso
Mpd needs an account to launch processes with:
account (domain\user): mpich
password:
Update 3000 took 0.954 seconds to produce 1518
triangles
Update 1750 took 1.172 seconds to produce 59412
triangles
Update 500 took 1.188 seconds to produce 57608
triangles


 --- "Jean M. Favre" <jfavre at cscs.ch> 的正文:> Chen
Fu wrote:
> > 
> > Hi!
> > I have try pvtk and pvtkdemo.tcl, it works but i
> doubt
> > whether it use MPI.
> > In mpi2.4, i first mpiconfig to select the hosts,
> then
> > use mpirun to invoke the processes, and must give
> > user/password.
> > but "pvtk pvtkdemo.tcl" don't need them at all. Is
> it
> > really works on several hosts without any config
> and
> > user/password? I don't see any document on how to
> test
> > MPI in vtk.
> 
> I use it in this particular fashion:
> 
> mpirun -machinefile machines.LINUX -np 6 pvtk
> pvtkdemo.tcl
> 
> You should use the full path to pvtk and
> pvtkdemo.tcl so that all the
> MPI nodes find the required files.
> 
> -- 
> Dr. Jean M. Favre,                           
> email:favre at cscs.ch
> http://www.cscs.ch/people/Favre.html
> CSCS, Swiss Center for Scientific Computing | Tel: 
> +41 (91) 610.82.40
> Via Cantonale, 6928 Manno, Switzerland      | Fax: 
> +41 (91) 610.82.82 

=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science

_________________________________________________________
Do You Yahoo!? 
相见不如聊天!不出门一样面对面!网络摄像头对对派送中~赶快用你的雅虎电邮帐号参与吧……
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com/



More information about the vtkusers mailing list