Message: Re: How to split file reading between cores Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: How to split file reading between cores 

Forum: Multithreading
Re: Question How to split file reading between cores (Volodymyr Rodin)
Re: Feedback Re: How to split file reading between cores (Jonathan Madsen)
Re: Question Re: How to split file reading between cores (Volodymyr Rodin)
Re: Feedback Re: How to split file reading between cores (Jonathan Madsen)
Date: Feb 15, 17:22
From: Volodymyr Rodin <Volodymyr Rodin>

>   static std::atomic<G4int> file_pos;
>   auto my_pos = file_pos++;  

I used just file_pos++; Does it matter?

Almost works. But still some issue with the first line:

G4WT2 > Line = 0 x = 0.0585731 y =1.0901 z =3.17355
 Px = 0.0050951 Py =0.0145987 Pz =3.17355 PDGid =11
G4WT0 > Going to create slave ntuples from main
G4WT0 > Line = 0 x = 0.0585731 y =1.0901 z =3.17355
 Px = 0.0050951 Py =0.0145987 Pz =3.17355 PDGid =11
G4WT1 > Going to create slave ntuples from main
G4WT1 > Line = 0 x = 0.0585731 y =1.0901 z =3.17355
 Px = 0.0050951 Py =0.0145987 Pz =3.17355 PDGid =11
G4WT3 > Going to create slave ntuples from main
G4WT3 > Line = 0 x = 0.0585731 y =1.0901 z =3.17355
 Px = 0.0050951 Py =0.0145987 Pz =3.17355 PDGid =11
G4WT2 > Line = 1 x = -1.797097 y =-0.18557 z =1.2199805
 Px = -0.001731 Py =-0.003405 Pz =1.2199805 PDGid =11
G4WT1 > Line = 2 x = 1.0315912 y =-0.892959 z =0.2182197
 Px = 0.0016013 Py =-0.001666 Pz =0.2182197 PDGid =11
G4WT0 > Line = 3 x = -2.596816 y =1.1415942 z =2.681722
 Px = 0.0005009 Py =-0.000795 Pz =2.681722 PDGid =11
G4WT3 > Line = 4 x = 0.9022625 y =-1.002452 z =3.6941686
 Px = 0.0048686 Py =0.0024817 Pz =3.6941686 PDGid =11
G4WT2 > Line = 5 x = -0.232088 y =-0.13199 z =1.049895
 Px = 0.0092164 Py =0.0050631 Pz =1.049895 PDGid =11
G4WT1 > Line = 6 x = -1.037834 y =-0.671373 z =3.906119
 Px = -0.004173 Py =0.0122775 Pz =3.906119 PDGid =11
G4WT0 > Line = 7 x = -0.38474 y =-0.283684 z =2.927444
 Px = -0.006655 Py =-0.00107 Pz =2.927444 PDGid =11
G4WT3 > Line = 8 x = -1.26623 y =1.6983552 z =0.7399208
 Px = -0.002167 Py =-0.005651 Pz =0.7399208 PDGid =11
G4WT2 > Line = 9 x = -0.020914 y =0.1499184 z =6.3326558
 Px = -0.009617 Py =-0.004499 Pz =6.3326558 PDGid =11
G4WT1 > Line = 10 x = -1.034101 y =-0.652558 z =0.8921973
 Px = -0.00551 Py =0.0059778 Pz =0.8921973 PDGid =11
G4WT0 > Line = 11 x = 1.3097371 y =-1.055034 z =1.8105973
 Px = -0.00026 Py =-0.008895 Pz =1.8105973 PDGid =11
G4WT3 > Line = 12 x = -0.886902 y =-1.487592 z =1.0762562
 Px = 0.0030496 Py =-0.00022 Pz =1.0762562 PDGid =11
G4WT2 > Line = 13 x = -0.917536 y =-0.996557 z =2.2748147
 Px = -0.002786 Py =-0.003463 Pz =2.2748147 PDGid =11
G4WT1 > Line = 14 x = 0.1912751 y =-0.309551 z =0.1907031
 Px = -0.001411 Py =0.0013433 Pz =0.1907031 PDGid =11
G4WT0 > Thread-local run terminated.
G4WT3 > Thread-local run terminated.
G4WT2 > Line = 17 x = 1.3130181 y =0.8259322 z =1.4590599
 Px = -0.000266 Py =-0.002176 Pz =1.4590599 PDGid =11
G4WT1 > Line = 18 x = 3.2937443 y =1.6149197 z =2.7167048
 Px = -0.006721 Py =0.0058834 Pz =2.7167048 PDGid =11

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: How to split file reading between cores   (Volodymyr Rodin - Feb 16, 10:18)
(_ Question: Re: How to split file reading between cores   (Michael H. Kelsey - Feb 17, 10:22)
1 Ok: Re: How to split file reading between cores   (Volodymyr Rodin - Feb 18, 04:06)
1 Feedback: Re: How to split file reading between cores   (Jonathan Madsen - Feb 18, 07:24)
2 Feedback: Re: How to split file reading between cores   (Jonathan Madsen - Feb 18, 07:57)
 Add Message Add Message
to: "Re: How to split file reading between cores"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews