Yuav Ua Li Cas Tsim Kom Tau Supercomputer

Cov txheej txheem:

Yuav Ua Li Cas Tsim Kom Tau Supercomputer
Yuav Ua Li Cas Tsim Kom Tau Supercomputer

Video: Yuav Ua Li Cas Tsim Kom Tau Supercomputer

Video: Yuav Ua Li Cas Tsim Kom Tau Supercomputer
Video: yuav ua li cas koj thiaj paub hais tias muaj neeg tso khoom.10/5/2021 2024, Lub peb hlis ntuj
Anonim

Txawm hais tias muaj coob tus neeg koom nrog cov lus "supercomputer" nrog cov khoom siv nyuaj thiab kim uas nyob hauv thaj chaw ntawm lub tsev me me, hauv kev coj ua niaj hnub no lub tsheb me ntawm chav kawm no tuaj yeem tsim nyob hauv tsev. Txhua yam nws yuav siv sij hawm yog ob peb hom kev ua si niaj hnub.

Yuav ua li cas tsim kom tau supercomputer
Yuav ua li cas tsim kom tau supercomputer

Cov Lus Qhia

Kauj ruam 1

Yuav yim yim ua si Sony PlayStation 3 game consoles tsim ua ntej lub Peb Hlis 28, 2010. Koj tuaj yeem nrhiav lawv, piv txwv li, ntawm kev twv muag online. Nco ntsoov tias txhua lub tshuab muaj firmware version laus dua 3.21 (tsis suav nrog). Hauv cov firmware tshiab, lub peev xwm los nruab Linux yog neeg xiam. Thaum nriav cov consoles, tsis muaj dab tsi sim txuas lawv rau Is Taws Nem lossis khiav ua si ntawm lawv ua ntej txhim kho Linux - tsis siv neeg firmware hloov tshiab rau qhov tshiab yuav pib.

Kauj ruam 2

Saib xyuas lub zog hluav taws xob ntawm lub supercomputer. Xav tias PlayStation 3 siv hluav taws xob 400 W ntawm lub zog, thiab tus supercomputer ua los ntawm yim consoles yog 3200 W, koj yuav tsum siv txoj hlua txuas ntxiv rau qhov tam sim no ntawm 20 A (nrog rau cov npoo, txij li qhov kev siv tam sim no yuav yog 14, (54) A, ntxiv rau txuas ntxiv tam sim no siv los ntawm TVs lossis cov saib) Lub qhov (socket) yuav tsum tiv thaiv qhov dej tam sim no nrog rau cov npoo ntawm tib yam. Tib yam siv rau hauv cov xov txuas, nrog rau lub tshuab hauv qhov khiav ceev thiab 'meter'. Xws li tus kws ntsuas hluav taws xob tsis tuaj yeem siv nrog Soviet ua cov tsev nrog cov xov hlau txhuas.

Kauj ruam 3

Txuas lub USB USB thiab nas rau txhua lub npov saum toj. Koj tuaj yeem txuas lub monitor lossis TV rau lawv ib tus zuj zus, tab sis yog tias qhov chaw thiab lub zog tso cai, koj tuaj yeem tsim txhua lub npov teeb kom zoo nrog cov khoom siv rau hauv cov pawg. Thaum hloov lub monitor lossis TV ntawm ib lub tshuab rau lwm lub, tshem tawm. nws.

Kauj ruam 4

Rau txhua lub npov saum txheej, nruab ib qho Fedora 8 cov haujlwm ua haujlwm faib rau cov txheej txheem ua haujlwm nrog PowerPC cov kev qhia teeb tsa (luv luv li ppc). Qhov x86 niaj zaus ntawm Fedora, uas paub txog ntau yam, yuav tsis ua haujlwm. Thaum yuav txhim kho, koj yuav xav tau tshwj xeeb flash drive duab nyob ntawm:

www.ps3cluster.org/distros/ps3.zip Kho lub STB kom nws khau khiab ntawm USB lo los ntawm lub neej ntawd. Ntim cov duab ntawm nws, txuas nws rau lub tshuab thiab rov pib dua. Ntxig rau Fedora 8 DVD thiab nruab rau nws. Rov ua dua rau tas ntawm cov npov

Kauj ruam 5

Txuas txhua lub npov saum txheej rau lub router txuas nrog unlimited internet. Nws yuav tsum tau teeb tsa nrog DHCP. Yog tias lub router tsis muaj yim qhov chaw nres nkoj dawb, siv ib lub hub ntxiv. Rov qab kho Fedora ntawm txhua lub tshuab thiab lawv yuav tau txais lawv qhov chaw nyob hauv IP.

Kauj Ruam 6

Tab sis yim txheej txheej saum toj kawg nkaus uas tsis cuam tshuam nrog txhua lwm txoj hauv kev uas tseem tsis tau yog ib tus neeg supercomputer. Koj yuav tsum nruab rau ntawm txhua ntawm lawv pob uas yuav muab kev sib cuam tshuam li no: yum nruab openssh-server

yum nruab openssh-cov neeg

yum nruab nfs-utils

yum nruab ib txoj kab qhib openmpi-devel openmpi-libs Ua ib qho ntawm cov tshuab uas tus tswv - tas yuav tswj los ntawm nws. Ntawm lub tshuab no, hauv / / nplaub tshev tsim, tsim cov ntaub ntawv openmpi-default-hostfile thiab sau rau hauv nws tus IP chaw nyob ntawm lwm lub npov teeb saum toj suav nrog hauv supercomputer. Thov nco ntsoov tias txhua zaus koj rov pib lub tshuab, tus router yuav muab lawv qhov chaw nyob sib txawv, thiab cov ntaub ntawv no yuav tsum rov ua tiav. Qhov no tuaj yeem zam kom dhau los hloov cov tsheb hauv tib qho kev txiav txim txhua zaus.

Kauj Ruam 7

Rub tawm cov ntawv los ntawm qhov chaw nyob hauv qab no:

www.ps3cluster.org/distros/pi.c Muab nws tso rau hauv qhov chaw khaws ntaub ntawv openmpi ntawm lub tshuab ntaus ntawv. Khiav qhov hais kom ua

mpicc -o Pi Pi.c Qhov no yuav tsim cov ntaub ntawv sau ua haujlwm hu ua Pi. Tso nws rau tag nrho cov tshuab, thiab khiav nkaus xwb ntawm lub hauv paus loj:

mpirun -np N./Pi

qhov twg N yog tus lej ntawm cov iterations. Koj tus kws tshaj lij yuav pib pib xam tus nqi ntawm tus lej π Vim tias tus kws tshaj lij hauv lub cev tau siv lub zog loj los ntawm cov qauv hauv tsev, siv nws ntau dua nees nkaum feeb hauv ib hnub tsis yog ib qho laj thawj los ntawm kev xav ntawm nyiaj txiag.

Pom zoo: