• No results found

GPUs for Parallel Trigger Implementation For Muon Detection

N/A
N/A
Protected

Academic year: 2021

Share "GPUs for Parallel Trigger Implementation For Muon Detection"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

VLVnT11

INFN Pisa & Physics Department of Pisa 1

GPUs for Parallel Trigger Implementation

For Muon Detection

Bachir Bouhadef, Mauro Morganti, Antonio Marinelli

VLVnT11 - Very Large Volume Neutrino

Telescope Workshop 2011.

(2)

VLVnT11

INFN Pisa & Physics Department of Pisa 2

Outlines

The aim of this presentation is :

• Why GPUs.

• Showing a possibility of using a system CPU-GPU (NVIDIA)

for an online muon-track selection.

• Proposing a method for paralyzing the online trigger

software NEMO-II Tower.

• Test the GPU-online trigger in the NEMO-II DAQ structure.

•Proposion KM3NeT Tower Trigger data handling test.

(3)

VLVnT11 INFN Pisa & Physics Department of Pisa 3

448 core CUDA

Data Transfert using PCI Express Gen 2.0. (~5GB/s up, 4.5GB/s down)

We gain the hardware space.

Nvidia.com

(4)

VLVnT11 4

GPU versus CPU

GPU devotes more transistors to data processing,

GPUs are especially well-suited to address problems that can be expressed

as data-parallel computations.

(5)

VLVnT11 5

Scalable Programming Model

A GPUs use blocks and threads

for parallel programming

5

SC

MC

MC

(6)

VLVnT11

INFN Pisa & Physics Department of Pisa 6

Streams in GPU

Copy data to GPU

GPU working

Copy data to GPU

GPU working

Stream 0

Stream 1

Copy data to CPU

GPU working

In present simulation we benefit from the scalability

and the streaming option of the GPU.

CPU

GPU

Functions in GPU are called

(7)

VLVnT11 7

NEMO Tower Phase II.

9 floors

4 PMT/Floor

40m interFloor distance

6m Floor Arme.

The Simuated Tower

16 floors.

(8)

VLVnT11 INFN Pisa & Physics Department of Pisa

8

(9)

VLVnT11 9

Neutrino generation and propagation:

A Nemo Phase-II tower:

16 floors with 4 PMTs

Files of 4 tts

Muon track:

>3 hits

.

Inter-Events time :

0.1 ms fixed.

1920 muons track every TTS(

192

ms)

.

4 TTS are grouped in a File =

768 ms

.

TTS has 32 miniTTS

6ms

.

.

(10)

VLVnT11 INFN Pisa & Physics Department of Pisa 10

TTS Structure

TTS [0]

TTS [1]

TTS [2]

MiniTTS [1]

MiniTTS [N]

PMT[1]

PMT[P]

time

time

time

from HitManager

in TRIDAS DAQ

ms

T

6

(11)

VLVnT11 11

Global view of the software

Implementation

Read 4 TTS

CPU

Get time and relative position of hits

CPU

Sort hits time vector

GPU

Copy all hits information (Q,t_i ,pmt_id)

CPU

Trigger algorithm

GPU

(0.768 s)

(12)

VLVnT11

INFN Pisa & Physics Department of Pisa

Time Slice Ordering with GPU

TTS [0]

TTSr

Th1 Th2

ThL

GPU

Time intervals

B1

BN

Sorting time of hits

The treads have on average

the same number of hits.

Preparing data in CPU:

• From each TTS we will read hit time ti and its

relative position (TTSr)

• A TTSr is split in N-MiniTTS

• The N-GPU block works on the N-MiniTTS

• The M-thread of the N-block has its L=MxN

working time interval, [].

• All thread in the same block pick up all hits.

that belong to their time inteval.

• Each thread orders all hits in the T.

TTSr

CPU

i i pos t ,

miniTTS[1]

miniTTS[N]

12

ms

T

6

(13)

VLVnT11 13

Sorting Alorithms

THRD [1]

THRD [2]

THRD [L]

0

T

<

T

1

<

<

T

NxM

1

Few ordering algorithm were tested

(shellsort, bubble sort, quickSort ).

Quicksort is the best.

We used quickSort algorithm,

based on divide-and-conquer

strategy which has in average

O (n log n) operations.

(14)

VLVnT11

INFN Pisa & Physics Department of Pisa 14

Trigger with GPU

All hits in threads are assembled to form a new TTS called

STTS

used for the trigger selection.

TTS [0]

STTS [0]

After sorting

Th1

Th2

ThMxN

GPU

trigger

B1

BN

Every thread has the same number

of hits, but not the last one.

Th1

Th2

………

Th1

ThL

(15)

VLVnT11

15

Trigger algorithm

(on each thread)

Muon tracks

Trigger selection scheme:

TTS0

TTS1

TTS2

TTS3

Background trigger

INFN Pisa & Physics Department of Pisa

i

Q

Q

i1

Q

i2

Q

i3 i

t

t

i1

t

i2

t

i3 i i

t

t

2

(16)

VLVnT11

INFN Pisa & Physics Department of Pisa

16

PMTID difference

j i j i

id

id

)

(

1

(17)

VLVnT11 INFN Pisa & Physics Department

Time difference

dT

(18)

VLVnT11 INFN Pisa & Physics Department of Pisa 18

Charge +PMTID +

time difference

j i j i i i

id

id

dT

Q

)

1

)

(

(

30

Trigger Efficiency hits>=4

det

70

%

Total ected

N

N

(19)

VLVnT11 Number of Hits Trigger Efficiency THR=10 THR=20 THR=30 THR=40

INFN Pisa & Physics Department

4 x TTS(192ms) was done in:

250ms @50kHz,

300ms @70kHz.

Number of Hits

Trigger Efficiency

(20)

VLVnT11 INFN Pisa & Physics Department of Pisa

Number of Thread

Time cost

Maximum threads per GPU 65536x65536 But :

How many threads can be excecued in GPU ?

(21)

VLVnT11 INFN Pisa & Physics Department 21

-Working with GPU in Neutrino Telescope is feasible.

-Time as well hardware space can be saved.

-A test in NEMO Phase II, and a test on km3Net Tower will be

done

-Studying more efficient parallel algorithm for triggers and data

manipulation to save time as well power.

(22)

VLVnT11 INFN Pisa & Physics Department of Pisa

References

Related documents