CUDA Graph 在 TensorFlow 中的应用.pdf

编号:29460 PDF 28页 804.39KB 下载积分:VIP专享
下载报告请您先登录!

CUDA Graph 在 TensorFlow 中的应用.pdf

1、#page#CONTENTWhats CUDA GraphHow to Use CUDA GraphLaunch Overhead in TensorFlowIntegrate CUDA Graph into TensorFlowPerformance#page#WHATS CUDA GRAPHWhat Problem CUDA Graph SolvesReduce Launch OverheadsDBgraph launchBD#page#WHATS CUDA GRAPHStream Launch vs Graph LaunchStream LaunchStreamQueuesExecuti

2、onGrfdManagementCUDAA)BlockAO0WSs22BlockA1Dxx6,s2()SM1GrCompetionhttps:/dem/gtc/2020/video/s21760#page#WHATS CUDA GRAPHStream Launch vs Graph LaunchGraph Launch (Pre-Ampere)CUDA Graph LaunchStreamQucuesGridManagementExecutionBlockAOSMOBlockA1SM1cudaGraphLuanchg1,51)mOther DependenciesGrid Completion

3、https:/dem/gtc/2020/ido/21760#page#page#WHATS CUDA GRAPHStream Launch vs Graph LaunchLaunch overhead comparison (test using empty kernel)A100 GPU *Graph with 32 nodesgraphstreamPatternhost(ms) device (ms)host(ms)device (ms)host speedupdevice speedup4.4314.72.21striaght line28.1265.2560.672two branch

4、es21.85.43.1715.4769.2583.4693.7521.97.63fork andjoin4.2821.32161.79#page#HOW TO USE CUDA GRAPH口 Define a CUDA Graph口 Stream Capture口 CUDA Graph API口Instantiate a CUDA Graph口Call cudaGraphlnstantiate()口Launch the CUDA Graph executable instance口Call cudaGraphLaunch(.)https:/docCUDARTGRAPH.html#page#H

5、OW TO USE CUDA GRAPHDefine a CUDA GraphStream CaptureGraph APIScudaStreamBeginCapture(stream1)/Createthegraphitstartsstream2emptystreamcudaGrapnCrtcudaEventRecordevent1,stream1nt1)anodeParams)BcudaEventRecordlevent2.stream2)/ Now set up dependencies on each node/A-BcudaGraphAddDependencies(sraph,a,8

6、c,/A-Cdssuudppudeep/B-DcudaGraphAddDependenciesgraph,ac,ad,1)/C-D/End capture in the origin stream#page#HOW TO USE CUDA GRAPHCUDA Graph Node TypesKernelCPU function callMemory copyMemsetEmpty nodeChild graph#page#LAUNCH OVERHEAD IN TENSORFLOWTF op SchedulingNode A is ready to Runready_nodes = A,Call

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(CUDA Graph 在 TensorFlow 中的应用.pdf)为本站 (X-iao) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