Slides - Agenda

Transcription

Slides - Agenda
3D Pa#icles in Cell
A Collider Simulator
“Po#ed” on /e G1d by Eugenio Paoloni
I.N.F.N. & Universita’ ; P=a
!he "onfiguration #iles
Beams parameters &
optical parameters
Constant values
Scanned values
As much as you need
Self documented
file format
const
var
const
const
var
const
const
const
const
const
const
const
const
const
const
const
const
const
const
const
const
const
int
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
float
her_iseed
-10000
her_Nu_x
0.5 1.0 0.05
her_Beta_x
0.3200
her_Alpha_x 0.
her_Nu_y
0.5 1.0 0.05
her_Beta_y
0.0105
her_Alpha_y 0.
her_w11
0.
her_w12
0.
her_w21
0.
her_w22
0.
her_U_x
0.
her_U_z
0.
her_V_x
0.
her_V_z
0.
her_sigmaz
0.0115
her_sigmap
0.00061
her_Nu_z
-0.0490
her_energy
9.0
her_charge
4.333E+10
her_emit_x 51.00E-09
her_emit_y
1.30E-09
!he $MG% &opulator
void
nested_loops( list<KeyConstPair *>::iterator the_iterator ,
list<KeyConstPair *> * the_list )
{
//... omissis...
KeyConstPair *outer_loop = *the_iterator;
list<KeyConstPair *>::iterator the_next_loop = ++the_iterator;
for(outer_loop->reset() ;outer_loop->eor(); outer_loop->increment() )
nested_loops( the_next_loop , the_list);
}
C++ code with nested loops whose depth is
fixed at run time
To populate the AMGA colection:
bash> ./populate /BB/Collection_name configuration_file
!he $MG% "ollection 'cheme
Query> cd /BB/Collection_name
Query> ls
>> run4
>> run5
>> run6
>> run7
>> run8
>> run0
>> run1
>> run2
>> run3
Query>
Query> listattr ./
>> status
>> text
>> jobid
>> text
>> phi
>> float
>> iupdate
>> int
>> xparasitic
>> float
....etc etc etc ...
Bag of task variables.
status ∈{pending, processing, done, failed}
!he (ag of !ask )mplementation
mdcli updateattr \
$AMGA_HOME/$TODO_ID status \"$processing\" jobid \
\"$GLITE_WMS_JOBID\" \’status = \"$pending\"\’
Bag of task
with AMGA
while [ "$AMGA_JOBID" != "$GLITE_WMS_JOBID" ]
do
TODO_ID=‘mdcli \
selectattr $AMGA_HOME:FILE \’$AMGA_HOME:status = \"$pending\" limit 1 \’‘
if [ $TODO_ID ]; then echo "Task to be processed found:" $TODO_ID ;
else exit 1; fi
AMGA_JOBID=‘mdcli \
selectattr $AMGA_HOME:jobid \’$AMGA_HOME:FILE=\"$TODO_ID\"\’‘
done
mdcli selectattr $AMGA_HOME:her_Nu_x [...] ’$AMGA_HOME:FILE=\"$TODO_ID\"\’ > beam0.input
mdcli selectattr $AMGA_HOME:ler_Nu_x [...] ’$AMGA_HOME:FILE=\"$TODO_ID\"\’ > beam1.input
mdcli selectattr $AMGA_HOME:sighor [...] ’$AMGA_HOME:FILE=\"$TODO_ID\"\’ > common.input
Configuration files from AMGA
AMGA_HOME=/BB/Collection_name
AMGA_JOBID=magic
processing=processing
pending=pending
!he *obs 'ubmission )nterface
bash> seq 1 1000 |xargs -i glite-wms-job-submit -a -o jobid bbi.jdl
Admittedly not a bells&whistles full fledged
WIMP® (Windows Icons Menus Pulldowns)
...wimp
¦wimp¦ informal
noun
a weak and cowardly or unadventurous person.
CLI®: when men were real men, rode real
horses and mules and used only Emacs key
combinations
...but Unfortunately...
Murphy is never wrong...
An unidentified failure on the MPI subsystem
prevented the full test of the machinery
AMGA populator (pollutor?) works
AMGA bag of tasks works with non MPI jdl
BBI work with MPI on a fixed configuration
Still to check the combination of the 2 pieces
+onclusions )
The GRID is an extremely powerful facility
The porting is neither straightforward neither
a nightmare
The debugging tools are far from easy and
useful (if presents at all)
Reference documentation and man pages on
UI are a real plus for experienced UNIX users
,a Guida Galattica per $utostoppisti
− C’è davvero una Risposta? − sussurrarono
− C’è davvero una Risposta − confermò Pensiero Profondo
− A Tutto? Alla grande Domanda sulla Vita, l’Universo e Tutto?
− Sì!
− E sei pronto a darci la Risposta?
− Anche se penso che non vi piacerà. Non vi piacerà davvero −
insistette dopo un attimo Pensiero Profondo
− Diccela!
− D’accordo, la Risposta alla Grande Domanda...
− Sì...?
− ...sulla Vita, l’Universo e Tutto...
− Sì...??
− È... − disse Pensiero Profondo e fece una gran pausa
− Sì...???
Luminosità
− Quarantadue −
disse Pensiero Profondo, con Infinita Calma e Solennità.
− Quarantadue??? − disse urlò Loonquuawl − È tutto quello
che hai da dirci dopo sette milioni e mezzo di anni di lavoro?
− Ho controllato con grande minuziosità − disse il Computer −
Credo, se devo esser franco, che il problema stia nel fatto che
voi non abbiate mai realmente saputo quale fosse la Domanda...
# turn
o
T
Un
grazie
al
;
i
m
a
E
1
V
a
ale1
m
o
a
a
t
n
n
i
n
c
a
i
a
A
n
F
n
G
a
abio
s
o
R
on
y
G1d DreamTeam
Fin=