On Performance of GPU and DSP Architectures for Computationally Intensive Applications

On Performance of GPU and DSP Architectures for Computationally Intensive Applications

University of Rhode Island DigitalCommons@URI Open Access Master's Theses 2013 On Performance of GPU and DSP Architectures for Computationally Intensive Applications John Faella University of Rhode Island, [email protected] Follow this and additional works at: https://digitalcommons.uri.edu/theses Recommended Citation Faella, John, "On Performance of GPU and DSP Architectures for Computationally Intensive Applications" (2013). Open Access Master's Theses. Paper 2. https://digitalcommons.uri.edu/theses/2 This Thesis is brought to you for free and open access by DigitalCommons@URI. It has been accepted for inclusion in Open Access Master's Theses by an authorized administrator of DigitalCommons@URI. For more information, please contact [email protected]. ON PERFORMANCE OF GPU AND DSP ARCHITECTURES FOR COMPUTATIONALLY INTENSIVE APPLICATIONS BY JOHN FAELLA A THESIS SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENE IN ELECTRICAL ENGINEERING UNIVERSITY OF RHODE ISLAND 2013 MASTER OF SCIENCE THESIS OF JOHN FAELLA APPROVED: Thesis Committee: Major Professor Dr. Jien-Chung Lo Dr. Resit Sendag Dr. Lutz Hamel Nasser H. Zawia DEAN OF THE GRADUATE SCHOOL UNIVERSITY OF RHODE ISLAND 2013 ABSTRACT This thesis focuses on the implementations of a support vector machine (SVM) algorithm on digital signal processor (DSP), graphics processor unit (GPU), and a common Intel i7 core architecture. The purpose of this work is to identify which of the three is most suitable for SVM implementation. The performance is measured by looking at the time required by each of the architectures per prediction. This work also provides an analysis of possible alternatives to existing implementations of computationally intensive algorithms, such as SVM. Some performance improving methods were proposed and examined for the given DSP and GPU architectures. The 4-class and 7-class implementations of the SVM algorithm were examined. On the system with an Intel i7-2720QM CPU at 2.2GHz, the execution times on a per prediction basis were 364µs for the 4-class implementation, and 410µs for the 7-class implementation. On the Spectrum Digital TMS320C6713 DSP development board at 225MHz, the 4-class SVM implementation uses 125ms and the 7-class version needs 165ms. After careful examination of the DSP architecture, the following are implemented to improve the performance: (1) number of memory accesses is greatly reduced via programming technique, (2) the L2 cache is better utilized, and (3) the number of branch statements is reduced. As a result, the run time for 4-class SVM is improved from125ms to only 9ms, and from 165ms to 11ms for the 7-class implementation. On the Nvidia Geforce GT 540m graphics card at 1334MHz, the 4-class SVM needs 798µs, and the 7-class implementation requires 845µs. Again, the GPU's architecture is investigated and the following are used to improve the performance: (1) eliminating excessive memory accesses, (2) taking advantage of memory coalescing, and (3) the use of the reduction method. The improvements resulted in a decrease in the execution time from 798µs to 175µs for the 4-class SVM implementation and from 845µs to 200µs for the 7-class implementation. Because the three architectures studied here are incorporated in three very different systems, running at different clock speeds, a direct comparison of the run time is not possible. The DSP system runs at roughly 10 times slower clock speed than the Intel i7 core system, and achieved more than 20 times slower run times. We cannot directly extrapolate this result; however, we observed that DSP does have its drawbacks when implementing the SVM algorithm. The DSP processor was designed specifically to support computationally intensive DSP algorithms. However, SVM algorithm is somewhat different from traditional DSP algorithms and thus some DSP architectural features are not applicable. From the experimental results, we may observe that GPU is most suitable for the SVM algorithm. Even though it runs at a lower clock speed, about 60% of that of Intel i7 core, with the performance improvement techniques, the GPU outperforms the i7 counterpart. This may be attributed to the GPU's architectural support for parallel computations and its flexibility to adapt to various computationally intensive algorithms. ACKNOWLEDGMENTS I would like to thank my major professor Dr. Jien-Chung Lo for his help, time, and support. I would also like to thank the other members of my committee Dr. Resit Sendag, Dr. Lutz Hamel, and Dr. Otto Gregory, for their help and time. I would also like to thank my colleague at the Naval Undersea Warfare Center Robert Hernandez for all his help and for encouraging me to complete my Master’s degree. I would also like to thank my branch head Ruth Fisher and the Naval Acquisition Career Center for giving me the opportunity to finish my Master’s degree. Lastly, I would like to thank my parents Charlie and Kathy Faella for loving and supporting me throughout my whole life, without which I wouldn’t have even started this endeavor. iv TABLE OF CONTENTS ABSTRACT .................................................................................................................. ii ACKNOWLEDGMENTS .......................................................................................... iv TABLE OF CONTENTS ............................................................................................. v LIST OF TABLES ..................................................................................................... vii LIST OF FIGURES .................................................................................................. viii Introduction .................................................................................................................. 1 Architectures and Applications .................................................................................. 5 2.1 DSP Overview .................................................................................................................... 5 2.2 GPU Overview ................................................................................................................... 8 2.3 SVM Application ............................................................................................................. 11 Methodology ............................................................................................................... 20 3.1 TMS320C6713 ................................................................................................................. 20 3.2 Geforce Gt 540m ............................................................................................................ 23 3.3 CUDA Programming Language ........................................................................................ 27 3.4 CPU Results ..................................................................................................................... 30 DSP Implementation .................................................................................................. 31 4.1 Direct Conversion Approach ........................................................................................... 31 4.2 Elimination of Memory Accesses .................................................................................... 32 4.3 Enabling L2 Cache ........................................................................................................... 36 4.4 Reducing the Number of Branches ................................................................................. 38 4.5 Results ............................................................................................................................. 41 GPU Implementation ................................................................................................. 43 5.1 Parallel Channels ............................................................................................................. 44 5.2 Optimizing the Parallel Channels Approach ................................................................... 49 5.3 Reduction Method .......................................................................................................... 53 v 5.4 Results ............................................................................................................................. 60 Results Comparison ................................................................................................... 62 6.1 DSP vs CPU ...................................................................................................................... 63 6.2 DSP vs GPU ...................................................................................................................... 64 6.3 GPU vs CPU ..................................................................................................................... 65 Conclusions ................................................................................................................. 68 Bibliography ............................................................................................................... 70 vi LIST OF TABLES Table 1: Summary of Changes to GPU Implementation on a 4-Class System. ........... 50 Table 2: Summary of Improvements using Reduction Method in a 7-class System. .. 60 Table 3: Summary of Best Results for a 4-Class System. ........................................... 62 Table 4: Summary of Best Results for a 7-class System. ...........................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    82 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us