資源描述:
《parallel computing with matlab(并行計算)》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
1、本頁已使用福昕閱讀器進行編輯。
福昕軟件(C)2005-2007,版權所有,
僅供試用。GettingStartedwithParallelComputingusing
MATLAB:InteractiveandScheduledApplicationsCreatedbyS.Zaranek,E.JohnsonandA.Chakravarti1.ObjectivesThisuserguideprovidesanenduserwithinstructionsonhowtogetstartedrunning
parallelMATLABapplications
2、usingadesktopcomputeroracluster.2.AssumptionsUserhasaccesstoMATLABandParallelComputingToolboxonthedesktopcomputerorheadnodeofthecluster.Ifrunningonacluster:MATLABDistributedComputingServerhasbeeninstalledbyanadministratoronthecluster.ThedesktopMATLABclienthasbeenconfiguredtoconne
3、cttothecluster.Ifthishas
notbeendone,youshouldcontacttheclusteradministrator.3.GettingtheExampleFilesUnzipthedemoFiles.zipfilethatwasprovidedalongwiththisguide.Youcan
addthefilestotheMATLABpathbyrunningtheaddpathcommandin
MATLAB.>>addpath4.ExamplesRunningLocallyI
4、nthissection,youwillberunningandsubmittingjobsusingthelocal
configuration.Ifyourworkflowwillultimatelyinvolvesubmittingjobstoacluster,youcan
followthissectionbyswitchingthedefaultconfigurationfromlocaltothatof
yourclusterandrunningthesejobsagain.ThisisdescribedinSection5.本頁已使用福昕閱
5、讀器進行編輯。
福昕軟件(C)2005-2007,版權所有,
僅供試用。Youcansettheconfigurationtolocal,eitheratthecommand-line>>defaultParallelConfig('local')orbyusingtheuserinterfacefoundintheparallelmenu.Seescreensnapshot
below.Formoreinformationonconfigurationsandprogrammingwithuser
configurations,see:http://w
6、ww.mathworks.com/access/helpdesk/help/toolbox/distcomp/index.html?/a
ccess/helpdesk/help/toolbox/distcomp/f5-16141.html#f5-165401.UsinganInteractiveMATLABpoolTointeractivelyrunyourparallelcode,youfirstneedtoopenaMATLABpool.
ThisreservesacollectionofMATLABworkersessionstorunyourco
7、de.The
MATLABpoolcanconsistofMATLABsessionsrunningonyourlocalmachine
oronaremotecluster.Inthiscase,weareinitiallyrunningonyourlocalmachine.Youcanusematlabpoolopentostartaninteractiveworkerpool.Ifthenumber
ofworkersisnotdefined,thedefaultnumberdefinedinyourconfigurationwill
beused
8、.Agoodruleofthumbistonotopenmoreworkerst