ESR12: Accelerated Anomaly Detection
Pratik Jawahar
Supervisors:�Caterina Doglioni, Jiri Masik, Alex Oh,�Maurizio Pierini
1
Overview:
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
About me:
2
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Qualification Task: Heterogenous Track Reconstruction
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
4
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
5
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
6
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
7
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
8
x
y
𝛳
r
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
9
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Problem(s)!
Computing term for specific purpose architectures (eg. GPU, TPU, IPU etc.)
10
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Track Reconstruction:
11
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling
12
D2H Calculations - CPU vs D2H CPU
D2H Calculations - CPU vs CUDA
Step 1: Ensure GPU computations do not decrease physics performance
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling - NSight Compute
13
Step 2: Profile code in as close-to-deployment conditions as possible
CUDA tools: NSight Compute, NSight Systems
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling - NSight Compute
14
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling
15
CPU | | | | GPU | | |
| Parent process | Duration [mu-sec] | | | Parent process | Duration [mu-sec] |
| | | | | | |
| Container Instantiation | 8 | | | Container Instantiation | 6 |
| File reading | 1,720,207 | | | File reading | NA |
| Clusterization | 40,197 | | | Clusterization | NA |
| Spacepoint Formation | 6,078 | | | Spacepoint Formation | NA |
| Clusterization + Spacepoints | 46,275 | | | Clusterization + Spacepoints | 40,197 |
| Seeding | 1,075,583 | | | Seeding | 80,072 |
| Track param est | 27,909 | | | Track param est | 2,651 |
CPU | | | | GPU | | |
| Parent process | Duration [mu-sec] | | | Parent process | Duration [mu-sec] |
| | | | | | |
| Container Instantiation | 8 | | | Container Instantiation | 6 |
| File reading | 1,288,893 | | | File reading | NA |
| Clusterization | 36,070 | | | Clusterization | NA |
| Spacepoint Formation | 3,131 | | | Spacepoint Formation | NA |
| Clusterization + Spacepoints | 39,201 | | | Clusterization + Spacepoints | 2,433 |
| Seeding | 792,729 | | | Seeding | 11,686 |
| Track param est | 9,316 | | | Track param est | 411 |
Data File | Detector Geometry | No. of Events |
tml_full/ttbar_mu300 | tml_detector/trackml-detector | 1 |
Old Version
New Version - with FastSV
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling - NSight Compute
16
Data File | Detector Geometry | No. of Events |
tml_full/ttbar_mu300 | tml_detector/trackml-detector | 1 |
Old Version
New Version - with FastSV
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling - NSight Systems
17
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling
18
CPU | | | | GPU | | |
| Parent process | Duration [mu-sec] | | | Parent process | Duration [mu-sec] |
| | | | | | |
| Container Instantiation | 15 | | | Container Instantiation | 5 |
| File reading | 1,341,172 | | | File reading | NA |
| Clusterization | 36,070 | | | Clusterization | NA |
| Spacepoint Formation | 3,131 | | | Spacepoint Formation | NA |
| Clusterization + Spacepoints | 39,201 | | | Clusterization + Spacepoints | 2,433 |
| Seeding | 814,789 | | | Seeding | 11,686 |
| Track param est | 9,316 | | | Track param est | 411 |
Data File | Detector Geometry | No. of Events |
tml_full/ttbar_mu300 | tml_detector/trackml-detector | 1 |
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling
19
Data File | Detector Geometry | No. of Events |
tml_full/ttbar_mu300 | tml_detector/trackml-detector | 1 |
CPU | | | GPU | | |
Parent process | Duration [mu-sec] | | | Parent process | Duration [mu-sec] |
| | | | | |
Host to Device [Cells] | 3035 | | | Device to Host [Cells] | NA |
Host to Device [Spacepoints] | 2,703 | | | Device to Host [Spacepoints] | 1087 |
Host to Device [Seeds] | 781 | | | Device to Host [Seeds] | 349 |
Host to Device [Track params] | 1,655 | | | Device to Host [Track params] | 1,161 |
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Next Steps
20
CPU | | | GPU | | |
Parent process | Duration [mu-sec] | | | Parent process | Duration [mu-sec] |
| | | | | |
Host to Device [Cells] | 3035 | | | Device to Host [Cells] | NA |
Host to Device [Spacepoints] | 2,703 | | | Device to Host [Spacepoints] | 1087 |
Host to Device [Seeds] | 781 | | | Device to Host [Seeds] | 349 |
Host to Device [Track params] | 1,655 | | | Device to Host [Track params] | 1,161 |
Data File | Detector Geometry | No. of Events |
tml_full/ttbar_mu300 | tml_detector/trackml-detector | 1 |
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Baler: ML based Data Compression
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Baler: ML based Data Compression
22
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Misc Activities
Side Quests:
Hackathons:
Workshops/Conferences:
Schools:
Teaching/Outreach:
23
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Conclusions & Future Work
24
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
Thank you!
Questions?
People are hungry, just putting it out there :)
Feel free to chat later as well! :)
25
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
BACKUP
26
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
27
CPU
CUDA
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
28
CPU
CUDA
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling
29
Old Version
New Version - with FastSV
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
CUDA Profiling- NEW
30
Data File | Detector Geometry | No. of Events |
tml_full/ttbar_mu300 | tml_detector/trackml-detector | 1 |
Old Version
count_doublets()
New Version - with FastSV
count_doublets()
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086
ESR12: Pratik Jawahar
SMARTHEP is funded by the European Union’s Horizon 2020 research and innovation programme, call H2020-MSCA-ITN-2020, under Grant Agreement n. 956086