Cuda Driver Api
Total Page:16
File Type:pdf, Size:1020Kb
CUDA DRIVER API TRM-06703-001 _v8.0 | February 2016 API Reference Manual TABLE OF CONTENTS Chapter 1. Difference between the driver and runtime APIs...........................................1 Chapter 2. API synchronization behavior................................................................... 3 Chapter 3. Stream synchronization behavior.............................................................. 5 Chapter 4. Modules.............................................................................................. 7 4.1. Data types used by CUDA driver....................................................................... 8 CUDA_ARRAY3D_DESCRIPTOR...............................................................................9 CUDA_ARRAY_DESCRIPTOR.................................................................................. 9 CUDA_MEMCPY2D.............................................................................................9 CUDA_MEMCPY3D.............................................................................................9 CUDA_MEMCPY3D_PEER..................................................................................... 9 CUDA_POINTER_ATTRIBUTE_P2P_TOKENS................................................................ 9 CUDA_RESOURCE_DESC......................................................................................9 CUDA_RESOURCE_VIEW_DESC.............................................................................. 9 CUDA_TEXTURE_DESC....................................................................................... 9 CUdevprop.....................................................................................................9 CUeglFrame................................................................................................... 9 CUipcEventHandle........................................................................................... 9 CUipcMemHandle.............................................................................................9 CUstreamBatchMemOpParams............................................................................. 9 CUaddress_mode............................................................................................. 9 CUarray_cubemap_face....................................................................................10 CUarray_format............................................................................................. 10 CUcomputemode............................................................................................11 CUctx_flags.................................................................................................. 11 CUdevice_attribute.........................................................................................11 CUdevice_P2PAttribute.................................................................................... 16 CUeglColorFormat.......................................................................................... 17 CUeglFrameType............................................................................................ 18 CUeglResourceLocationFlags.............................................................................. 18 CUevent_flags............................................................................................... 18 CUfilter_mode...............................................................................................18 CUfunc_cache............................................................................................... 19 CUfunction_attribute...................................................................................... 19 CUgraphicsMapResourceFlags............................................................................. 20 CUgraphicsRegisterFlags................................................................................... 20 CUipcMem_flags.............................................................................................20 CUjit_cacheMode........................................................................................... 20 CUjit_fallback............................................................................................... 21 CUjit_option................................................................................................. 21 CUjit_target................................................................................................. 23 www.nvidia.com CUDA Driver API TRM-06703-001 _v8.0 | ii CUjitInputType.............................................................................................. 23 CUlimit....................................................................................................... 24 CUmem_advise.............................................................................................. 24 CUmemAttach_flags........................................................................................25 CUmemorytype..............................................................................................25 CUoccupancy_flags......................................................................................... 25 CUpointer_attribute........................................................................................26 CUresourcetype............................................................................................. 26 CUresourceViewFormat.................................................................................... 26 CUresult...................................................................................................... 28 CUsharedconfig............................................................................................. 33 CUstream_flags............................................................................................. 33 CUstreamBatchMemOpType............................................................................... 33 CUstreamWaitValue_flags................................................................................. 34 CUstreamWriteValue_flags................................................................................ 34 CUarray.......................................................................................................34 CUcontext....................................................................................................34 CUdevice..................................................................................................... 35 CUdeviceptr................................................................................................. 35 CUeglStreamConnection................................................................................... 35 CUevent...................................................................................................... 35 CUfunction................................................................................................... 35 CUgraphicsResource........................................................................................ 35 CUmipmappedArray........................................................................................ 35 CUmodule.................................................................................................... 35 CUoccupancyB2DSize.......................................................................................35 CUstream.....................................................................................................36 CUstreamCallback.......................................................................................... 36 CUsurfObject................................................................................................ 36 CUsurfref.....................................................................................................36 CUtexObject.................................................................................................36 CUtexref......................................................................................................36 CU_DEVICE_CPU.............................................................................................36 CU_DEVICE_INVALID........................................................................................ 36 CU_IPC_HANDLE_SIZE...................................................................................... 36 CU_LAUNCH_PARAM_BUFFER_POINTER..................................................................36 CU_LAUNCH_PARAM_BUFFER_SIZE....................................................................... 37 CU_LAUNCH_PARAM_END.................................................................................. 37 CU_MEMHOSTALLOC_DEVICEMAP......................................................................... 37 CU_MEMHOSTALLOC_PORTABLE...........................................................................37 CU_MEMHOSTALLOC_WRITECOMBINED.................................................................. 37 CU_MEMHOSTREGISTER_DEVICEMAP..................................................................... 37 CU_MEMHOSTREGISTER_IOMEMORY...................................................................... 37 www.nvidia.com CUDA Driver API TRM-06703-001 _v8.0 | iii CU_MEMHOSTREGISTER_PORTABLE.......................................................................38 CU_PARAM_TR_DEFAULT................................................................................... 38 CU_STREAM_LEGACY....................................................................................... 38 CU_STREAM_PER_THREAD................................................................................