MCNP5 improvements for windows PCS · 2014. 4. 23. · MCNPST'" Improvements for Windows PCs. Tim...
Transcript of MCNP5 improvements for windows PCS · 2014. 4. 23. · MCNPST'" Improvements for Windows PCs. Tim...
LA-UR-03-Approved for public re/ease ;distribution is unlimited.
Title :
Author(s):
Submitted to :
MCNP5 IMPROVEMENTS FOR WINDOWS PC S
J . Timothy Goorley , Forrest B . Brown , Lawrence J . Cox
American Nuclear Society Topical Meetingin Mathematics and Computations ,Gatlinburg , TN , Ap ri l 6-11 , 2003
o Los AlamosNAT I ONAL LA B ORATO R Y
Los Alamos National Laboratory, an affirmative action/equal opportunity employer , Is operated by the Unl verslty of California for the U. S .Depa rt ment of Energy under contra ct W-7405- ENG -36 . By a cceptance of this article, the publisher recogn ize s that the U . S . Government
retains a n o n excluslve, royalty-free license to publish or repro d uce the published form of this contribution, or to allow others to do so, for U . S .Government purposes . Los Alamos National Laboratory requests that the publisher Identify this art icl e a s wor k performed under the
auspl ces of the U . S . Department of En ergy. Los Alamos Nat ional Laborato ry strongly supports academic freedom and a researcher's right topubli sh ; a s an institution, however, the Laborato ry does not endorse the viewpoint of a publication or guarant e e Its technical c orrectness .
Form 636 ( 8 /00)
MCNPST'" Improvements for Windows PC sT im Goorley, Fo rrest Br o wn , Lawren ce J . Cox
W31 wr /~ ~ a~s/'1/
MCNP Deve lopme nt Tea m , X -5 , Los Alam os National Laborat ory
Abstrac tW ith the release of M CNP 5, muc h more emphasis h as been placed on improving its
functionality on PCs run n i n g M icrosoft W indow s@ (9 X/NT /2000/XP ) . Enhanced
insta ll ation and build systems, sup port for more Fortran compilers, inte gration w ith X I I
graphics build fles, and M PI and PV M parallel capab i li t ies h ave bee n implemented i nM CN P 5 for W indo w s PCs, allowing users to u tilize dual CP U PCs, clusters of
homogeneou s W i ndows PCs, or heterogeneous clusters . M CNP 5 ca n be instal l ed with an
InstallShieldO setup programs, similar to other W i n dows programs, for users w ho on l y need
to install executables and data libraries. For those users who need to comp i le the source, th e
GNU make utility can used in conjunctio n with three supported Fortran compilers .
Alternatively, Compaq Deve loper StudioO can be used to compi le M C N P 5 . The X -W indows plotting capabilities have been improved, and all the app ropria t e ope n so u rce
X 1 1 R6 files for compiling M CN P 5 are bundled with the M CN P 5 source code .
Enhanced Installation and Build Systems
Installin g with Install Shield OO p-•- --- _- __ ""_ _Typ,ml 1m1n115hrMProcess --' --- - _ _ ' .- : -
'Slartbyope^^9~~en9ex '
YMt Krotn md rekerne
-Gepyrghr .greensM
'No~r . Co Sarvd M (ywrc~ ~ '
5~4~e~I.s~vlbrwnFelde. - ~' .-~; :-. . -~•~
(&l sr r. ► rey - N .UAK WTPS)
(6/a W ► reyr m~ FIuLLAr1 WL W DA t A)
-InO41 V r Caprs F~b
'Opherl N MeAdY E ^_M N a. ~b
• $~ wwe ry sf iaA 11
' Wrw N ly eff ard baek M
lYr Ome p~s~ ae (m m 1~I ~Y16hWd I ~YD P1v~sv I kp
W, rm. m ~ w~ . U.1-ll p~ Ibp IS M) . t ley1Wmre Nr W rY I-O
pmNre !or Ni tl- PC u M Ie or tAY M
Building with Compaq Developer Studio( DE- a" ' ... . .~ Th. C VF Ds .slape . S M w a e bUI' .e. kyeu ' .F.. e n n~ ro .d~t wm M ~ NW . - erol Nr
-pk ,e i~ wlo ., . a,e -~k i.* .~ ,e e ." r«. pa +-+- n ., . a e cvF~- . . . . . pe)-f fo' eoch MChN7 MPI . VVM . V6t1.g ad sp-Ad n. d~faM~ ~ -~ rh1~ {er ell ef Hr : prop~M Inw aY~ady bwn mrA~yn~ d
r--~ ..,~ - °- 'a ..r• . e.. ~y 6~- .r wA .... .. r. .+r ^rl"H..ed
-ce, s „ad rrs , . v vr-w.s
ik mF n u ~ kn m .. . .~. m a r r c.~pq ~~. sem -
Building with GMAKE R ui resTV . -~ e,,,a ,-~ . - b, .,. ro « . ..,ow..., p- e, .. ~.e -C ,,.., - A w . .. 11 f . W.d,.,ot he r pM Morru (l +w. I .ti~. e h )
l/ssf~l fo . p ecpk wl.o .m e ra ~e -wrq~ k M~s wvice cade .ard e~p~cd~Y ~"'N~.. .~ .Iw .«Vw ✓MrwY
- .9rYi ww1 rW.p~1 .~I p ~b~_f'A 4« »~ore . ho ~ . .tonpy } ~~, ~,M .
Aw~l w sw~. r~ .r - w. .r
11~fJ hr popl e .ho ho~s rv~ ~~~vv w1h U. +
-In/ha /M C Fy5/ $OVrsArestt%." -► - AF~ 9 0C~N 4 r
r oMe bn N CO NF If -HOWL 9! CCOMPIL 91 Vb r <.~.~ I~wM ~•r r..~ n . ~ u~ilr~ pM.~ r~~nhA~.rd . l lRl
Tr yMe wM liy en W.d- ►4 ~ b . ~d 1 0 6 u1da 11 GIe r•
e• 4~ ~ w. r~. ~ n . ~ m
We.w s .~ pnysa b dbw n~e b ~nN e iYM • v <.nabk . A C Cenp4r.Wnfr lMtflrpMroMii CMNThfdprdllrvyan ~inflr y u Wu p . t~a8aq~w~dp
W.d e.n _NT gclf~lun /MCT ri/Sara /cml gd-MY •~ P 1. ,.r~uc .. .v mur ~. .. e.r ~. uw .ia~. +r .•w o
.A If. /wcw5/s. ur<s-.r M~ ~ d_ c MrTw-zo.qay d .qr
•Iw Z /MCTNS/ Sevcs d nectary ryp. wd~ bu dd CONF76='co P q d np
REFERENCES1 } B ~sasv~n , f~ Jb . M (7IP.A Cv~l Fbr r Cab NMct Tn~poN CuJ~ - V~q~('.l a AYoo N~YO~ I l Mw~ ¢p ael LA-I~TAl1
~M~n1M,
: L<'u. «~ YA[71P Vso S. P'a~ W AMa4 o 1 ~ IN &erY RPS b TopN MQYti f W F~. Nn Nrtia. Apd ID O Ot I
) YI ['N P Ilm ePye' M FAYr. W p'A.NI[NPhtlea Yml i 2(n2 i
4 lt~ Sdeb I0~ (uqi-l Cern fla ~p p ." W~ ~s ^KP`/~ s Ms l ~?m1 i
Improved X-windows Graphic sn. .R bK c- o - .6 ., of W-- n N. x .w., eo. .:i ... .Y .k . . tiKk b --d y~.~ sy.hto. au
cbNan,u M.CNP5 a e w~lobk a.~ Th es n q .ew nrnt s .c Fde -
M on naue dn .en < nnM -Wb N pbffy u w,xcr+» ~q,x* . , e . pbn.eX •MESFIf .d vkt+od ~qa '1 .v+p.r.y-E mv ~wief ry
•Wn eN dnacfnrnn~ .e~ c.b. rb.r .y sd_
x W.d- Ib. vy ad n c Fde f-b ~ MCN75 do1 .b~-
A lrhoug~ .+ n<Fbd -M NCriS , an X1e..er a M4 nereMery 1~ pIHC o- nlx~ x rvc es w -h l- p- ls~tedys Rs/I{ttqn%(hflp '//Wwow~puNpnedict/J) .w. .+,brd a E-d_rai (Mtp :// .w .Mwr ..~ .d rww~p red VC~s/rcle „usd /.d~ ,~h~ ..p. ~d _ _'s w. . r. x~nz ~r mmo n, i.. .o. sw xs., .. xF~ea bs dw
e~ ee .+ed cucceuMly
7Te mm m o1 J or~ ft N[NP7 S-" p hoer ,
Nti Y m . m.[y m~ ~ O men "IA ~ m ~eel r•SfE a 2i6 a270 Y11tx W ~!m. b0. Nic1 rsp SfY ed fam . lO CT Ad" dW M . N 4[eb~N y~Uw'. ~o i l Il~ e M blue . W Eorc~eo Fa~f WI~i0~1 ~ mel b raR►~ 7 c~01 [ ndr I vm', lYb In~ ru ~ o~ ~ ID a Hi~m rv .u I 04phya or ayrw RAM
--- ---1 . . . . . . . _ . . __ __ -. . .~ .'_ . .
it uugr Ircm ibe M (N% n9y plee ee ~►o w~ Areen~ ~peevYm -br6 f- (Al trV pY+n, ~eunI aiOeW oo ~ Cc d eienor rW ~n AI c~e~ . 71e pl.
reW wn ~r Aeea~ed eevsy l u 100 e V hr)simEn o! pu4+. FsRy d~ re 10o eV vtl c . FanA O~h P~^~~ MM~k I m a r M f l a) vc abpbtM Uo PPkr pl o U~ LAJe ~q M ~ee~wpk~ u W7+rs. I. Na.. M ftprW ~bpe Erlvee~ 1 0 aM 10 trV
~ -
,
. ~~
;~ -
L
i
lle Ws Pb. ~EOVe mov sr WIYy NM(NPS u pla me %CS H utlY i rW -pl. •6 1-eWx .ppe, H -l deM ryf etl J kl . u0 Ys e eWae i~u ~n'om~ d
ekveel . • ~e»L u0 ~ SIa[dl
MPI and PVM Capabilitie sW.* »s nl .ass of MLTiS . * e prdki eI abd~ *s . of M[Ai In.. b- •=+. .ded ro W .do.s PC . MCTlS ean nn eeror acwn .. r w. . W w .d o +s Nrixooo rc . e. # .. .¢ rm..y n . .. f~ (Ovt) ,. w dk i v.n.i Alwcn.. (►vM )com.nw : r.e .r preroceb W .y• rNv .~N.sd. Ms behw~or ef MLNC a .ffice .wly M .e ~v
sr.' b.ege .sw <Mr~e .y x A ~d/¢d K. ~.y .il l nn an .d~whe d iuilcr ef Ar~wr~ r ~ rch 'Awe ' P^e+~
-+ w5p- W- ar u ar
'.q- tq X -96p i qpw
.s> a h. e. ..y ..4r A- - y all M zao p..+~ .. ..,h •d... • o- .r w-r M . ppmo.,. ww" th. .~e~ . Mew rin r + .- h.. -, prhdw-h p oe.+. * «ae M-
-, .. ryp- .q°= 1e 01 . K
-.P. .n .q Jt n np6np W. &aUHKETs ce __~ of preccasa .r .rh rhe ' nerM ' p_ r wnhvhd b y ft 6' ~nhy ~n Nr yrbq caN n Me wwM ~prf de ck
5r e l1 Lpfe p p- T-y Shdy
OKl 1^9" a 6200 - W_ioa 2000 OHl laflrlu ic Ll00 - W.d- 2000
r.n ... iv s . ~ s wtr . w¢ ~ rey~ u w~r. eu wy a~ u ce dn r.N ... m*, 10 w : . e12 Msfi.. auM . tea wyi.. u a&.
Wdl (lock Rwaa ~ PVM PVM• M PI MH
Mi.-) 1i0. 2 Wkt: 3 pnxesKC ; ppmra BAI AN(7:
TaA P/ :Ma~ . 56 . c P/Ma s~a a S7ne PI :Mana+Slwc PI :Masb f S hvc
(TC1nMni~ nP~a~~ Pcut~ J
V7S I.ve P3SIa w Pi 'S la.r %:S lm~f'~ I~~, +n 4 4 1 10:~( 1141 10,05 16 :73 9 3 0
I .. . . . . ', ? 4(TSS ?4 N S1 I4192 8317 15319 75: U
i~
AJQI~YwIfW ~
REFERENCES1 Neq Par~ I~efer Fvs MP1 A Afe .,-Hg Irn4s~ I~ lo~af SynasVer AppYdba V o l M?M ~ yy16SA I~ II V9, ~
3 .II l~.lII SY ~' ~ 'I Y M L~I Wrr ~ aF6n~ eyexe ~ri NPI d r~ey~sd b P'~e0 or~ c mim e ~." N.aQAy M ft kaa penCa/eee w PanRl (-~qWIW& M . ( '<~. P AW ~ 1 Ssp pp 11 51 61 iyAt i
I A - Ceti « ~ WIl P~ V -1W~ - A Ue I C'.~ WT-l la Ne-l P-YeI ('n"_w MR P_ C'rtr~ w. Y _ 11 9W i
. It S rm Y I .W A ( ir " PVM M ~. W!R c Yba " l sse N~ rCa Vrn Sa e ~ IM T Fp 2) 1-111 1199~J
S G v M c [~. -A p~ s~ b -V MC NP M PVM." Tnasa o!W ~ N w ka kcsry . 71 . W Rli f 19W 1
e 741[IfMFAQ: Ybn... .~~.oaly .~-~Y ornpcf .vor6wbqlr l<3m21
40
MCNP5T"^ Improvements for Windows PCs
By Tim Goorley, Forrest Brown , Lawrence J . Co x
MCNP Development Team, X-5X-Division (Applied Physics )
Los Alamos National Laboratory
0" Diap no atic s A p p liut ion s Group ( X-S ) Los Alamos
MCNP Improvements for Windows PCs 40
With the release of MCNP 5 , much more emphasis has beenplaced on improving its functionality on PCs runningMicrosoft Windows 0 (9X/NT/2000 /XP) .
• Installation - InstallShiel dBuild system- CVF Developer Studio- Gmake
• X-Windows- More capabilitie s
- Library and include files with MCNP5 Sourc e
• Parallel Capabilities- Parallel Virtual Machine (PVM )- Message Passage Interface (MPI )
• Incorporated into Start Menu• MCNP Visual Editor
~Dlaqnoat ic s Appllc atlo nsGroup (%-5) 2 L os Alamos
Installing MCNP executables JF
There are two methods for installing MCNP5 on a Windows PC :
• Install5hield@ Installer - installs everything needed t ostart running the sequential MCNP5 executable .- It also modifies the environmental variables .- No additional software needed to install .- Provides parallel executables .- Will NOT recompile source .
• Gmake install - After the user copies the director ystructure to local drive, "gmake instnll" will compile th esource, run the test problems and summarize unexpecteddiff erences .- Will NOT modify environmental variables .- Requires previously installed Fortan Compiler and Unix shell (Cygwin) .- Will create mpi parallel executables, but not PVM .- Will recompile source .
~j Diapnosl k s Appli utb n s 6 rv up (X3). .'" T • L06AI d 17105
Building MCNP executables - make 0
This method requires that you previously install :
• Cygwin - A unix shell for Windows- http://www.cygwin .com- http://www.redhat .com/apps/downlond /- Should also install gmake, perl, and gcc packages .
- Optional X11 client package - XFree8 6
• A Fortran 90 Compiler- Compaq Visual Fortran 9 0- Lahey Fortran 95 Professional
- Absoft Pro Fortran 9 5
A C Compiler- GNU gcc- Microsoft C/C++- Fujitsu C/C++ [only with Lahey]
(v 6 .6B)(v 5 .70c)(v 8 .0)
(v 2 .95 . 2 -5 [Cygwin special])(v 12 .00 . 8168 )(v 3 . 0)
w 1_Dby noq kf App lica tlon a O roup (X 3) a ~ IVqRos
.
~X-Windows Graphics - Geometry Plotte r
• Mouse Driven
~ ... .~s„_.. ~
e... . ~ u .n . u.n ~
u w i ~
o.w . uo . o,~o
i 4a _ u~n
u .• , ix rr
~~om
Dwqnost fcs Appikatwns G roup p(-51 5 UN Ala R cis
X- Windows Graphics - Geometry Plotter &
• 64 color plotting for- gram density- atom density- temperature
-,u . .~ m ix ,.
moooo . i .omom, a . aooao oio.oooom . o .oooooo. ~ . wrooo ~
o .oo i..~w - ~ 5000 . i. 00 1
V~ lu ra ir . ♦
~n bl t b f
ry~ • O .uO. O r~.
OlE4 i~v~ 4 :1~~ ~
PonS~r~ µ pp IF1[
mOl YAff ~ ItYti
~ •z au4s u err u r.
I
\ al
\ .
/
~ ~.PIP,
Dfapno uic a App lfcatb n sGroup Ix-sl e + L06 a8111OS
X -Windows Graphics - Geometry Plotter AV
• More plotting capability- MESH tally grid and importance s
ara o tw :~ :~M .a .e n ~ rtn i..o~o .~ tn . ir w+a
.r~a . ovao~ nz:nru : ac o.oooooo. ~ .ooooo e . o .mo moii o.aaoeoo. o.oeeoeo, i .aooooe i
~O,OO. D .Oi . 0.041
a1w a I N .W . N .WI
v~1u ie .W :. ,n r.
m ou sse .m . ~ .~. t. M
OICO I~tm 111~4 11
1a~tbu n i+~R
L401 2o%lf o lP4
n +i A
uns u r~ u r ~
Not,
tt-
. w ee..-
/I
Dlaqn ostks Applk atl ons Oroup(X-5) 7 LW Akwm
MCNP5 Windows Parallel Capabilities 0
With the release of MCNP5 , the parallel capabilities of MCNPhave been extended to Windows PCs . MCNP5 can runacross a cluster of several Windows NT/2000 PCs using theMessage Passing Interface (MPI) or Parallel VirtualMachine (PVM) communications protocols .
• PVM- will allow a cluster with Unix, Linux, etc . computers .- places some restrictions on mixing Windows 9x with NT/2000 machines .- MCNP restrictions on mixing Big Endian with Little Endian Architectur e- Mcnp5pvm inp=test tasks #
• MPICH .NT- will NOT allow a cluster with Unix , Linux , etc . computers .- places some restrictions on mixing Windows 9x with NT/2000 machines .- Mpirun -hosts x hostl y hosts 2 z . . . mcnp5mpi inp=test
Note clusters can span your desktop (Dual/Qund) orcontinents .
u w . i .t r .. . . .
/I -)
Dia q no allc s App lica tbns 6rou D ( X -S) 8 Un maR os
a ►. .iw w
Running Parallel MCNP5 - Output 40
Both PVM and MPI MCNP jobs have similar screen output :
dump 1 on file loyf3r .r nps =
ctm =xact is done
0 coll = 00 . 00 nrn = 0
cp0 = 0 . 2 7master starting 2 tasks with 1 threads each 03/19/03 15 : 06 : 03master sending static commons . . .master sending dynamic commons . . .master sending cross section data . . .master completed initialization broadcasts .master set rendezvous nps = 200 03/19/03 15 :06 : 20master set rendezvous nps = 1000 03/19/03 15 : 06 : 34master set rendezvous nps = 2000 03/19/03 15 : 07 : 15master set rendezvous nps = 3000 03/19/03 15 : 07 : 57master set rendezvous nps = 4000 03/19/03 15 : 08 :46
~i DNynostics Applications Group (X-5). . .--• ~ Los Alamos
Running Parallel MCNP5 40
Small Laptop Cluster Timing StudyDELL Inspiron 8200
Pentium IV O, 1 .6 GHz, 1024 Mbytes RAM, 512 kbytes L2 CacheDELL Lattitude C800
Pentium IIIO, 1 .0 GHz, 512 Mbytes RAM, 256 kbytes L2 Cach e
Wa ll C l oc k PVM PVM MPIRuntimes Sequential
tasks 2 tasks 2 3( m in :sec) processe s
Task Pentium PentiumP4 :Master P4 :Master P4 :Master
D i stribut ion 4 3 +Slave +S lave +SlaveP3 :Slave P3 :Slave P3 : SIave
NP510 ,000 9 :41 30 :25 11 :41 10 :05 16 : 3 3
NP5100 ,000 90 : 55 298 : 54 143 :32 83 :27 153 : 2 9
P4 :P3Ratio
- - 0 . 73 :1 2 . 1 :1 2 . 3 : 1
~DuqnosUCSApplkatwnsGroup (X-S) 10 LM AIWT1O5
Integration with Start Menu4P
•
From the start menu there are now links to :
• Run the testproblems
• Start a commandprompt
• Open the MCNP5Manua l- (If Acrobat Reader is
installed)
• Run the Visual Editor
't startup
Wop
~ . ~ WlrftS&-E&actcr
Acralliatr. I s. o .Ink
4do6. A ao W S .a M: ,Xvn@tExplWs .k*
/ID4aqn ostlc s Appl krtans Oroup ( % ti') 1 ~ L= aaffm
Visual Editor 0
MCNP5 Visual Editor now distributed with MCN P[► iw+ frs O~ e r !.~ 11 ..1 M 1!+ tlA
•~
~ rr"
~ .,.r
@ 2002 by Visual Editor Consultants
~~
rrr or
F
r rFro.F
17--
~.+ - wr w w o . wn` . . .~
~ u.~, m .. ..
- .r-~.+.~~.Ij
M+aa. ~ 4s
w-
.
D la pnostksApplicrtbnaOrou p l %-6) 12 . LOS AJaffm5