Crate simt_cuda_sys

Source

Re-exports§

pub use self::CUstreamBatchMemOpType_enum as CUstreamBatchMemOpType;
pub use self::CUarray_format_enum as CUarray_format;
pub use self::CUaddress_mode_enum as CUaddress_mode;
pub use self::CUfilter_mode_enum as CUfilter_mode;
pub use self::CUdevice_attribute_enum as CUdevice_attribute;
pub use self::CUpointer_attribute_enum as CUpointer_attribute;
pub use self::CUfunction_attribute_enum as CUfunction_attribute;
pub use self::CUfunc_cache_enum as CUfunc_cache;
pub use self::CUsharedconfig_enum as CUsharedconfig;
pub use self::CUmemorytype_enum as CUmemorytype;
pub use self::CUmem_advise_enum as CUmem_advise;
pub use self::CUmem_range_attribute_enum as CUmem_range_attribute;
pub use self::CUjit_option_enum as CUjit_option;
pub use self::CUjitInputType_enum as CUjitInputType;
pub use self::CUlimit_enum as CUlimit;
pub use self::CUresourcetype_enum as CUresourcetype;
pub use self::CUaccessProperty_enum as CUaccessProperty;
pub use self::CUgraphNodeType_enum as CUgraphNodeType;
pub use self::CUgraphInstantiateResult_enum as CUgraphInstantiateResult;
pub use self::CUsynchronizationPolicy_enum as CUsynchronizationPolicy;
pub use self::CUclusterSchedulingPolicy_enum as CUclusterSchedulingPolicy;
pub use self::CUlaunchMemSyncDomain_enum as CUlaunchMemSyncDomain;
pub use self::CUlaunchAttributeID_enum as CUlaunchAttributeID;
pub use self::CUlaunchAttributeID as CUkernelNodeAttrID;
pub use self::CUstreamCaptureStatus_enum as CUstreamCaptureStatus;
pub use self::CUlaunchAttributeID as CUstreamAttrID;
pub use self::CUstreamCaptureMode_enum as CUstreamCaptureMode;
pub use self::CUdriverProcAddressQueryResult_enum as CUdriverProcAddressQueryResult;
pub use self::CUexecAffinityType_enum as CUexecAffinityType;
pub use self::CUlibraryOption_enum as CUlibraryOption;
pub use self::cudaError_enum as CUresult;
pub use self::CUdevice_P2PAttribute_enum as CUdevice_P2PAttribute;
pub use self::CUresourceViewFormat_enum as CUresourceViewFormat;
pub use self::CUtensorMapDataType_enum as CUtensorMapDataType;
pub use self::CUtensorMapInterleave_enum as CUtensorMapInterleave;
pub use self::CUtensorMapSwizzle_enum as CUtensorMapSwizzle;
pub use self::CUtensorMapL2promotion_enum as CUtensorMapL2promotion;
pub use self::CUtensorMapFloatOOBfill_enum as CUtensorMapFloatOOBfill;
pub use self::CUexternalMemoryHandleType_enum as CUexternalMemoryHandleType;
pub use self::CUexternalSemaphoreHandleType_enum as CUexternalSemaphoreHandleType;
pub use self::CUmemAllocationHandleType_enum as CUmemAllocationHandleType;
pub use self::CUmemAccess_flags_enum as CUmemAccess_flags;
pub use self::CUmemLocationType_enum as CUmemLocationType;
pub use self::CUmemAllocationType_enum as CUmemAllocationType;
pub use self::CUmemAllocationGranularity_flags_enum as CUmemAllocationGranularity_flags;
pub use self::CUmemRangeHandleType_enum as CUmemRangeHandleType;
pub use self::CUarraySparseSubresourceType_enum as CUarraySparseSubresourceType;
pub use self::CUmemOperationType_enum as CUmemOperationType;
pub use self::CUmemHandleType_enum as CUmemHandleType;
pub use self::CUgraphExecUpdateResult_enum as CUgraphExecUpdateResult;
pub use self::CUmemPool_attribute_enum as CUmemPool_attribute;
pub use self::CUgraphMem_attribute_enum as CUgraphMem_attribute;
pub use self::CUflushGPUDirectRDMAWritesScope_enum as CUflushGPUDirectRDMAWritesScope;
pub use self::CUflushGPUDirectRDMAWritesTarget_enum as CUflushGPUDirectRDMAWritesTarget;
pub use self::CUmoduleLoadingMode_enum as CUmoduleLoadingMode;

