1 / 12

Accelerating String Matching Using Multi-threaded Algorithm on GPU

Accelerating String Matching Using Multi-threaded Algorithm on GPU. Date:101/4/18 Publisher:IEEE globalcom 2010 Author:Cheng -Hung Lin, Sheng -Yu Tsai, Chen- Hsiung Liu, Shih- Chieh Chang, Jyuo -Min Shyu Presenter : Shi- qu Yu. Introduction. Introduction.

raoul
Download Presentation

Accelerating String Matching Using Multi-threaded Algorithm on GPU

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Accelerating String Matching Using Multi-threadedAlgorithm on GPU Date:101/4/18 Publisher:IEEEglobalcom 2010 Author:Cheng-Hung Lin, Sheng-Yu Tsai, Chen-HsiungLiu, Shih-ChiehChang, Jyuo-Min Shyu Presenter : Shi-qu Yu

  2. Introduction

  3. Introduction

  4. PROBLEMS OF DIRECT IMPLEMENTATION OF AC ALGORITHM ON GPU

  5. Parallel Failureless-AC Algorithm (PFAC) • In PFAC, we allocate each byte of an input stream a GPU thread to identify any virus pattern starting at the thread starting location. • Since in the PFAC algorithm, a GPU thread only concerns the virus pattern starting at a particular location, the GPU threads of PFAC need not back-track the state machine.

  6. Parallel Failureless-AC Algorithm (PFAC)

  7. Parallel Failureless-AC Algorithm (PFAC)

  8. GPU IMPLEMENTATION • Group size regulation • There are two main principles to improve throughput on GPU. One principle is to employ as many threads as possible.Theother principle is to utilize the shared memory.

  9. GPU IMPLEMENTATION • Group size regulation • The first step is to group these virus patterns by their prefix similarity. • The second step is to determine the size of a Failureless-AC state machine to fit into the shared memory of a multiprocessor. • We parameterize the size of the state machine as 1, 2, 3, 4, 5, 6, and 7 KB and find the corresponding number of state machines which are 315, 136 ,83, 63, 49, 41, and 35.

  10. GPU IMPLEMENTATION • Thread assignment methodology • Average thread assignment For example, the first thread processes the bytes starting at locations 0, 512, 1,024, 1,536, 2,048, 2,570, 3,072, and 3,584 of the input stream. • Boss thread assignment The Boss thread assignment declares a global variable called Boss to assign new jobs to the threads which have already finished their jobs.

  11. EXPERIMENTAL RESULTS

  12. EXPERIMENTAL RESULTS

More Related