[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685896-105":59,"doc-detail-685896-en":130,"doc-similar-685896":159},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","gp-gpu-parallel-pattern-lecture-5","GP-GPU - Parallel Pattern - Lecture 5","","Fall 2023 Lecture 5 on GP-GPU presents parallel patterns and the GPU execution model needed for performance. It reviews the GP-GPU hierarchy, including grid, thread blocks, streaming multiprocessors (SM), and warps. It explains how GPUs hide latency through warp scheduling and multi-threading, and how memory behavior affects speed, emphasizing coalesced global access and shared-memory bank conflicts. It further covers divergence in if-then-else execution, warp divergence causes, and the resulting impact on execution time.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/gp-gpu-parallel-pattern-lecture-5/685896/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/gp-gpu-parallel-pattern-lecture-5/685896.png","ImageObject",300,407,{"name":92,"@type":93},"cimolpedes","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How does a GPU hide memory access latency in parallel execution?","Question",{"text":112,"@type":113},"A GPU switches quickly between warps, and masking latency is achieved by multi-threading so other warps run while memory operations wait.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the recommended ways to organize threads and blocks for processing arrays?",{"text":117,"@type":113},"Use threads that each handle one element and a grid totaling N threads, or use threads handling n elements each with a grid having N/n threads overall.",{"name":119,"@type":110,"acceptedAnswer":120},"Why does warp divergence slow down GPU performance?",{"text":121,"@type":113},"Divergence happens when threads in the same warp take different instruction paths (e.g., different branches of if...then...else), forcing sequential execution of then and else and increasing total execution time.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},685896,1794021619,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":36,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},962094243610,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","GP-GPU  \nand  \nHigh Performances Computing  \nLecture 5  \nParallel Pattern  \n[https://christophe.picard.pages.ensimag.fr/courses/course/gp-gpu/Lectures/cgpu-fall23-lecture5.pdf](https://christophe.picard.pages.ensimag.fr/courses/course/gp-gpu/Lectures/cgpu-fall23-lecture5.pdf)  \nFall 2023 Lecture 5-Programming on GP-GPU 1  \nCourse logistic  \nFall 2023 Lecture 5-Programming on GP-GPU 2  \nInformation  \n➔ Reset password: [https://copass-client.grenet.fr/app.php/simsu/secure/modifypwd/modify_password](https://copass-client.grenet.fr/app.php/simsu/secure/modifypwd/modify_password)  \n➔ Using a VPN: [https://intranet.ensimag.grenoble-inp.fr/fr/informatique/vpn-ensimag](https://intranet.ensimag.grenoble-inp.fr/fr/informatique/vpn-ensimag)  \n◆ On Linux: when nothing change on screen, the process is ready ➔ Accessing the GP-GPU: [ssh-K](ssh-K login@vmgpu0xx.ensimag.fr)[ ](ssh-K login@vmgpu0xx.ensimag.fr)[login@vmgpu0xx.ensimag.fr](ssh-K login@vmgpu0xx.ensimag.fr)[ ](ssh-K login@vmgpu0xx.ensimag.fr)➔ Copying on GP-GPU: scp origin [login@vmgpu0xx.ensimag.fr](login@vmgpu0xx.ensimag.fr:target)[:target](login@vmgpu0xx.ensimag.fr:target)  \n➔ Compiling: you need to modify the PATH variable  \n◆ export PATH=$PATH:/usr/local/cuda/bin  \nFall 2023 Lecture 5-Programming on GP-GPU 3  \nReview of GP-GPU hierarchy  \nFall 2023 Lecture 5-Programming on GP-GPU 4  \nBlock grid definition  \nMasking of GPU memory access times  \n➔ a GPU switches from one thread warp to another very quickly ➔ a GPU masks the latency of its memory accesses by multi-threading  \nDo not hesitate to create large numbers of small GPU threads  \nEx.: to process an array of N elements, you can define:➔ Threads dealing with ONE element each ➔ and a Grid of blocks of N threads in total  \nOr  \n➔ Threads dealing with n elements each ➔ and a Grid of blocks of N/n threads in total  \nFall 2023 Lecture 5-Programming on GP-GPU 5  \nReview processing hierarchy  \n➔ Thread block organization: a grid of blocks of threads  \n➔ Streaming multiprocessor (SM): set of cores, cache, schedulers  \n◆ A block is assigned to and executed on a single SM  \n➔ Warp: A group of up to 32 threads within a block  \n◆ Threads in a single warp can only run 1 set of instructions at once  \n◆ Performing different tasks can cause warp divergence and affect performance ➔ Need to overlap warp computation with data loads  \nFall 2023 Lecture 5-Programming on GP-GPU 6  \nReview memory hierarchy  \n➔ Global memory access should be coalesced  \n➔ Shared memory may lead to bank conflicts  \n➔ Local memory and registered are faster than all other memories  \nFall 2023 Lecture 5-Programming on GP-GPU 7  \nCore organization  \nEach thread in a warp share  \n➔ An instruction stream to decode ➔ An execution context for storage (64kB per thread)➔ 8 SIMD functional unit  \n➔ One control unit  \n➔ Each core can run a group of 32 threads, a warp.  \n➔ Warps can be interleaved to run simultaneously (up to 320)➔ Up to 10240 threads context can be stored  \nFall 2023 Lecture 5-Programming on GP-GPU 8  \nDivergence  \nFall 2023 Lecture 5-Programming on GP-GPU 9  \nExecuting « if...then...else »  \n➔ Divergences are sources of slow down on SIMD  \nif (x \u003C 10) then {   } else {   }  \n➔ Execution within a warp:  \n1. All threads test the condition (x \u003C 10)  \n2. All threads must execute the then statement do it in parallel  \n3. All threads must execute the else statement do it in parallel ➔ Execution time:  \n◆ If all threads execute the then statement then: T(condition) + T(then)  \n◆ If all threads execute the else statement then: T(condition) + T(else)  \n◆ If at least one thread execute the then statement and one execute the else statement then:  \nT(condition) + T(then) + T(else)  \nFall 2023 Lecture 5-Programming on GP-GPU 10","cbCaisXJhRrIozX1","https://ap.wps.com/l/cbCaisXJhRrIozX1","pdf",388984,"English","# Course logistic\n# Accessing and compiling on GP-GPU\n## PATH and environment setup\n# GP-GPU hierarchy review\n## Block-grid definition and memory masking\n# Memory hierarchy and access rules\n## Coalesced global access\n## Shared-memory bank conflicts\n# Core organization and warp execution\n## SM, warp, and interleaving\n# Divergence in conditional execution\n## if-then-else and execution time impact","[{\"question\":\"How does a GPU hide memory access latency in parallel execution?\",\"answer\":\"A GPU switches quickly between warps, and masking latency is achieved by multi-threading so other warps run while memory operations wait.\"},{\"question\":\"What are the recommended ways to organize threads and blocks for processing arrays?\",\"answer\":\"Use threads that each handle one element and a grid totaling N threads, or use threads handling n elements each with a grid having N/n threads overall.\"},{\"question\":\"Why does warp divergence slow down GPU performance?\",\"answer\":\"Divergence happens when threads in the same warp take different instruction paths (e.g., different branches of if...then...else), forcing sequential execution of then and else and increasing total execution time.\"}]","GP-GPU - Parallel Pattern - Lecture 5 | PDF",101,[145,149,152,156],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3fa29f20c800ab82e96d6dbdd69f2fab.webp",983,552,{"page_no":14,"url":150,"width":151,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/918dc00cb9b7b57a9ef88eb34af8b3d0.webp",982,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/10159b6a6bf90650de3ff6a6b9a52bf9.webp",981,551,{"page_no":19,"url":157,"width":158,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8f5535c2928604ace3cbfa992f2b9ea7.webp",980,{"list":160,"token":66},[161,167,174,180,187,193,199,205,211,217],{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":39,"category_name":30,"create_tm":166},656164,"Exploring the GPU Architecture - Overview - To Conclude","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975302086/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=%2BsV3UPxab%2FH44k2Dx%2FIjkXNJyP4%3D","exploring-the-gpu-architecture-overview-to-conclude",1792966818,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":172,"category_name":30,"create_tm":173},81969,"An Introduction and Tutorial for the Beagle Framework","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808657397/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=PcNzGEAR2uOaIDgPK47%2FKLcY4yg%3D","an-introduction-and-tutorial-for-the-beagle-framework",23,1784177334,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":52,"category_name":30,"create_tm":179},672776,"NVIDIA A100 Tensor Core GPU - Datasheet - Jun20","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989600587/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=sq6%2Fu7WyvIhlTjCRb3pH%2BTUaTsQ%3D","nvidia-a100-tensor-core-gpu-datasheet-jun20",1793607139,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":30,"create_tm":186},347907,"Stringing the Beads - Simplified Weaving with the PEACOCK 6-INCH LOOM","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911051260/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=YcZeyLC9T189c41CGSXCTKxpce8%3D","stringing-the-beads-simplified-weaving-with-the-peacock-6-inch-loom",12,1790069740,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":81,"category_name":30,"create_tm":192},698127,"Using GPUs at the CHPC - SLURM and GPU Job Workflow Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010204243/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=X67qOD8JLA31Fzwhj8w3srfnbWY%3D","using-gpus-at-the-chpc-slurm-and-gpu-job-workflow-guide",1794448652,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":24,"category_name":30,"create_tm":198},685892,"Medusa - Simplified Graph Processing on GPUs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000264962/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=OZpeqFwavdvGQmnw%2FBhrXgA6tyM%3D","medusa-simplified-graph-processing-on-gpus",1794021609,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":29,"category_name":30,"create_tm":204},685889,"NVIDIA Turing GPU Architecture - WP-09183-001 - whitepaper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999709761/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=sBS6hz68hyCP4JaEA5Ss4POf8z0%3D","nvidia-turing-gpu-architecture-wp-09183-001-whitepaper",1794021604,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":39,"category_name":30,"create_tm":210},347900,"Apache Beadwork Loom - Directions for Using the Apache Beadwork Loom","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911051034/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=MwUR8ZASHwIkdo4WDy6i8dfT5I8%3D","apache-beadwork-loom-directions-for-using-the-apache-beadwork-loom",1790069723,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":52,"category_name":30,"create_tm":216},656163,"amd-cdna-3-white-paper - Introducing AMD CDNA™ 3 Architecture","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974786316/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=HAhCQIg3EIrbKMbEN8zZ%2Fr8C7vI%3D","amd-cdna-3-white-paper-introducing-amd-cdna-3-architecture",1792966817,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":46,"category_name":30,"create_tm":222},85802,"FlashBEV Fast and Memory-Efficient Exact BEV Transformation with IO-Awareness","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809485824/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796119739&Signature=j9Pkpv5KMSUVqSQXKW4onQmtMzs%3D","flashbev-fast-and-memory-efficient-exact-bev-transformation-with-io-awareness",1784206357]