Structs§

CUDA_ARRAY3D_DESCRIPTOR_st
3D array descriptor
CUDA_ARRAY_DESCRIPTOR_st
Array descriptor
CUDA_ARRAY_MEMORY_REQUIREMENTS_st
CUDA array memory requirements
CUDA_ARRAY_SPARSE_PROPERTIES_st
CUDA array sparse properties
CUDA_ARRAY_SPARSE_PROPERTIES_st__bindgen_ty_1
CUDA_BATCH_MEM_OP_NODE_PARAMS_st
CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st
External memory buffer descriptor
CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st
External memory handle descriptor
CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st__bindgen_ty_1__bindgen_ty_1
Win32 handle referencing the semaphore object. Valid when type is one of the following:
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st
External memory mipmap descriptor
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st
External semaphore handle descriptor
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st__bindgen_ty_1__bindgen_ty_1
Win32 handle referencing the semaphore object. Valid when type is one of the following:
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st
External semaphore signal parameters
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st__bindgen_ty_1
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st__bindgen_ty_1__bindgen_ty_1
Parameters for fence objects
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st__bindgen_ty_1__bindgen_ty_3
Parameters for keyed mutex objects
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st
External semaphore wait parameters
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st__bindgen_ty_1
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st__bindgen_ty_1__bindgen_ty_1
Parameters for fence objects
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st__bindgen_ty_1__bindgen_ty_3
Parameters for keyed mutex objects
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st
Semaphore signal node parameters
CUDA_EXT_SEM_WAIT_NODE_PARAMS_st
Semaphore wait node parameters
CUDA_GRAPH_INSTANTIATE_PARAMS_st
Graph instantiation parameters
CUDA_HOST_NODE_PARAMS_st
Host node parameters
CUDA_KERNEL_NODE_PARAMS_v2_st
GPU kernel node parameters
CUDA_LAUNCH_PARAMS_st
Kernel launch parameters
CUDA_MEMCPY2D_st
2D memory copy parameters
CUDA_MEMCPY3D_PEER_st
3D memory cross-context copy parameters
CUDA_MEMCPY3D_st
3D memory copy parameters
CUDA_MEMSET_NODE_PARAMS_st
Memset node parameters
CUDA_MEM_ALLOC_NODE_PARAMS_st
Memory allocation node parameters
CUDA_RESOURCE_DESC_st
CUDA Resource descriptor
CUDA_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_1
CUDA_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_2
CUDA_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_3
CUDA_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_4
CUDA_RESOURCE_DESC_st__bindgen_ty_1__bindgen_ty_5
CUDA_RESOURCE_VIEW_DESC_st
Resource view descriptor
CUDA_TEXTURE_DESC_st
Texture descriptor
CUaccessPolicyWindow_st
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes. num_bytes is limited by CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE. Partition into many segments and assign segments such that: sum of “hit segments” / window == approx. ratio. sum of “miss segments” / window == approx 1-ratio. Segments and ratio specifications are fitted to the capabilities of the architecture. Accesses in a hit segment apply the hitProp access policy. Accesses in a miss segment apply the missProp access policy.
CUarrayMapInfo_st
Specifies the CUDA array or CUDA mipmapped array memory mapping information
CUarrayMapInfo_st__bindgen_ty_2__bindgen_ty_1
CUarrayMapInfo_st__bindgen_ty_2__bindgen_ty_2
CUarray_st
CUctx_st
CUdevprop_st
Legacy device properties
CUevent_st
CUexecAffinityParam_st
Execution Affinity Parameters
CUexecAffinitySmCount_st
Value for ::CU_EXEC_AFFINITY_TYPE_SM_COUNT
CUextMemory_st
CUextSemaphore_st
CUfunc_st
CUgraphExecUpdateResultInfo_st
Result information returned by cuGraphExecUpdate
CUgraphExec_st
CUgraphNode_st
CUgraph_st
CUgraphicsResource_st
CUipcEventHandle_st
CUDA IPC event handle
CUipcMemHandle_st
CUDA IPC mem handle
CUkern_st
CUlaunchAttributeValue_union__bindgen_ty_1
CUlaunchAttributeValue_union__bindgen_ty_2
CUlaunchAttribute_st
CUlaunchConfig_st
CUlaunchMemSyncDomainMap_st
CUlib_st
CUlinkState_st
CUmemAccessDesc_st
Memory access descriptor
CUmemAllocationProp_st
Specifies the allocation properties for a allocation.
CUmemAllocationProp_st__bindgen_ty_1
CUmemLocation_st
Specifies a memory location.
CUmemPoolHandle_st
CUmemPoolProps_st
Specifies the properties of allocations made from the pool.
CUmemPoolPtrExportData_st
Opaque data for exporting a pool allocation
CUmipmappedArray_st
CUmod_st
CUstreamBatchMemOpParams_union_CUstreamMemOpFlushRemoteWritesParams_st
CUstreamBatchMemOpParams_union_CUstreamMemOpMemoryBarrierParams_st
CUstreamBatchMemOpParams_union_CUstreamMemOpWaitValueParams_st
CUstreamBatchMemOpParams_union_CUstreamMemOpWriteValueParams_st
CUstream_st
CUsurfref_st
CUtensorMap_st
Tensor map descriptor. Requires compiler support for aligning to 64 bytes.
CUtexref_st
CUuserObject_st
CUuuid_st
cuda

