Algorithmic strategies for optimizing the parallel reduction primitive in CUDA
Many general-purpose applications exploit Graphics Processing Units (GPUs) by executing a set of well-known dataparallel primitives. Those primitives are usually invoked from the host many times, so their throughput has a great impact on the performance of the overall system. Thus, the study of nove...
Uloženo v:
| Vydáno v: | 2012 International Conference on High Performance Computing and Simulation s. 511 - 519 |
|---|---|
| Hlavní autoři: | , , , |
| Médium: | Konferenční příspěvek |
| Jazyk: | angličtina |
| Vydáno: |
IEEE
01.07.2012
|
| Témata: | |
| ISBN: | 9781467323598, 1467323594 |
| On-line přístup: | Získat plný text |
| Tagy: |
Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
|
| Abstract | Many general-purpose applications exploit Graphics Processing Units (GPUs) by executing a set of well-known dataparallel primitives. Those primitives are usually invoked from the host many times, so their throughput has a great impact on the performance of the overall system. Thus, the study of novel algorithmic strategies to optimize their implementation on current devices is an interesting topic to the GPU community. In this paper we focus on optimizing the reduction primitive, which merely reduces a data sequence into a single value using a binary associative operator. Although tree-based and sequential-based algorithms have been already implemented on GPUs, a comparison of both algorithm performance had not been carried out yet. Thus, our first contribution is to present an experimental study of state-of-the-art reduction algorithms on CUDA. Next we introduce two algorithmic optimizations that are integrated into the fastest solution (a sequential-based algorithm), improving its throughput even more. Finally, we replicate this methodology to the segmented version of the primitive, which applies when the input is composed of several independent segments. In this case, it is not clear which algorithm exhibits the best performance, since throughput deeply depends on the distribution of segments along the input. According to our results, tree-based algorithms run faster for small segments, while sequential methods are better for medium and large ones. |
|---|---|
| AbstractList | Many general-purpose applications exploit Graphics Processing Units (GPUs) by executing a set of well-known dataparallel primitives. Those primitives are usually invoked from the host many times, so their throughput has a great impact on the performance of the overall system. Thus, the study of novel algorithmic strategies to optimize their implementation on current devices is an interesting topic to the GPU community. In this paper we focus on optimizing the reduction primitive, which merely reduces a data sequence into a single value using a binary associative operator. Although tree-based and sequential-based algorithms have been already implemented on GPUs, a comparison of both algorithm performance had not been carried out yet. Thus, our first contribution is to present an experimental study of state-of-the-art reduction algorithms on CUDA. Next we introduce two algorithmic optimizations that are integrated into the fastest solution (a sequential-based algorithm), improving its throughput even more. Finally, we replicate this methodology to the segmented version of the primitive, which applies when the input is composed of several independent segments. In this case, it is not clear which algorithm exhibits the best performance, since throughput deeply depends on the distribution of segments along the input. According to our results, tree-based algorithms run faster for small segments, while sequential methods are better for medium and large ones. |
| Author | Gavilanes, A. Martin, P. J. Torres, R. Ayuso, L. F. |
| Author_xml | – sequence: 1 givenname: P. J. surname: Martin fullname: Martin, P. J. email: pjmartin@sip.ucm.es organization: Dept. de Sist. Informaticos y Comput., Univ. Complutense de Madrid, Madrid, Spain – sequence: 2 givenname: L. F. surname: Ayuso fullname: Ayuso, L. F. email: lf.ayuso@fdi.ucm.es organization: Dept. de Sist. Informaticos y Comput., Univ. Complutense de Madrid, Madrid, Spain – sequence: 3 givenname: R. surname: Torres fullname: Torres, R. email: r.torres@fdi.ucm.es organization: Dept. de Sist. Informaticos y Comput., Univ. Complutense de Madrid, Madrid, Spain – sequence: 4 givenname: A. surname: Gavilanes fullname: Gavilanes, A. email: agav@sip.ucm.es organization: Dept. de Sist. Informaticos y Comput., Univ. Complutense de Madrid, Madrid, Spain |
| BookMark | eNotUNtKxDAUjKigu_YL9iU_0JrL9qR5LPWywqKC6_OSpqfdSG-kUdCvt2LnZZhhGIZZkYt-6JGQDWcJ50zf7l6LN9clgnGRgADQAGdkxbegpJDA4ZxEWmWLTnV2RaJp-mAzZpencE2e87YZvAunzlk6BW8CNg4nWg-eDmNwnftxfUPDCelovGlbbKnH6tMGN_R09HMguC-krqfF-11-Qy5r004YLbwmh4f7Q7GL9y-PT0W-j51mIUYtJa-ytC6NRFGLrbIWM7Ac0MqSK6uYqow2nBkFFhlUTNnUlsyi0akWck02_7UOEY9_K4z_Pi4PyF_q61MV |
| ContentType | Conference Proceeding |
| DBID | 6IE 6IL CBEJK RIE RIL |
| DOI | 10.1109/HPCSim.2012.6266966 |
| DatabaseName | IEEE Electronic Library (IEL) Conference Proceedings IEEE Xplore POP ALL IEEE Xplore All Conference Proceedings IEEE Electronic Library (IEL) IEEE Proceedings Order Plans (POP All) 1998-Present |
| DatabaseTitleList | |
| Database_xml | – sequence: 1 dbid: RIE name: IEEE Electronic Library (IEL) url: https://ieeexplore.ieee.org/ sourceTypes: Publisher |
| DeliveryMethod | fulltext_linktorsrc |
| EISBN | 1467323616 9781467323611 1467323624 9781467323628 |
| EndPage | 519 |
| ExternalDocumentID | 6266966 |
| Genre | orig-research |
| GroupedDBID | 6IE 6IF 6IK 6IL 6IN AAJGR AAWTH ADFMO ALMA_UNASSIGNED_HOLDINGS BEFXN BFFAM BGNUA BKEBE BPEOZ CBEJK IEGSK IERZE OCL RIE RIL |
| ID | FETCH-LOGICAL-i90t-e9331d85fba3e2f247cce86c16ec3b17c707da9a10a76ce06d07c5cb0cea95923 |
| IEDL.DBID | RIE |
| ISBN | 9781467323598 1467323594 |
| IngestDate | Wed Aug 27 04:36:09 EDT 2025 |
| IsPeerReviewed | false |
| IsScholarly | false |
| Language | English |
| LinkModel | DirectLink |
| MergedId | FETCHMERGED-LOGICAL-i90t-e9331d85fba3e2f247cce86c16ec3b17c707da9a10a76ce06d07c5cb0cea95923 |
| PageCount | 9 |
| ParticipantIDs | ieee_primary_6266966 |
| PublicationCentury | 2000 |
| PublicationDate | 2012-July |
| PublicationDateYYYYMMDD | 2012-07-01 |
| PublicationDate_xml | – month: 07 year: 2012 text: 2012-July |
| PublicationDecade | 2010 |
| PublicationTitle | 2012 International Conference on High Performance Computing and Simulation |
| PublicationTitleAbbrev | HPCSim |
| PublicationYear | 2012 |
| Publisher | IEEE |
| Publisher_xml | – name: IEEE |
| SSID | ssj0000781156 |
| Score | 1.6167023 |
| Snippet | Many general-purpose applications exploit Graphics Processing Units (GPUs) by executing a set of well-known dataparallel primitives. Those primitives are... |
| SourceID | ieee |
| SourceType | Publisher |
| StartPage | 511 |
| SubjectTerms | Arrays CUDA data-parallel algorithms GPGPU Graphics processing unit Instruction sets Kernel Optimization parallel reduction segmented parallel reduction Synchronization Throughput |
| Title | Algorithmic strategies for optimizing the parallel reduction primitive in CUDA |
| URI | https://ieeexplore.ieee.org/document/6266966 |
| hasFullText | 1 |
| inHoldings | 1 |
| isFullTextHit | |
| isPrint | |
| link | http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV1LSwMxEA61ePCk0opvcvDotsk-8jiWaumpFKzQW8nOzurCdre0Ww_-epPtuiJ48ZaEEMIkZL4k831DyIMOEwDr9rw0kcwLufvf9UXqGW33R8iNQozrZBNyNlPLpZ53yGPLhUHEOvgMB65Y_-UnJezdU9nQgm9h4fkROZJSHLha7XuKE62xd5GauyVk4AdRo_un2rpqVIc408PpfPySOSY69wfNsL_yq9TuZXL6v4mdkf4PT4_OWw90TjpY9MhslL-V9sr_vs6A7qpvKQhq0Skt7QGxzj5tZ2qBH3W633mOOd06AVe3RHTj0ny5I5BmBR2_Po36ZDF5XoynXpM1wcs0qzzUQcATFaWxCdBP_VACoBLABUIQcwmSycRow5mRApCJhEmIIGaARkcW7l2QblEWeElo7cuVcOTZNGQpGiOSSJrU1kGpSF2RnjPFanPQxVg1Vrj-u_mGnDhrH0Jdb0m32u7xjhzDR5Xttvf1Yn4B_xOdXg |
| linkProvider | IEEE |
| linkToHtml | http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV3NS8MwFA9zCnpS2cRvc_Bot6Qf-TiO6Zg4y8AJu400fdVCt46t8-Bfb9LViuDFWxJCCC8h75fk_X4PoVvpx1obt-ckMSeOT-3_rssSR0mzP3yqBEBUJpvgYSimUzluoLuaCwMAZfAZdGyx_MuPc72xT2VdA76Zgec7aDfwfZds2Vr1i4qVrTG3kZK9xbjnekGl_Cfquqh0hyiR3eG4_5JaLjp1O9XAvzKslA5mcPi_qR2h9g9TD49rH3SMGrBoobCXveXm0v8-TzVeF99iENjgU5ybI2KefprO2EA_bJW_swwyvLISrnaR8NIm-rKHIE4XuP9632ujyeBh0h86Vd4EJ5WkcEB6Ho1FkETKAzdxfa41CKYpA-1FlGtOeKykokRxpoGwmHAd6IhoUDIwgO8ENRf5Ak4RLr25YJY-m_gkAaVYHHCVmLoWIhBnqGVNMVtulTFmlRXO_26-QfvDyfNoNnoMny7QgbX8NvD1EjWL1Qau0J7-KNL16rpc2C9hi6Cl |
| openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=proceeding&rft.title=2012+International+Conference+on+High+Performance+Computing+and+Simulation&rft.atitle=Algorithmic+strategies+for+optimizing+the+parallel+reduction+primitive+in+CUDA&rft.au=Martin%2C+P.+J.&rft.au=Ayuso%2C+L.+F.&rft.au=Torres%2C+R.&rft.au=Gavilanes%2C+A.&rft.date=2012-07-01&rft.pub=IEEE&rft.isbn=9781467323598&rft.spage=511&rft.epage=519&rft_id=info:doi/10.1109%2FHPCSim.2012.6266966&rft.externalDocID=6266966 |
| thumbnail_l | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=9781467323598/lc.gif&client=summon&freeimage=true |
| thumbnail_m | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=9781467323598/mc.gif&client=summon&freeimage=true |
| thumbnail_s | http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=9781467323598/sc.gif&client=summon&freeimage=true |

