16 1.4 EventManagement RT ............................................................................................................................... 17 1.4.1 cudaEventCreate ............................................................................................................................ 18 1.4.2 cudaEventRecord ........................................................................................................................... 19 1.4.3 cudaEventQuery ............................................................................................................................. 20 1.4.4 cudaEventSynchronize ................................................................................................................... 21 1.4.5 cudaEventDestroy .......................................................................................................................... 22 1.4.6 cudaEventElapsedTime .................................................................................................................. 23 1.5 MemoryManagement RT ........................................................................................................................... 24 1.5.1 cudaMalloc .................................................................................................................................... 25 1.5.2 cudaMallocPitch ............................................................................................................................ 26 1.5.3 cudaFree ........................................................................................................................................ 27 1.5.4 cudaMallocArray ........................................................................................................................... 28 1.5.5 cudaFreeArray ............................................................................................................................... 29 1.5.6 cudaMallocHost ............................................................................................................................. 30 1.5.7 cudaFreeHost ................................................................................................................................. 31 1.5.8 cudaMemset ................................................................................................................................... 32 1.5.9 cudaMemset2D .............................................................................................................................. 33 ii 1.5.10 cudaMemcpy .............................................................................................................................. 34 1.5.11 cudaMemcpy2D ......................................................................................................................... 35 1.5.12 cudaMemcpyToArray ................................................................................................................. 36 1.5.13 cudaMemcpy2DToArray ............................................................................................................ 37 1.5.14 cudaMemcpyFromArray ............................................................................................................. 38 1.5.15 cudaMemcpy2DFromArray ........................................................................................................ 39 1.5.16 cudaMemcpyArrayToArray ........................................................................................................ 40 1.5.17 cudaMemcpy2DArrayToArray .................................................................................................... 41 1.5.18 cudaMemcpyToSymbol .............................................................................................................. 42 1.5.19 cudaMemcpyFromSymbol .......................................................................................................... 43 1.5.20 cudaGetSymbolAddress .............................................................................................................. 44 1.5.21 cudaGetSymbolSize .................................................................................................................... 45 1.5.22 cudaMalloc3D ............................................................................................................................ 46 1.5.23 cudaMalloc3DArray ................................................................................................................... 48 1.5.24 cudaMemset3D ........................................................................................................................... 50 1.5.25 cudaMemcpy3D ......................................................................................................................... 52 1.6 TextureReferenceManagement RT ........................................................................................................... 54 1.6.1 LowLevelApi ............................................................................................................................... 55 1.6.2 HighLevelApi ............................................................................................................................... 63 1.7 ExecutionControl RT ............................................................................................................................... 68 1.7.1 cudaConfigureCall ........................................................................................................................ 69 1.7.2 cudaLaunch .................................................................................................................................. 70 1.7.3 cudaSetupArgument ..................................................................................................................... 71 1.8 OpenGlInteroperability RT ...................................................................................................................... 72 1.8.1 cudaGLSetGLDevice .................................................................................................................... 73 1.8.2 cudaGLRegisterBufferObject ........................................................................................................ 74 1.8.3 cudaGLMapBufferObject ............................................................................................................. 75 1.8.4 cudaGLUnmapBufferObject ......................................................................................................... 76 1.8.5 cudaGLUnregisterBufferObject .................................................................................................... 77 1.9 Direct3dInteroperability RT ..................................................................................................................... 78 1.9.1 cudaD3D9SetDirect3DDevice ....................................................................................................... 79 1.9.2 cudaD3D9GetDirect3DDevice ...................................................................................................... 80 1.9.3 cudaD3D9RegisterResource ......................................................................................................... 81 1.9.4 cudaD3D9UnregisterResource ...................................................................................................... 83 v 1.9.5 cudaD3D9MapResources ...............................................................................................................84 1.9.6 cudaD3D9UnmapResources ...........................................................................................................85 1.9.7 cudaD3D9ResourceSetMapFlags ....................................................................................................86 1.9.8 cudaD3D9ResourceGetSurfaceDimensions .....................................................................................88 1.9.9 cudaD3D9ResourceGetMappedPointer ...........................................................................................89 1.9.10 cudaD3D9ResourceGetMappedSize .............................................................................................90 1.9.11 cudaD3D9ResourceGetMappedPitch ............................................................................................91 1.9.12 cudaD3D9Begin ...........................................................................................................................92 1.9.13 cudaD3D9End ..............................................................................................................................93 1.9.14 cudaD3D9RegisterVertexBuffer ...................................................................................................94 1.9.15 cudaD3D9MapVertexBuffer .........................................................................................................95 1.9.16 cudaD3D9UnmapVertexBuffer ....................................................................................................96 1.9.17 cudaD3D9UnregisterVertexBuffer ................................................................................................97 1.9.18 cudaD3D9GetDevice ....................................................................................................................98 1.10 ErrorHandling RT ...................................................................................................................................99 1.10.1 cudaGetLastError ....................................................................................................................... 100 1.10.2 cudaGetErrorString .................................................................................................................... 102 2 DriverApiReference 103 2.1 Initialization ............................................................................................................................................ 104 2.1.1 cuInit ........................................................................................................................................... 105 2.2 DeviceManagement ................................................................................................................................. 106 2.2.1 cuDeviceComputeCapability ........................................................................................................ 107 2.2.2 cuDeviceGet ................................................................................................................................ 108 2.2.3 cuDeviceGetAttribute ................................................................................................................... 109 2.2.4 cuDeviceGetCount ....................................................................................................................... 111 2.2.5 cuDeviceGetName ....................................................................................................................... 112 2.2.6 cuDeviceGetProperties ................................................................................................................. 113 2.2.7 cuDeviceTotalMem ...................................................................................................................... 115 2.3 ContextManagement ............................................................................................................................... 116 2.3.1 cuCtxAttach ................................................................................................................................. 117 2.3.2 cuCtxCreate ................................................................................................................................. 118 2.3.3 cuCtxDetach ................................................................................................................................ 120 2.3.4 cuCtxGetDevice ........................................................................................................................... 121 v 2.3.5 cuCtxPopCurrent ......................................................................................................................... 122 2.3.6 cuCtxPushCurrent ........................................................................................................................ 123 2.3.7 cuCtxSynchronize ........................................................................................................................ 124 2.4 ModuleManagement ............................................................................................................................... 125 2.4.1 cuModuleGetFunction ................................................................................................................. 126 2.4.2 cuModuleGetGlobal .................................................................................................................... 127 2.4.3 cuModuleGetTexRef ................................................................................................................... 128 2.4.4 cuModuleLoad ............................................................................................................................ 129 2.4.5 cuModuleLoadData ..................................................................................................................... 130 2.4.6 cuModuleLoadFatBinary ............................................................................................................. 131 2.4.7 cuModuleUnload ......................................................................................................................... 132 2.5 StreamManagement ................................................................................................................................ 133 2.5.1 cuStreamCreate ........................................................................................................................... 134 2.5.2 cuStreamDestroy ......................................................................................................................... 135 2.5.3 cuStreamQuery ............................................................................................................................ 136 2.5.4 cuStreamDestroy ......................................................................................................................... 137 2.6 EventManagement .................................................................................................................................. 138 2.6.1 cuEventCreate ............................................................................................................................. 139 2.6.2 cuEventDestroy ........................................................................................................................... 140 2.6.3 cuEventElapsedTime ................................................................................................................... 141 2.6.4 cuEventQuery .............................................................................................................................. 142 2.6.5 cuEventRecord ............................................................................................................................ 143 2.6.6 cuEventSynchronize .................................................................................................................... 144 2.7 ExecutionControl .................................................................................................................................... 145 2.7.1 cuLaunch ..................................................................................................................................... 146 2.7.2 cuLaunchGrid .............................................................................................................................. 147 2.7.3 cuParamSetSize ........................................................................................................................... 148 2.7.4 cuParamSetTexRef ...................................................................................................................... 149 2.7.5 cuParamSetf ................................................................................................................................ 150 2.7.6 cuParamSeti ................................................................................................................................ 151 2.7.7 cuParamSetv ................................................................................................................................ 152 2.7.8 cuFuncSetBlockShape ................................................................................................................. 153 2.7.9 cuFuncSetSharedSize ................................................................................................................... 154 2.8 MemoryManagement .............................................................................................................................. 155 v 2.8.1 cuArrayCreate ............................................................................................................................. 156 2.8.2 cuArrayDestroy ........................................................................................................................... 158 2.8.3 cuArrayGetDescriptor .................................................................................................................. 159 2.8.4 cuMemAlloc ................................................................................................................................ 160 2.8.5 cuMemAllocHost ........................................................................................................................ 161 2.8.6 cuMemAllocPitch ........................................................................................................................ 162 2.8.7 cuMemFree ................................................................................................................................. 164 2.8.8 cuMemFreeHost .......................................................................................................................... 165 2.8.9 cuMemGetAddressRange ............................................................................................................ 166 2.8.10 cuMemGetInfo .......................................................................................................................... 167 2.8.11 cuMemcpy2D ............................................................................................................................ 168 2.8.12 cuMemcpy3D ............................................................................................................................ 171 2.8.13 cuMemcpyAtoA ........................................................................................................................ 174 2.8.14 cuMemcpyAtoD ........................................................................................................................ 175 2.8.15 cuMemcpyAtoH ........................................................................................................................ 176 2.8.16 cuMemcpyDtoA ........................................................................................................................ 177 2.8.17 cuMemcpyDtoD ........................................................................................................................ 178 2.8.18 cuMemcpyDtoH ........................................................................................................................ 179 2.8.19 cuMemcpyHtoA ........................................................................................................................ 180 2.8.20 cuMemcpyHtoD ........................................................................................................................ 181 2.8.21 cuMemset .................................................................................................................................. 182 2.8.22 cuMemset2D ............................................................................................................................. 183 2.9 TextureReferenceManagement ................................................................................................................ 184 2.9.1 cuTexRefCreate ........................................................................................................................... 185 2.9.2 cuTexRefDestroy ......................................................................................................................... 186 2.9.3 cuTexRefGetAddress ................................................................................................................... 187 2.9.4 cuTexRefGetAddressMode .......................................................................................................... 188 2.9.5 cuTexRefGetArray ...................................................................................................................... 189 2.9.6 cuTexRefGetFilterMode .............................................................................................................. 190 2.9.7 cuTexRefGetFlags ....................................................................................................................... 191 2.9.8 cuTexRefGetFormat .................................................................................................................... 192 2.9.9 cuTexRefSetAddress ................................................................................................................... 193 2.9.10 cuTexRefSetAddressMode ......................................................................................................... 194 2.9.11 cuTexRefSetArray ..................................................................................................................... 195 vii 2.9.12 cuTexRefSetFilterMode ............................................................................................................. 196 2.9.13 cuTexRefSetFlags ...................................................................................................................... 197 2.9.14 cuTexRefSetFormat .................................................................................................................... 198 2.10 OpenGlInteroperability .......................................................................................................................... 199 2.10.1 cuGLCtxCreate .......................................................................................................................... 200 2.10.2 cuGLInit .................................................................................................................................... 201 2.10.3 cuGLMapBufferObject ............................................................................................................... 202 2.10.4 cuGLRegisterBufferObject ......................................................................................................... 203 2.10.5 cuGLUnmapBufferObject .......................................................................................................... 204 2.10.6 cuGLUnregisterBufferObject ...................................................................................................... 205 2.11 Direct3dInteroperability ........................................................................................................................ 206 2.11.1 cuD3D9CtxCreate ...................................................................................................................... 207 2.11.2 cuD3D9GetDirect3DDevice ....................................................................................................... 208 2.11.3 cuD3D9RegisterResource ........................................................................................................... 209 2.11.4 cuD3D9UnregisterResource ....................................................................................................... 211 2.11.5 cuD3D9MapResources ............................................................................................................... 212 2.11.6 cuD3D9UnmapResources ........................................................................................................... 213 2.11.7 cuD3D9ResourceSetMapFlags ................................................................................................... 214 2.11.8 cuD3D9ResourceGetSurfaceDimensions .................................................................................... 215 2.11.9 cuD3D9ResourceGetMappedPointer .......................................................................................... 216 2.11.10 cuD3D9ResourceGetMappedSize ............................................................................................. 217 2.11.11 cuD3D9ResourceGetMappedPitch ............................................................................................ 218 2.11.12cuD3D9Begin ........................................................................................................................... 219 2.11.13cuD3D9End .............................................................................................................................. 220 2.11.14cuD3D9GetDevice .................................................................................................................... 221 2.11.15cuD3D9MapVertexBuffer ......................................................................................................... 222 2.11.16 cuD3D9RegisterVertexBuffer ................................................................................................... 223 2.11.17 cuD3D9UnmapVertexBuffer .................................................................................................... 224 2.11.18 cuD3D9UnregisterVertexBuffer ............................................................................................... 225 3 AtomicFunctions 226 3.1 ArithmeticFunctions ................................................................................................................................ 227 3.1.1 atomicAdd ................................................................................................................................... 228 3.1.2 atomicSub .................................................................................................................................... 229 vii 3.1.3 atomicExch ................................................................................................................................. 230 3.1.4 atomicMin ................................................................................................................................... 231 3.1.5 atomicMax .................................................................................................................................. 232 3.1.6 atomicInc .................................................................................................................................... 233 3.1.7 atomicDec ................................................................................................................................... 234 3.1.8 atomicCAS .................................................................................................................................. 235 3.2 BitwiseFunctions .................................................................................................................................... 236 3.2.1 atomicAnd ................................................................................................................................... 237 3.2.2 atomicOr ..................................................................................................................................... 238 3.2.3 atomicXor ...............................................................................................................................
- 缇娜普朗斯特2015-06-25感谢分享,尽微薄之力,服务人民
- 粉丝: 0
- 资源: 6
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 鼠标连点器,最高350CPS
- 恒压供水图纸程序 西门子 恒压供水图纸 程序仅供参考 2. HMI画面,一拖二加一,一拖三加一,一拖四加一,一拖五加一; 3.程序设计,一拖三加一,一拖五加一 4.西门子默认sm
- video_250111_202128.mp4
- 该套程序是正压检漏机程序,总共有9个 A6总线伺服电机,6个总线步进电机,采用EtherCAT总线控制, PLC:基恩士KV-8000,伺服:松下A6总线型伺服,这是已经在量产的程序,标准程序框架可以
- video_250111_062526.mp4
- 西门子1200PLC加KTP触摸屏画面博途程序案例,博图版本V16,程序具体为电池涂布机浆料输送系统新能源项目 程序结构分: 1.配料系统物料分配输送 2.模拟量转,监测
- 西门子1200PLC博途程序,博图版本V14及以上,具体为双行星动力搅拌桨混合机项目,有画面案例,硬件采用-S7-1200PLC加西门子KTP触摸屏 程序结构包括: 1.配料系统物料分
- 西门子1200博途程序与威纶触摸屏画面实例 ,博图版本V15及以上,内容涉及上位机通讯,modbus485,伺服等 具体有: 1,西门子1200控制4台步进电机; 2,西门子1200与4台MS300
- Labview屏幕分辨率判断
- 多目标粒子群算法CCHP联供综合能源系统 说明书MATLAB代码:基于多目标粒子群算法冷热电联供综合能源系统运行优化关键词:综合能源 冷热电三联供 粒子群算法 多目标优化参考文档:基于多目标算法的
- 威纶通触摸屏配方管理模板(送电气助手) 文件内包含全部图库、原图、PS原文件 威纶通触摸屏例子、宏程序(带详细注释)
- 三相有源电力滤器APF仿真 波形从上到下分别是: 电网电流 APF电流 整流性负载电流 APF能够保证电网电流成正弦
- matlab运用遗传算法求解多配送中心选址问题(可以考虑备选地容量,备选地储存费用,备选地固定建设成本,运输成本等)(可代做类似的算法代码 保证打开就能运行,数据可任意修改
- 2023-04-06-项目笔记 - 第三百七十六阶段 - 4.4.2.374全局变量的作用域-374 -2025.01.12
- No.1025 基于S7-200 PLC和MCGS组态洗衣机控制系统 带解释的梯形图程序,接线图原理图图纸,io分配,组态画面
- 高频注入 STM32永磁同步电机Simulink自动代码生成 霍尔FOC 模型+Keil集成工程+生成代码教学视频