Enums§

CUaccessProperty_enum
Specifies performance hint with ::CUaccessPolicyWindow for hitProp and missProp members.
CUaddress_mode_enum
Texture reference addressing modes
CUarraySparseSubresourceType_enum
Sparse subresource types
CUarray_format_enum
Array formats
CUclusterSchedulingPolicy_enum
Cluster scheduling policies. These may be passed to ::cuFuncSetAttribute or ::cuKernelSetAttribute
CUdevice_P2PAttribute_enum
P2P Attributes
CUdevice_attribute_enum
Device properties
CUdriverProcAddressQueryResult_enum
Flags to indicate search status. For more details see ::cuGetProcAddress
CUexecAffinityType_enum
Execution Affinity Types
CUexternalMemoryHandleType_enum
External memory handle types
CUexternalSemaphoreHandleType_enum
External semaphore handle types
CUfilter_mode_enum
Texture reference filtering modes
CUflushGPUDirectRDMAWritesScope_enum
The scopes for ::cuFlushGPUDirectRDMAWrites
CUflushGPUDirectRDMAWritesTarget_enum
The targets for ::cuFlushGPUDirectRDMAWrites
CUfunc_cache_enum
Function cache configurations
CUfunction_attribute_enum
Function properties
CUgraphExecUpdateResult_enum
CUDA Graph Update error types
CUgraphInstantiateResult_enum
Graph instantiation results
CUgraphMem_attribute_enum
CUgraphNodeType_enum
Graph node types
CUjitInputType_enum
Device code formats
CUjit_option_enum
Online compiler and linker options
CUlaunchAttributeID_enum
CUlaunchMemSyncDomain_enum
CUlibraryOption_enum
Library options to be specified with ::cuLibraryLoadData() or ::cuLibraryLoadFromFile()
CUlimit_enum
Limits
CUmemAccess_flags_enum
Specifies the memory protection flags for mapping.
CUmemAllocationGranularity_flags_enum
Flag for requesting different optimal and required granularities for an allocation.
CUmemAllocationHandleType_enum
Flags for specifying particular handle types
CUmemAllocationType_enum
Defines the allocation types available
CUmemHandleType_enum
Memory handle types
CUmemLocationType_enum
Specifies the type of location
CUmemOperationType_enum
Memory operation types
CUmemPool_attribute_enum
CUDA memory pool attributes
CUmemRangeHandleType_enum
Specifies the handle type for address range
CUmem_advise_enum
Memory advise values
CUmem_range_attribute_enum
CUmemorytype_enum
Memory types
CUmoduleLoadingMode_enum
CUDA Lazy Loading status
CUpointer_attribute_enum
Pointer information
CUresourceViewFormat_enum
Resource view format
CUresourcetype_enum
Resource types
CUsharedconfig_enum
Shared memory configurations
CUstreamBatchMemOpType_enum
Operations for ::cuStreamBatchMemOp
CUstreamCaptureMode_enum
Possible modes for stream capture thread interactions. For more details see ::cuStreamBeginCapture and ::cuThreadExchangeStreamCaptureMode
CUstreamCaptureStatus_enum
Possible stream capture statuses returned by ::cuStreamIsCapturing
CUsynchronizationPolicy_enum
CUtensorMapDataType_enum
Tensor map data type
CUtensorMapFloatOOBfill_enum
Tensor map out-of-bounds fill type
CUtensorMapInterleave_enum
Tensor map interleave layout type
CUtensorMapL2promotion_enum
Tensor map L2 promotion type
CUtensorMapSwizzle_enum
Tensor map swizzling mode of shared memory banks
InitializeError
cudaError_enum
Error codes

