partnership for international research and education

1
Partnership for International Research and Education Partnership for International Research and Education A Global Living Laboratory for Cyberinfrastructure Application A Global Living Laboratory for Cyberinfrastructure Application Enablement Enablement Motion Estimation Using NVIDIA CUDA Student: Mark Rajan, MSCE Student, FAU FAU Advisor: Dr. Hari Kalva, FAU PIRE International Partner Advisor: Dr. Gerardo Escribano, UCLM II. International II. International Experience Experience The material presented in this poster is based upon the work supported by the National Science Foundation under Grant No. OISE- 0730065. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. I. Research Overview and I. Research Overview and Outcome Outcome III. III. Acknowledgement Acknowledgement Latin Am erican G rid L A G rid National Science Foundation Objectiv Objectiv e e Computing motion vectors between two frames is the most computationally intensive step in video compression Our goal is to acquire motion vectors NVIDIA’s CUDA Design Design C reate current block C reate search area using reference block and search range Com pare current block against reference search area Com pute SA D A cquire current and reference fram es Determine m otion vectorfor currentblock C reate current block C reate search area using reference block and search range Com pare current block against reference search area Com pute SA D A cquire current and reference fram es Determine m otion vectorfor currentblock Done in parallel using m ultiple cores inside the video card Algorithms for the CPU (left) and GPU (right) CUDA CUDA CUDA stands for Compute Unified Device Architecture is a parallel computing architecture developed by NVIDIA is the computing engine in NVIDIA graphics processing units (GPUs) is accessible to developers through 'C for CUDA' (C with NVIDIA extensions) for Windows, Linux, and Mac OS Conclusion and Future Conclusion and Future Work Work We can clearly see that the performance increase has doubled However, the speedup of 2.03 was much lower than expected Our goal was to encode video using the H.264 standard in real-time Work still needs to continue in order to accomplish this task This can be done by: Optimizing the existing CUDA configuration Develop a different parallel algorithm, including the above mentioned Taking advantage of CUDA’s full potential by using 5 different types of memory Using CUDA in conjunction with OpenCL Enabling SLI to further distribute the workload by adding more video cards of the same model Test Environment and Test Environment and Results Results Implementati Implementati on on Our first task was to port the existing code for motion estimation (ME) to CUDA After incurring a few issues, much of the time in researched was devoted to developing a different, novel algorithm Because of the number of processor cores available (216) Much of the time in this research was devoted to developing an efficient algorithm This approach would compute the difference in one pass, shift the reference frame, and continue this cycle While the current frame is stationary, the reference frame will shift from –RANGE to +RANGE in both the Y and X-axis This method proved to be a burden on the memory, thus causing undesirable delays In order to achieve parallelism, the frames were partitioned by BLOCK_SIZE and thread blocks Thread blocks computed the Sum of Absolute Difference (SAD) for their assigned MacroBlock Valenci Valenci a a Blog Blog http://latinamericangrid.org/elgg/ mark.rajan/weblog Albacet Albacet e e Chinchil Chinchil la la Valencia is awesome. Probably one of the most beautiful cities I've ever visited. Paella is originally from Valencia and it is muy delicioso. A person can spend a whole year in Valencia and still have lots to see and do. Filled with museums, the beach, amazing architecture and culture. I didn’t get to experience the nightlife but it does sound fun from what my friends say. We walked everywhere but I recommend taking a bike or rollerblades. I avoided all the restaurants meant for tourists because they are over-priced and don’t seem authentic. We walked a few blocks into the city area and found a very nice, small café for the Paella. I can’t wait to visit again! Chinchilla is a very nice town. I went with a few friends from work. The whole town is on top of a mountain, with a castle that looks down on the steep side. They had a medieval renaissance festival which was very cool. The town itself is so surreal and picturesque. The New York of La Mancha! Thanks to the PIRE project, not only did I get to learn a new culture, I got to experience the lifestyle. I made many friends from Germany, Norway, Boston/Poland, France/Argentina, and various parts of Spain. UCLM reminded me of FAU in many ways. The people I worked with are very friendly, smart and know how to have a good time. The nightlife is very easy to get accustomed to. A lot of the students and residents of Albacete think it’s very quiet and not much to do when compared to other big cities. I like to think that Albacete is like Miami Beach without the ocean. Machine 1 Machine 2 CPU Pentium 4 @ 2.8 GHz Core 2 Quad @ 2.5 GHz Memory 2GB DDR1 2 GB DDR2 Video GeForce GTX 260 Sunflow er1920 x 1080 (Low eris B etter) G eForce G TX 260, 5.34373 C ore 2 Q uad @ 2.5 G H z, 10.86156 P entium 4 @ 2.8 G H z, 13.90635 0 2 4 6 8 10 12 14 Seconds

Upload: emery

Post on 18-Mar-2016

23 views

Category:

Documents


1 download

DESCRIPTION

