• Welcome to TUKE FÓRUM - Fórum pre študentov Technickej Univerzity v Košiciach.
 

Paralelne programovanie

Started by jim-beam33, 21.09.2011, 23:19:39

« predchdzajce - alie »

jim-beam33

Podarilo sa niekomu rozchodit Lam mpi na windows platforme? :bannana_guitar: :bannana_guitar:

jardo

no to by aj mna zaujimalo, lebo ani cviciaci mi nevedl povedat ako sa to da, plus odkial sa to da stiahnut?

kOsTi

:trestac:

jim-beam33

Nasiel som tento navod, no nechapem co mam spravit v 3 bode !!!!!!!!????????

A pritom staci urobit toto:
1. Nainstalovat MPICH (zasadne odporucam instalovat win-ia32 aj na x64)
2. Restart PC
3. Nastavit do Systemovych aj Pouzivatelskych premennych (Len ak chcete pustat priamo prikazom mpiexec):
          x86:
              Path = c:\Program Files\MPICH2\bin\
          x64:
              Path = c:\Program Files (x86)\MPICH2\bin\
4. Do adresara \Dev-Cpp\Templates\ nakopirovat plugin
5. Spustit Dev-Cpp - Novy projekt -MPI Application - C Project - OK
6. Skompilovat
7. Spustit
aby som nemusel registrovat Host do mpi, ani nastavovat heslo pre pouzivatela vo windowse, tak ja skompilovane exe spustam takto:
mpiexec -localonly N file.exe
kde N je pocet procesov na ktorych to ma bezat. Exe ide spustit aj samostatne pre porovnanie vykonu 1 ku N procesom.

P.S. Prikladam potrebne subory:
http://www.edisk.sk/stahni/86849/mpich2.zip_9.41MB.html

piton

pridat do  environment variable PATH to co tam pise...
http://support.microsoft.com/kb/310519
"Iba život, ktorý žijeme pre ostatných, stojí za to." - Albert Einstein


thom

ako je to teraz s cviceniami, mam napisane, ze v 5. tyzdni sa maju odovzdat 1,2,3 zadanie. to uz sa ide iba v piatom tyzdni odovzdat alebo sa chodi na cvika normalne?

Havran

ta na cika nemusis chodit, len 5, 8 a 10 tyzden ked sa odovzdavaju zadania
Achievement of your happiness is the only moral purpose of your life.

jardo


Faust