Functions§

initialize
library

Type Aliases§

CUDA_ARRAY3D_DESCRIPTOR
3D array descriptor
CUDA_ARRAY3D_DESCRIPTOR_v2
3D array descriptor
CUDA_ARRAY_DESCRIPTOR
Array descriptor
CUDA_ARRAY_DESCRIPTOR_v2
Array descriptor
CUDA_ARRAY_MEMORY_REQUIREMENTS
CUDA array memory requirements
CUDA_ARRAY_MEMORY_REQUIREMENTS_v1
CUDA array memory requirements
CUDA_ARRAY_SPARSE_PROPERTIES
CUDA array sparse properties
CUDA_ARRAY_SPARSE_PROPERTIES_v1
CUDA array sparse properties
CUDA_BATCH_MEM_OP_NODE_PARAMS
CUDA_EXTERNAL_MEMORY_BUFFER_DESC
External memory buffer descriptor
CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1
External memory buffer descriptor
CUDA_EXTERNAL_MEMORY_HANDLE_DESC
External memory handle descriptor
CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1
External memory handle descriptor
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC
External memory mipmap descriptor
CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1
External memory mipmap descriptor
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
External semaphore handle descriptor
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1
External semaphore handle descriptor
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS
External semaphore signal parameters
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1
External semaphore signal parameters
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS
External semaphore wait parameters
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1
External semaphore wait parameters
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS
Semaphore signal node parameters
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1
Semaphore signal node parameters
CUDA_EXT_SEM_WAIT_NODE_PARAMS
Semaphore wait node parameters
CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1
Semaphore wait node parameters
CUDA_GRAPH_INSTANTIATE_PARAMS
Graph instantiation parameters
CUDA_HOST_NODE_PARAMS
Host node parameters
CUDA_HOST_NODE_PARAMS_v1
Host node parameters
CUDA_KERNEL_NODE_PARAMS
GPU kernel node parameters
CUDA_KERNEL_NODE_PARAMS_v2
GPU kernel node parameters
CUDA_LAUNCH_PARAMS
Kernel launch parameters
CUDA_LAUNCH_PARAMS_v1
Kernel launch parameters
CUDA_MEMCPY2D
2D memory copy parameters
CUDA_MEMCPY2D_v2
2D memory copy parameters
CUDA_MEMCPY3D
3D memory copy parameters
CUDA_MEMCPY3D_PEER
3D memory cross-context copy parameters
CUDA_MEMCPY3D_PEER_v1
3D memory cross-context copy parameters
CUDA_MEMCPY3D_v2
3D memory copy parameters
CUDA_MEMSET_NODE_PARAMS
Memset node parameters
CUDA_MEMSET_NODE_PARAMS_v1
Memset node parameters
CUDA_MEM_ALLOC_NODE_PARAMS
Memory allocation node parameters
CUDA_RESOURCE_DESC
CUDA Resource descriptor
CUDA_RESOURCE_DESC_v1
CUDA Resource descriptor
CUDA_RESOURCE_VIEW_DESC
Resource view descriptor
CUDA_RESOURCE_VIEW_DESC_v1
Resource view descriptor
CUDA_TEXTURE_DESC
Texture descriptor
CUDA_TEXTURE_DESC_v1
Texture descriptor
CUaccessPolicyWindow
Access policy window
CUaccessPolicyWindow_v1
Specifies an access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes. num_bytes is limited by CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE. Partition into many segments and assign segments such that: sum of “hit segments” / window == approx. ratio. sum of “miss segments” / window == approx 1-ratio. Segments and ratio specifications are fitted to the capabilities of the architecture. Accesses in a hit segment apply the hitProp access policy. Accesses in a miss segment apply the missProp access policy.
CUarray
CUarrayMapInfo
Specifies the CUDA array or CUDA mipmapped array memory mapping information
CUarrayMapInfo_v1
Specifies the CUDA array or CUDA mipmapped array memory mapping information
CUcontext
CUdevice
CUdevice_v1
CUdeviceptr
CUdeviceptr_v2
CUdevprop
Legacy device properties
CUdevprop_v1
Legacy device properties
CUevent
CUexecAffinityParam
Execution Affinity Parameters
CUexecAffinityParam_v1
Execution Affinity Parameters
CUexecAffinitySmCount
Value for ::CU_EXEC_AFFINITY_TYPE_SM_COUNT
CUexecAffinitySmCount_v1
Value for ::CU_EXEC_AFFINITY_TYPE_SM_COUNT
CUexternalMemory
CUexternalSemaphore
CUfunction
CUgraph
CUgraphExec
CUgraphExecUpdateResultInfo
Result information returned by cuGraphExecUpdate
CUgraphExecUpdateResultInfo_v1
Result information returned by cuGraphExecUpdate
CUgraphNode
CUgraphicsResource
CUhostFn
CUDA host function \param userData Argument value passed to the function
CUipcEventHandle
CUDA IPC event handle
CUipcEventHandle_v1
CUDA IPC event handle
CUipcMemHandle
CUDA IPC mem handle
CUipcMemHandle_v1
CUDA IPC mem handle
CUkernel
CUkernelNodeAttrValue
CUkernelNodeAttrValue_v1
Graph kernel node attributes union, used with ::cuKernelNodeSetAttribute/::cuKernelNodeGetAttribute
CUlaunchAttribute
CUlaunchAttributeValue
CUlaunchConfig
CUlaunchMemSyncDomainMap
CUlibrary
CUlinkState
CUmemAccessDesc
Memory access descriptor
CUmemAccessDesc_v1
Memory access descriptor
CUmemAllocationProp
Specifies the allocation properties for a allocation.
CUmemAllocationProp_v1
Specifies the allocation properties for a allocation.
CUmemGenericAllocationHandle
CUmemGenericAllocationHandle_v1
CUmemLocation
Specifies a memory location.
CUmemLocation_v1
Specifies a memory location.
CUmemPoolProps
Specifies the properties of allocations made from the pool.
CUmemPoolProps_v1
Specifies the properties of allocations made from the pool.
CUmemPoolPtrExportData
Opaque data for exporting a pool allocation
CUmemPoolPtrExportData_v1
Opaque data for exporting a pool allocation
CUmemoryPool
CUmipmappedArray
CUmodule
CUoccupancyB2DSize
Block size to per-block dynamic shared memory mapping for a certain kernel \param blockSize Block size of the kernel.
CUstream
CUstreamAttrValue
CUstreamAttrValue_v1
Stream attributes union, used with ::cuStreamSetAttribute/::cuStreamGetAttribute
CUstreamBatchMemOpParams
Per-operation parameters for ::cuStreamBatchMemOp
CUstreamBatchMemOpParams_v1
Per-operation parameters for ::cuStreamBatchMemOp
CUstreamCallback
CUDA stream callback \param hStream The stream the callback was added to, as passed to ::cuStreamAddCallback. May be NULL. \param status ::CUDA_SUCCESS or any persistent error on the stream. \param userData User parameter provided at registration.
CUsurfObject
CUsurfObject_v1
CUsurfref
CUtensorMap
Tensor map descriptor. Requires compiler support for aligning to 64 bytes.
CUtexObject
CUtexObject_v1
CUtexref
CUuserObject
CUuuid
cuuint32_t
cuuint64_t

Unions§

CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st__bindgen_ty_1
CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st__bindgen_ty_1
CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st__bindgen_ty_1__bindgen_ty_2
CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st__bindgen_ty_1__bindgen_ty_2
Pointer to NvSciSyncFence. Valid if CUexternalSemaphoreHandleType is of type CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC.
CUDA_RESOURCE_DESC_st__bindgen_ty_1
CUarrayMapInfo_st__bindgen_ty_1
CUarrayMapInfo_st__bindgen_ty_2
CUarrayMapInfo_st__bindgen_ty_3
CUexecAffinityParam_st__bindgen_ty_1
CUlaunchAttributeValue_union
CUstreamBatchMemOpParams_union
Per-operation parameters for ::cuStreamBatchMemOp
CUstreamBatchMemOpParams_union_CUstreamMemOpWaitValueParams_st__bindgen_ty_1
CUstreamBatchMemOpParams_union_CUstreamMemOpWriteValueParams_st__bindgen_ty_1