National Science. Foundation. Partnership for International Research and Education A Global Living Laboratory for Cyberinfrastructure Application Enablement. Motion Estimation Using NVIDIA CUDA Student: Mark Rajan, MSCE Student, FAU FAU Advisor: Dr. Hari Kalva, FAU - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Partnership for International Research and Education

Partnership for International Research and EducationPartnership for International Research and EducationA Global Living Laboratory for Cyberinfrastructure Application EnablementA Global Living Laboratory for Cyberinfrastructure Application Enablement

Motion Estimation Using NVIDIA CUDAStudent: Mark Rajan, MSCE Student, FAU

FAU Advisor: Dr. Hari Kalva, FAUPIRE International Partner Advisor: Dr. Gerardo Escribano, UCLM

II. International ExperienceII. International Experience

The material presented in this poster is based upon the work supported by the National Science Foundation under Grant No. OISE-0730065. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

I. Research Overview and OutcomeI. Research Overview and Outcome

III. AcknowledgementIII. Acknowledgement

Latin American GridLAGrid

National ScienceFoundation

ObjectiveObjective• Computing motion vectors between two frames is the most computationally intensive step in video compression• Our goal is to acquire motion vectors NVIDIA’s CUDA

DesignDesign

Create current block

Create search area using

reference block and search range

Compare current block against

reference search area

Compute SAD

Acquire current and reference

frames

Determine motion vector for

current block

Create current block

Create search area using

reference block and search range

Compare current block against

reference search area

Compute SAD

Acquire current and reference

frames

Determine motion vector for

current block

Done in parallel using multiple cores

inside the video card

Algorithms for the CPU (left) and GPU (right)

CUDACUDACUDA• stands for Compute Unified Device Architecture• is a parallel computing architecture developed by NVIDIA• is the computing engine in NVIDIA graphics processing units (GPUs)• is accessible to developers through 'C for CUDA' (C with NVIDIA extensions) for Windows, Linux, and Mac OS

Conclusion and Future WorkConclusion and Future Work• We can clearly see that the performance increase has doubled• However, the speedup of 2.03 was much lower than expected• Our goal was to encode video using the H.264 standard in real-time• Work still needs to continue in order to accomplish this task• This can be done by:

• Optimizing the existing CUDA configuration• Develop a different parallel algorithm, including the above mentioned• Taking advantage of CUDA’s full potential by using 5 different types of memory• Using CUDA in conjunction with OpenCL• Enabling SLI to further distribute the workload by adding more video cards of the same model

Test Environment and ResultsTest Environment and Results

ImplementationImplementation• Our first task was to port the existing code for motion estimation (ME) to CUDA• After incurring a few issues, much of the time in researched was devoted to developing a different, novel algorithm• Because of the number of processor cores available (216)• Much of the time in this research was devoted to developing an efficient algorithm• This approach would compute the difference in one pass, shift the reference frame, and continue this cycle• While the current frame is stationary, the reference frame will shift from –RANGE to +RANGE in both the Y and X-axis• This method proved to be a burden on the memory, thus causing undesirable delays• In order to achieve parallelism, the frames were partitioned by BLOCK_SIZE and thread blocks• Thread blocks computed the Sum of Absolute Difference (SAD) for their assigned MacroBlock

ValenciaValencia

BlogBlog http://latinamericangrid.org/elgg/mark.rajan/weblog

AlbaceteAlbaceteChinchillaChinchilla

Valencia is awesome. Probably one of the most beautiful cities I've ever visited. Paella is originally from Valencia and it is muy delicioso. A person can spend a whole year in Valencia and still have lots to see and do. Filled with museums, the beach, amazing architecture and culture. I didn’t get to experience the nightlife but it does sound fun from what my friends say. We walked everywhere but I recommend taking a bike or rollerblades. I avoided all the restaurants meant for tourists because they are over-priced and don’t seem authentic. We walked a few blocks into the city area and found a very nice, small café for the Paella. I can’t wait to visit again!

Chinchilla is a very nice town. I went with a few friends from work. The whole town is on top of a mountain, with a castle that looks down on the steep side. They had a medieval renaissance festival which was very cool. The town itself is so surreal and picturesque.

The New York of La Mancha! Thanks to the PIRE project, not only did I get to learn a new culture, I got to experience the lifestyle. I made many friends from Germany, Norway, Boston/Poland, France/Argentina, and various parts of Spain. UCLM reminded me of FAU in many ways. The people I worked with are very friendly, smart and know how to have a good time. The nightlife is very easy to get accustomed to. A lot of the students and residents of Albacete think it’s very quiet and not much to do when compared to other big cities. I like to think that Albacete is like Miami Beach without the ocean.

Machine 1 Machine 2CPU Pentium 4 @ 2.8 GHz Core 2 Quad @ 2.5 GHzMemory 2GB DDR1 2 GB DDR2Video GeForce GTX 260

Sunflower 1920 x 1080 (Lower is Better)

GeForce GTX 260, 5.34373

Core 2 Quad @ 2.5 GHz, 10.86156

Pentium 4 @ 2.8 GHz, 13.90635

0 2 4 6 8 10 12 14

Seconds