viete si doma skompilovat ten subor ...sample1.c? ..mne vypise chybu ze neexistuje subor mpi.h v (#include <mpi.h>) ..plugin som do Templates skopiroval...  ???
This is an invasion of PostHumus!

radix

podľa toho návodu čo som sem dával som to rozbehal a ide to

Faust

ok kompilacia mi uz ide, ale po vybrati mojho exe-cka a stlaceni Execute v MPI mi vypise "Error: No smpd passphrase specified through the registry or .smpd file, exiting." ..tebe to ide? cize ti po spusteni vypise tie hodnoty min, max, atd..?
This is an invasion of PostHumus!

radix

jop mne to fici, este to chcelo registraciu.. login/pw na pc zadal som a vsetko ide. este treba vybrat pri spusteni mpiexec pocet proc.

jardo

tie zadania treba odovzdat civciame na cviceni, alebo dakde uonut zdrojaky na net?
a teraz som cital niejake podmienky apoctu, to treba aj nejaky referat, alebo co to vlastne je?

timdrevo

Vaclavik vravel, ze mu staci na 1-2 strany zbuchat referat, len nejaky popis k tomu, obrazok uzlov a vytlacit zdrojak. Odovzdava sa (aspon u neho) v 5., 8., a 10. tyzdni na cviceni. Zdrojaky uploadovat netreba.


radix


jardo

Quote from: radix on  30.09.2011, 20:05:09
rozbehas

tak som isiel podla toho postupu, a mi vyhodilo potom pri kompilaciu chybu neexistuje subor mpi.h v (#include <mpi.h>). Viac menej som splnil vsetky kroky, okrem nainstalovania NET Frameworkru 2.0, lebo sa neda nainstalovat na 64x OS.
Ak mam tu 7 treba nieco navyse spravit?

dissipator

#18
To seriozne vsetci preferuju dev-c++ pred Visual Studiom (alebo orezanym VC++ Express) ? .Net Framework 2.0 na Win 7 x64 musi fungovat (to by bola riadne WTF situacia ak by nefungoval - stoji na nom dnes dost vela veci. Zaroven je to produkt MS...)

VS2010:
Nainstalujte MPICH2 (rovnako odporucam x86 verziu - lebo budeme este 10 stran riesit, preco x64 kniznica nefunguje s 32bit programom resp. ako kompilovat x64 aplikaciu).

Vo visual studiu (alebo VC++ Express 2010) spravte prazdny projekt (win32 console application, zaskrtnut empty project). V predchadzajucich verziach VS sa dali nastavit tieto adresare globalne, teraz uz len pre kazdy projekt zvlast.
Pravym klik na projekt (nie na solution!!) v Solution exploreri (to je to okno, kde vidite subory projektu) > Properties > Configuration properties > VC++ Directories (pridat include directory a library directory z mpich priecinka t.j.   program files/mpich2/include a /lib)
V Configuration properties > Linker > Input (pridat Additional dependency: mpi.lib)

Mozte zacat programovat...

Inak... skusal som matrix multiplication v skole (stvorcove 1k matice)- ved nech mam do statistiky aj viacuzlove systemy (viac ako ma moj CPU jadier). Skalovanie na tych sempronoch je dost slabota resp. casto ziadne (vyskusam nabuduce, ci nebol v niecom problem). Ma niekto nejaky navrh ako to seriozne otestovat (MPI po sieti) ?

thom

Viete mi niekto poradit?? Nerozmumiem velmi aky problem treba vyriesit v zadani c.1 v zadani c.2. My sme na cviceni dostali zadania a nebolo ani povedane, ze co za konkretny problem treba vyriesit len, ze v 5. tyzdni to mame doniest hotove.
Je niekde napisane co konkretne v tich ulohach mame vyriesit?

Na kollarovej stranke som nic k tomu nenasiel :

http://people.tuke.sk/jan.kollar/PP/

dissipator

#20
hladanie maxima z mnoziny je predsa v sample1, akurat to treba paralelizovat na n uzlov.
transponovanie matice - na to si pozri minulorocny archiv - bez rozsirenia (archiv) je to len Receive a vzapati Send na uzloch (je este ina alternativa, ktora je tiez neefektivna ak su uzly prepojene ethernetom)

vo vseobecnosti k zadaniam: nebyt toho, ze pri vyhladavani v retazcoch (4. a 6. zadanie) sa da obhajit pri metrike zacatie merania az po rozdistribuovani databazy (t.j. rata sa s db alebo jej castami dopredu lozenymi na uzloch) a pri 7.zadani nasadenie brutalneho filtra (brutalneho v zmysle cache trashing) je efektivnost paralelizacie medzi uzly prepojene sietou (t.j. nie n instancii na tom istom uzle) zaporna alebo prinajmensom dost sporna...

uz sa tesim na odovzdavanie zadani... ocakavam, ze to bude vyzerat podobne ako este na strednej skole pri rieseni zadani z rekurzie (problem 8 dam na sachovnici / kon aby poskakal celu sachovnicu) t.j. jednemu algoritmus nasobenia 1k matic zbehne za 2s druhemu za 30s (ratam s ukazkou na Sempron 3000+ PC v ucebni - tie udane cisla nie su nahodne) ;D

domino3d

Quote from: jardo on  30.09.2011, 18:46:45
Quote from: radix on  24.09.2011, 01:32:17
http://auriza.site40.net/notes/mpi/mpich2-on-windows-xp/

na windows 7  64x to nerozbeham?

ja som to spravil aj podla dissipator-a ale aj tak mi to nejak nejde, kde robim chybu?
ked dam build a debug vo visualku tak mi hadze toto, a ked to spustim v MPIEXEC tak anineviem najst ziaden .exe

'mpi test 1.exe': Loaded 'C:\Users\Domino\Documents\Visual Studio 2010\Projects\mpi test 1\Debug\mpi test 1.exe', Symbols loaded.
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mpich2mpi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mpich2nemesis.dll', Binary was not built with debug information.
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\activeds.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\adsldpc.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\Wldap32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\atl.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ntdsapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\secur32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\nlaapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\NapiNSP.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\winrnr.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\wshbth.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Program Files (x86)\Bonjour\mdnsNSP.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\WLIDNSP.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x914) has exited with code 0 (0x0).
The program '[4292] mpi test 1.exe: Native' has exited with code 0 (0x0).
vivat academicus

pinderko

Quote from: Domino3D on  09.10.2011, 22:05:31
Quote from: jardo on  30.09.2011, 18:46:45
Quote from: radix on  24.09.2011, 01:32:17
http://auriza.site40.net/notes/mpi/mpich2-on-windows-xp/

na windows 7  64x to nerozbeham?

ja som to spravil aj podla dissipator-a ale aj tak mi to nejak nejde, kde robim chybu?
ked dam build a debug vo visualku tak mi hadze toto, a ked to spustim v MPIEXEC tak anineviem najst ziaden .exe

'mpi test 1.exe': Loaded 'C:\Users\Domino\Documents\Visual Studio 2010\Projects\mpi test 1\Debug\mpi test 1.exe', Symbols loaded.
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mpich2mpi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mpich2nemesis.dll', Binary was not built with debug information.
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\activeds.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\adsldpc.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\Wldap32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\atl.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ntdsapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\secur32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\nlaapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\NapiNSP.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\winrnr.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\wshbth.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Program Files (x86)\Bonjour\mdnsNSP.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\WLIDNSP.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL', Cannot find or open the PDB file
'mpi test 1.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x914) has exited with code 0 (0x0).
The program '[4292] mpi test 1.exe: Native' has exited with code 0 (0x0).



ja som to vyskusal na dev-ccp a ide mi to ale musim to spustat prikaz cez cmd. Vojdes do adresara s exe suborom a napises napr pre sample1: mpiexec -localonly 3 sample1.exe

(ak nepojde tak som cez wmpiconfig.exe pridal host s nazvom mojho PC a vypol firewall) vyskusaj nerucim za to ale mne to ide

domino3d

no nastavil som ten debugger podla tohto navodu a nehadze tie chyby
ale aj tak nejde
vivat academicus

domino3d

serem na visualko zatial

Quote from: Faust on  27.09.2011, 23:42:09
ok kompilacia mi uz ide, ...

ako si to spojazdnil?
vivat academicus