欢迎来到天天文库
浏览记录
ID:39256938
大小:1.58 MB
页数:31页
时间:2019-06-28
《The CUDA Compiler Driver NVCC英文文献资料》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、TheCUDACompilerDriverNVCCLastmodifiedon:<04-01-2008>DocumentChangeHistoryVersionDateResponsibleReasonforChangebeta01-15-2007JuulVanderSpekInitialrelease0.105-25-2007JuulVanderSpekCUDA0.1release1.006-13-2007JuulVanderSpekCUDA1.0release1.110-12-2007JuulVanderSpekCUDA1.1release2.004-01-2
2、008JuulVanderSpekCUDA2.0releasenvcc.docV2.0iiApril,2006IntroductionOverviewCUDAprogrammingmodelTheCUDAToolkittargetsaclassofapplicationswhosecontrolpartrunsasaprocessonageneralpurposecomputer(Linux,Windows),andwhichuseoneormoreNVIDIAGPUsascoprocessorsforacceleratingSIMDparalleljobs.Su
3、chjobsare‘self-contained’,inthesensethattheycanbeexecutedandcompletedbyabatchofGPUthreadsentirelywithoutinterventionbythe‘host’process,therebygainingoptimalbenefitfromtheparallelgraphicshardware.DispatchingGPUjobsbythehostprocessissupportedbytheCUDAToolkitintheformofremoteprocedurecal
4、ling.TheGPUcodeisimplementedasacollectionoffunctionsinalanguagethatisessentially‘C’,butwithsomeannotationsfordistinguishingthemfromthehostcode,plusannotationsfordistinguishingdifferenttypesofdatamemorythatexistsontheGPU.Suchfunctionsmayhaveparameters,andtheycanbe‘called’usingasyntaxth
5、atisverysimilartoregularCfunctioncalling,butslightlyextendedforbeingabletospecifythematrixofGPUthreadsthatmustexecutethe‘called’function.Duringitslifetime,thehostprocessmaydispatchmanyparallelGPUtasks.SeeFigure1.CUDAsourcesHence,sourcefilesforCUDAapplicationsconsistofamixtureofconvent
6、ionalC++‘host’code,plusGPU‘device’(i.e.GPU-)functions.TheCUDAcompilationtrajectoryseparatesthedevicefunctionsfromthehostcode,compilesthedevicefunctionsusingproprietaryNVIDIAcompilers/assemblers,compilesthehostcodeusingageneralpurposeC/C++compilerthatisavailableonthehostplatform,andaft
7、erwardsembedsthecompiledGPUfunctionsasloadimagesinthehostobjectfile.Inthelinkingstage,specificCUDAruntimelibrariesareaddedforsupportingremoteSIMDprocedurecallingandforprovidingexplicitGPUmanipulationsuchasallocationofGPUmemorybuffersandhost-GPUdatatransfer.PurposeofnvccThiscompilation
8、traje
此文档下载收益归作者所有