cuda.bindings.driver#
2026-09-24
630 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
hipJitOption |
|
hipJitOption |
|
hipJitInputType |
|
hipJitInputType |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
hipDeviceProp |
|
hipMemoryType (for pointer attributes) |
|
hipMemoryType (for pointer attributes) |
|
hipMemoryType (for pointer attributes) |
|
Pointer attributes |
|
HIP error type |
|
HIP error type |
|
HIP error type |
|
HIP error type |
|
hipDeviceAttribute_t hipDeviceAttributeUnused number: 5 |
|
hipDeviceAttribute_t hipDeviceAttributeUnused number: 5 |
|
hipDeviceAttribute_t hipDeviceAttributeUnused number: 5 |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
HIP channel format kinds |
|
HIP channel format descriptor |
|
(No short description) |
|
(No short description) |
|
HIP array format |
|
HIP array format |
|
HIP array descriptor |
|
HIP array descriptor |
|
HIP array descriptor |
|
HIP array descriptor |
|
HIP array descriptor |
|
HIP 3D array descriptor |
|
HIP 3D array descriptor |
|
HIP 3D array descriptor |
|
HIP 2D memory copy parameters |
|
HIP 2D memory copy parameters |
|
HIP 2D memory copy parameters |
|
HIP 2D memory copy parameters |
|
HIP 2D memory copy parameters |
|
HIP mipmapped array |
|
HIP mipmapped array |
|
HIP resource types |
|
(No short description) |
|
(No short description) |
|
HIP texture address modes |
|
HIP texture address modes |
|
HIP filter modes |
|
HIP filter modes |
|
HIP texture descriptor |
|
HIP texture resource view formats |
|
HIP texture resource view formats |
|
HIP texture resource view formats |
|
HIP resource descriptor |
|
HIP resource view descriptor struct |
|
HIP resource view descriptor |
|
Resource view descriptor |
|
(No short description) |
|
HIP pithed pointer |
|
HIP extent |
|
HIP position |
|
HIP 3D memory copy parameters |
|
HIP 3D memory copy |
|
HIP 3D memory copy |
|
HIP 3D memory copy |
|
HIP 3D memory copy |
|
HIP 3D memory copy |
|
Specifies the type of location |
|
Specifies the type of location |
|
Specifies the type of location |
|
Specifies a memory location. |
|
Specifies a memory location. |
|
Specifies a memory location. |
|
Specifies a memory location. |
|
Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync |
|
Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync |
|
Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync |
|
Flags to specify order in which source pointer is accessed by Batch memcpy |
|
Flags to specify order in which source pointer is accessed by Batch memcpy |
|
Flags to specify order in which source pointer is accessed by Batch memcpy |
|
Attributes for copies within a batch. |
|
Attributes for copies within a batch. |
|
Attributes for copies within a batch. |
|
Attributes for copies within a batch. |
|
Operand types for individual copies within a batch |
|
Operand types for individual copies within a batch |
|
Operand types for individual copies within a batch |
|
Struct representing offset into a hipArray_t in elements. |
|
Struct representing offset into a hipArray_t in elements. |
|
Struct representing offset into a hipArray_t in elements. |
|
Struct representing offset into a hipArray_t in elements. |
|
Struct representing an operand for copy with hipMemcpy3DBatchAsync. |
|
Struct representing an operand for copy with hipMemcpy3DBatchAsync. |
|
Struct representing an operand for copy with hipMemcpy3DBatchAsync. |
|
Struct representing an operand for copy with hipMemcpy3DBatchAsync. |
|
HIP 3D Batch Op |
|
HIP 3D Batch Op |
|
HIP 3D Batch Op |
|
HIP 3D Batch Op |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
hip texture address modes |
|
hip texture filter modes |
|
hip texture read modes |
|
hip texture reference |
|
hip texture reference |
|
hip texture descriptor |
|
hip surface reference |
|
hip surface boundary modes |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
hipLimit |
|
hipLimit |
|
hipLimit |
|
Operations for hipStreamBatchMemOp |
|
Operations for hipStreamBatchMemOp |
|
Union representing batch memory operation parameters for HIP streams. |
|
Structure representing node parameters for batch memory operations in HIP graphs. |
|
Structure representing node parameters for batch memory operations in HIP graphs. |
|
Structure representing node parameters for batch memory operations in HIP graphs. |
|
Structure representing node parameters for batch memory operations in HIP graphs. |
|
Structure representing node parameters for batch memory operations in HIP graphs. |
|
Structure representing node parameters for batch memory operations in HIP graphs. |
|
HIP Memory Advise values |
|
HIP Memory Advise values |
|
HIP Memory Advise values |
|
HIP range attributes |
|
HIP range attributes |
|
HIP range attributes |
|
HIP memory pool attributes |
|
HIP memory pool attributes |
|
HIP memory pool attributes |
|
Specifies the memory protection flags for mapping |
|
Specifies the memory protection flags for mapping |
|
Specifies the memory protection flags for mapping |
|
Memory access descriptor structure is used to specify memory access |
|
Memory access descriptor structure is used to specify memory access |
|
Memory access descriptor structure is used to specify memory access |
|
Memory access descriptor structure is used to specify memory access |
|
Defines the allocation types |
|
Defines the allocation types |
|
Defines the allocation types |
|
Flags for specifying handle types for memory pool allocations |
|
Flags for specifying handle types for memory pool allocations |
|
Flags for specifying handle types for memory pool allocations |
|
Specifies the properties of allocations made from the pool. |
|
Specifies the properties of allocations made from the pool. |
|
Specifies the properties of allocations made from the pool. |
|
Specifies the properties of allocations made from the pool. |
|
Opaque data structure for exporting a pool allocation |
|
Opaque data structure for exporting a pool allocation |
|
Opaque data structure for exporting a pool allocation |
|
Opaque data structure for exporting a pool allocation |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
On AMD devices and some Nvidia devices, these hints and controls are ignored. |
|
struct hipFunctionLaunchParams_t |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
External semaphore wait parameters, compatible with driver type |
|
HIP Access falgs for Interop resources. |
|
HIP Access falgs for Interop resources. |
|
HIP Access falgs for Interop resources. |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
hipGraphNodeType |
|
hipGraphNodeType |
|
hipGraphNodeType |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
Specifies performance hint with hipAccessPolicyWindow |
|
Specifies performance hint with hipAccessPolicyWindow |
|
Specifies performance hint with hipAccessPolicyWindow |
|
Specifies access policy for a window, a contiguous extent of memory |
|
Specifies access policy for a window, a contiguous extent of memory |
|
Specifies access policy for a window, a contiguous extent of memory |
|
Memory Synchronization Domain map |
|
Memory Synchronization Domain map |
|
Memory Synchronization Domain map |
|
Memory Synchronization Domain map |
|
Memory Synchronization Domain |
|
Memory Synchronization Domain |
|
Memory Synchronization Domain |
|
Stream Synchronization Policy. |
|
Stream Synchronization Policy. |
|
Stream Synchronization Policy. |
|
Launch Attribute ID |
|
Launch Attribute ID |
|
Launch Attribute ID |
|
Launch Attribute ID |
|
Launch Attribute ID |
|
Launch Attribute ID |
|
Launch Attribute Value |
|
Launch Attribute Value |
|
Launch Attribute Value |
|
Launch Attribute Value |
|
Launch Attribute Value |
|
Launch Attribute Value |
|
Launch Attribute Value |
|
Graph execution update result |
|
Graph execution update result |
|
Graph execution update result |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
hipGraphInstantiateWithParams results |
|
hipGraphInstantiateWithParams results |
|
hipGraphInstantiateWithParams results |
|
Graph Instantiation parameters |
|
Graph Instantiation parameters |
|
Graph Instantiation parameters |
|
Graph Instantiation parameters |
|
Memory allocation properties |
|
Memory allocation properties |
|
Memory allocation properties |
|
External semaphore signal node parameters |
|
External semaphore signal node parameters |
|
External semaphore signal node parameters |
|
External semaphore signal node parameters |
|
External semaphore signal node parameters |
|
External semaphore signal node parameters |
|
External semaphore signal node parameters |
|
External semaphore wait node parameters |
|
External semaphore wait node parameters |
|
External semaphore wait node parameters |
|
External semaphore wait node parameters |
|
External semaphore wait node parameters |
|
External semaphore wait node parameters |
|
External semaphore wait node parameters |
|
Flags for granularity |
|
Flags for granularity |
|
Memory handle type |
|
Memory handle type |
|
Memory operation types |
|
Memory operation types |
|
Subresource types for sparse arrays |
|
Subresource types for sparse arrays |
|
Map info for arrays |
|
Map info for arrays |
|
Map info for arrays |
|
Memcpy node params |
|
Memcpy node params |
|
Memcpy node params |
|
Child graph node params |
|
Child graph node params |
|
Child graph node params |
|
Event record node params |
|
Event record node params |
|
Event record node params |
|
Event record node params |
|
Event record node params |
|
Event record node params |
|
Memory free node params |
|
Memory free node params |
|
Memory free node params |
|
Params for different graph nodes |
|
Params for different graph nodes |
|
Params for different graph nodes |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
Used to specify custom attributes for launching kernels |
|
Used to specify custom attributes for launching kernels |
|
HIP extensible launch configuration |
|
HIP driver extensible launch configuration |
|
Requested handle type for address range. |
|
Requested handle type for address range. |
|
Mem Range Flags used in hipMemGetHandleForAddressRange. |
|
Mem Range Flags used in hipMemGetHandleForAddressRange. |
|
Stream CallBack struct |
|
Stream CallBack struct |
|
(No short description) |
|
(No short description) |
|
(No short description) |
Functions#
|
!__LP64__ |
|
Explicitly initializes the HIP runtime. |
Returns the approximate HIP driver version. |
|
Returns the approximate HIP driver version. |
|
Returns the approximate HIP Runtime version. |
|
Returns the approximate HIP Runtime version. |
|
|
Returns a handle to a compute device |
|
Returns the compute capability of the device |
|
Returns an identifer string for the device. |
|
Returns an UUID for the device.[BETA] |
|
Returns an UUID for the device.[BETA] |
|
Returns a value for attribute of link between two devices |
|
Returns a value for attribute of link between two devices |
|
Returns a PCI Bus Id string for the device, overloaded to take int device ID. |
|
Returns a PCI Bus Id string for the device, overloaded to take int device ID. |
|
Returns a handle to a compute device. |
|
Returns a handle to a compute device. |
|
Returns the total amount of memory on the device. |
|
Returns the total amount of memory on the device. |
Waits on all active streams on current device |
|
Waits on all active streams on current device |
|
The state of current device is discarded and updated to a fresh state. |
|
The state of current device is discarded and updated to a fresh state. |
|
|
Set default device to be used for subsequent hip API calls from this thread. |
|
Set a list of devices that can be used. |
Return the default device id for the calling host thread. |
|
Return number of compute-capable devices. |
|
Return number of compute-capable devices. |
|
|
Query for a specific device attribute. |
|
Query for a specific device attribute. |
|
Returns the default memory pool of the specified device |
|
Returns the default memory pool of the specified device |
|
Sets the current memory pool of a device |
|
Sets the current memory pool of a device |
|
Gets the current memory pool for the specified device |
|
Gets the current memory pool for the specified device |
|
Returns device properties. |
|
Gets the maximum width for 1D linear textures on the specified device |
|
Set L1/Shared cache partition. |
|
Set L1/Shared cache partition. |
Get Cache configuration for a specific Device |
|
Get Cache configuration for a specific Device |
|
|
Gets resource limits of current device |
|
Gets resource limits of current device |
|
Sets resource limits of current device. |
|
Sets resource limits of current device. |
Returns bank width of shared memory for current device |
|
Gets the flags set for current device |
|
|
The bank width of shared memory on current device is set |
|
The current device behavior is changed according to the flags passed. |
|
Device which matches hipDeviceProp_t is returned |
|
Gets an interprocess memory handle for an existing device memory |
|
Gets an interprocess memory handle for an existing device memory |
|
Opens an interprocess memory handle exported from another process |
|
Opens an interprocess memory handle exported from another process |
|
Close memory mapped with hipIpcOpenMemHandle |
|
Close memory mapped with hipIpcOpenMemHandle |
|
Gets an opaque interprocess handle for an event. |
|
Gets an opaque interprocess handle for an event. |
|
Opens an interprocess event handles. |
|
Opens an interprocess event handles. |
|
Set attribute for a specific function |
|
Set Cache configuration for a specific function |
|
Set shared memory configuation for a specific function |
Return last error returned by any HIP runtime API call and resets the stored error code to |
|
Return last error returned by any HIP runtime API call. |
|
|
Return hip error as text string form. |
|
Return handy text string message to explain the error which occurred |
|
Return hip error as text string form. |
|
Return handy text string message to explain the error which occurred |
Creates an asynchronous stream. |
|
|
Creates an asynchronous stream with flag. |
|
Creates an asynchronous stream with flag. |
|
Creates an asynchronous stream with the specified priority. |
|
Creates an asynchronous stream with the specified priority. |
Returns numerical values that correspond to the least and greatest stream priority. |
|
Returns numerical values that correspond to the least and greatest stream priority. |
|
|
Destroys the specified stream. |
|
Destroys the specified stream. |
|
Destroys the specified stream. |
|
Returns |
|
Returns |
|
Waits for all commands in the stream to complete. |
|
Waits for all commands in the stream to complete. |
|
Makes the specified compute stream wait for the specified event |
|
Makes the specified compute stream wait for the specified event |
|
Returns flags associated with this stream. |
|
Returns flags associated with this stream. |
|
Queries the Id of a stream. |
|
Queries the Id of a stream. |
|
Queries the priority of a stream. |
|
Queries the priority of a stream. |
|
Adds a callback to be called on the host after all currently enqueued items in the stream |
|
Adds a callback to be called on the host after all currently enqueued items in the stream |
|
Sets stream attribute. Updated attribute is applied to work submitted to the stream. |
|
Sets stream attribute. Updated attribute is applied to work submitted to the stream. |
|
queries stream attribute. |
|
queries stream attribute. |
|
Copies attributes from source stream to destination stream. |
|
Copies attributes from source stream to destination stream. |
|
Enqueues a wait command to the stream.[BETA] |
|
Enqueues a wait command to the stream.[BETA] |
|
Enqueues a wait command to the stream.[BETA] |
|
Enqueues a wait command to the stream.[BETA] |
|
Enqueues a write command to the stream.[BETA] |
|
Enqueues a write command to the stream.[BETA] |
|
Enqueues a write command to the stream.[BETA] |
|
Enqueues a write command to the stream.[BETA] |
|
Enqueues an array of stream memory operations in the stream.[BETA] |
|
Enqueues an array of stream memory operations in the stream.[BETA] |
|
Creates a batch memory operation node and adds it to a graph.[BETA] |
|
Returns a batch mem op node's parameters.[BETA] |
|
Sets the batch mem op node's parameters.[BETA] |
|
Sets the parameters for a batch mem op node in the given graphExec.[BETA] |
|
Create an event with the specified flags |
|
Create an event with the specified flags |
Create an event |
|
|
Record an event in the specified stream. |
|
Record an event in the specified stream. |
|
Record an event in the specified stream. |
|
Record an event in the specified stream. |
|
Destroy the specified event. |
|
Destroy the specified event. |
|
Destroy the specified event. |
|
Wait for an event to complete. |
|
Wait for an event to complete. |
|
Return the elapsed time between two events. |
|
Return the elapsed time between two events. |
|
Return the elapsed time between two events. |
|
Query event status |
|
Query event status |
|
Sets information on the specified pointer.[BETA] |
Returns attributes for the specified pointer |
|
|
Returns information about the specified pointer.[BETA] |
|
Returns information about the specified pointer.[BETA] |
|
Imports an external semaphore. |
|
Imports an external semaphore. |
|
Signals a set of external semaphore objects. |
|
Signals a set of external semaphore objects. |
|
Waits on a set of external semaphore objects |
|
Waits on a set of external semaphore objects |
|
Destroys an external semaphore object and releases any references to the underlying |
|
Destroys an external semaphore object and releases any references to the underlying |
|
Imports an external memory object. |
|
Imports an external memory object. |
|
Maps a buffer onto an imported memory object. |
|
Maps a buffer onto an imported memory object. |
|
Destroys an external memory object. |
|
Destroys an external memory object. |
|
Allocate memory on the default accelerator |
|
Allocate memory on the default accelerator |
|
Allocate memory on the default accelerator |
|
Allocate pinned host memory [Deprecated] |
|
Allocate pinned host memory [Deprecated] |
|
Allocates device accessible page locked (pinned) host memory |
|
Allocates memory that will be automatically managed by HIP. |
|
Allocates memory that will be automatically managed by HIP. |
|
Prefetches memory to the specified destination device using HIP. |
|
Prefetches memory to the specified destination device using HIP. |
|
Advise about the usage of a given memory range to HIP. |
|
Advise about the usage of a given memory range to HIP. |
|
Query an attribute of a given memory range in HIP. |
|
Query an attribute of a given memory range in HIP. |
|
Query attributes of a given memory range in HIP. |
|
Query attributes of a given memory range in HIP. |
|
Attach memory to a stream asynchronously in HIP. |
|
Attach memory to a stream asynchronously in HIP. |
|
Allocates memory with stream ordered semantics |
|
Allocates memory with stream ordered semantics |
|
Frees memory with stream ordered semantics |
|
Frees memory with stream ordered semantics |
|
Releases freed memory back to the OS |
|
Releases freed memory back to the OS |
|
Sets attributes of a memory pool |
|
Sets attributes of a memory pool |
|
Gets attributes of a memory pool |
|
Gets attributes of a memory pool |
|
Controls visibility of the specified pool between devices |
|
Controls visibility of the specified pool between devices |
|
Returns the accessibility of a pool from a device |
|
Returns the accessibility of a pool from a device |
|
Creates a memory pool |
|
Creates a memory pool |
|
Destroys the specified memory pool |
|
Destroys the specified memory pool |
|
Allocates memory from a specified pool with stream ordered semantics. |
|
Allocates memory from a specified pool with stream ordered semantics. |
|
Exports a memory pool to the requested handle type. |
|
Exports a memory pool to the requested handle type. |
|
Imports a memory pool from a shared handle. |
|
Imports a memory pool from a shared handle. |
|
Export data to share a memory pool allocation between processes. |
|
Export data to share a memory pool allocation between processes. |
|
Import a memory pool allocation from another process. |
|
Import a memory pool allocation from another process. |
|
Allocate device accessible page locked host memory |
|
Allocate device accessible page locked host memory |
|
Get Device pointer from Host Pointer allocated through hipHostMalloc |
|
Get Device pointer from Host Pointer allocated through hipHostMalloc |
|
Get Device pointer from Host Pointer allocated through hipHostMalloc |
|
Return flags associated with host pointer |
|
Return flags associated with host pointer |
|
Register host memory so it can be accessed from the current device. |
|
Register host memory so it can be accessed from the current device. |
|
Register host memory so it can be accessed from the current device. |
|
Un-register host pointer |
|
Un-register host pointer |
|
Allocates at least width (in bytes) * height bytes of linear memory |
|
Allocates at least width (in bytes) * height bytes of linear memory |
|
Allocates at least width (in bytes) * height bytes of linear memory |
|
Free memory allocated by the HIP-Clang hip memory allocation API. |
|
Free memory allocated by the HIP-Clang hip memory allocation API. |
|
Free memory allocated by the HIP-Clang hip memory allocation API. |
|
Free memory allocated by the HIP-Clang hip host memory allocation API |
|
Free memory allocated by the HIP-Clang hip host memory allocation API |
|
Copy data from src to dst. |
|
Copy data from Host to Device |
|
Copy data from Host to Device |
|
Copy data from Device to Host |
|
Copy data from Device to Host |
|
Copy data from Device to Device |
|
Copy data from Device to Device |
|
Copies from one 1D array to device memory. |
|
Copies from one 1D array to device memory. |
|
Copies from device memory to a 1D array. |
|
Copies from device memory to a 1D array. |
|
Copies from one 1D array to another. |
|
Copies from one 1D array to another. |
|
Copy data from Host to Device asynchronously |
|
Copy data from Host to Device asynchronously |
|
Copy data from Device to Host asynchronously |
|
Copy data from Device to Host asynchronously |
|
Copy data from Device to Device asynchronously |
|
Copy data from Device to Device asynchronously |
|
Copies from one 1D array to host memory. |
|
Copies from one 1D array to host memory. |
|
Copies from host memory to a 1D array. |
|
Copies from host memory to a 1D array. |
|
Returns a global pointer from a module. |
|
Returns a global pointer from a module. |
|
Gets device pointer associated with symbol on the device. |
|
Gets the size of the given symbol on the device. |
|
Gets the pointer of requested HIP driver function. |
|
Copies data to the given symbol on the device. |
|
Copies data to the given symbol on the device asynchronously. |
|
Copies data from the given symbol on the device. |
|
Copies data from the given symbol on the device asynchronously. |
|
Copies data from src to dst asynchronously. |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant |
|
Fills the memory area pointed to by dest with the constant integer |
|
Fills the memory area pointed to by dest with the constant integer |
|
Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant |
|
Fills the memory area pointed to by dev with the constant integer |
|
Fills the memory area pointed to by dst with the constant value. |
|
Fills asynchronously the memory area pointed to by dst with the constant value. |
|
Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value. |
|
Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value. |
|
Fills 2D memory range of 'width' 8-bit values synchronously to the specified char value. |
|
Fills 2D memory range of 'width' 8-bit values synchronously to the specified char value. |
|
Fills 2D memory range of 'width' 8-bit values asynchronously to the specified char value. |
|
Fills 2D memory range of 'width' 16-bit values synchronously to the specified short |
|
Fills 2D memory range of 'width' 16-bit values synchronously to the specified short |
|
Fills 2D memory range of 'width' 16-bit values asynchronously to the specified short |
|
Fills 2D memory range of 'width' 32-bit values synchronously to the specified int value. |
|
Fills 2D memory range of 'width' 32-bit values synchronously to the specified int value. |
|
Fills 2D memory range of 'width' 32-bit values asynchronously to the specified int |
Query memory info. |
|
Query memory info. |
|
Query memory info. |
|
|
Allocate an array on the device. |
|
Create an array memory pointer on the device. |
|
Create an array memory pointer on the device. |
|
Destroy an array memory pointer on the device. |
|
Create a 3D array memory pointer on the device. |
|
Create a 3D array memory pointer on the device. |
|
Create a 3D memory pointer on the device. |
|
Frees an array on the device. |
|
Allocate an array on the device. |
|
Gets info about the specified array |
|
Gets a 1D or 2D array descriptor |
|
Gets a 1D or 2D array descriptor |
|
Gets a 3D array descriptor |
|
Gets a 3D array descriptor |
|
Copies data between host and device. |
|
Copies memory for 2D arrays. |
|
Copies memory for 2D arrays. |
|
Copies memory for 2D arrays. |
|
Copies memory for 2D arrays. |
|
Copies data between host and device asynchronously. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device [Deprecated] |
|
Copies data between host and device [Deprecated] |
|
Copies data between host and device. |
|
Copies data between host and device asynchronously. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device asynchronously. |
|
Copies data between host and device. |
|
Copies data between host and device. |
|
Copies data between host and device asynchronously. |
|
Copies data between host and device asynchronously. |
|
Get information on memory allocations. |
|
Get information on memory allocations. |
|
Perform Batch of 1D copies |
|
Perform Batch of 1D copies |
|
Perform Batch of 3D copies |
|
Perform Batch of 3D copies |
Performs 3D memory copies between devices |
|
|
Performs 3D memory copies between devices asynchronously |
|
Determines if a device can access a peer device's memory. |
|
Determines if a device can access a peer device's memory. |
|
Enables direct access to memory allocations on a peer device. |
|
Disables direct access to memory allocations on a peer device. |
|
Copies memory between two peer accessible devices. |
|
Copies memory between two peer accessible devices asynchronously. |
|
Create a context and set it as current/default context |
|
Create a context and set it as current/default context |
|
Destroy a HIP context [Deprecated] |
|
Destroy a HIP context [Deprecated] |
Pop the current/default context and return the popped context [Deprecated] |
|
Pop the current/default context and return the popped context [Deprecated] |
|
|
Push the context to be set as current/ default context [Deprecated] |
|
Push the context to be set as current/ default context [Deprecated] |
|
Set the passed context as current/default [Deprecated] |
Get the handle of the current/ default context [Deprecated] |
|
Get the handle of the device associated with current/default context [Deprecated] |
|
|
Returns the approximate HIP api version. |
Get Cache configuration for a specific function [Deprecated] |
|
|
Set L1/Shared cache partition [Deprecated] |
|
Set Shared memory bank configuration [Deprecated] |
Get Shared memory bank configuration [Deprecated] |
|
Blocks until the default context has completed all preceding requested tasks [Deprecated] |
|
Return flags used for creating default context [Deprecated] |
|
|
Enables direct access to memory allocations in a peer context [Deprecated] |
|
Disable direct access from current context's virtual address space to memory allocations |
Get the state of the primary context [Deprecated] |
|
Release the primary context on the GPU. |
|
Release the primary context on the GPU. |
|
Retain the primary context on the GPU [Deprecated] |
|
Resets the primary context on the GPU [Deprecated] |
|
Resets the primary context on the GPU [Deprecated] |
|
|
Set flags for the primary context [Deprecated] |
|
Set flags for the primary context [Deprecated] |
|
Loads fatbin object |
|
Loads code object from file into a module the currrent context. |
|
Frees the module |
|
Function with kname will be extracted if present in module |
Returns the number of functions within a module. |
|
|
Load hip Library from inmemory object |
|
Load hip Library from inmemory object |
|
Load hip Library from file |
|
Load hip Library from file |
|
Unload HIP Library |
|
Unload HIP Library |
|
Get Kernel object from library |
|
Get Kernel object from library |
|
Get Kernel count in library |
|
Get Kernel count in library |
|
Retrieve kernel handles within a library |
|
Retrieve kernel handles within a library |
|
Returns a Library Handle |
|
Returns a Kernel Name |
|
Find out attributes for a given function. |
|
Find out a specific attribute for a given function. |
|
Gets pointer to device entry function that matches entry function symbolPtr. |
|
Gets function pointer of a requested HIP API |
|
returns the handle of the texture reference with the name from the module. |
|
builds module from code object data which resides in host memory. |
|
builds module from code object which resides in host memory. Image is pointer to that |
|
launches kernel f with launch parameters and shared memory on stream with arguments passed |
|
launches kernel f with launch parameters and shared memory on stream with arguments passed |
|
Launches kernels on multiple devices where thread blocks can cooperate and |
|
Launches kernel f with launch parameters and shared memory on stream with arguments passed |
Launches kernels on multiple devices where thread blocks can cooperate and |
|
|
Launches a HIP kernel using a generic function pointer and the specified configuration. |
|
Launches a HIP kernel using the driver API with the specified configuration. |
|
Returns a handle for the address range requested. |
|
determine the grid and block sizes to achieves maximum occupancy for a kernel |
determine the grid and block sizes to achieves maximum occupancy for a kernel |
|
Returns occupancy for a device function. |
|
|
Returns occupancy for a device function. |
Returns occupancy for a device function. |
|
|
Returns occupancy for a device function. |
determine the grid and block sizes to achieves maximum occupancy for a kernel |
|
|
Returns dynamic shared memory available per block when launching numBlocks blocks on SM. |
Returns dynamic shared memory available per block when launching numBlocks blocks on SM. |
|
Start recording of profiling information [Deprecated] |
|
Start recording of profiling information [Deprecated] |
|
Stop recording of profiling information [Deprecated] |
|
Stop recording of profiling information [Deprecated] |
|
|
Configure a kernel launch. |
|
Set a kernel argument. |
|
Launch a kernel. |
|
C compliant kernel launch API |
|
Enqueues a host function call in a stream. |
|
Enqueues a host function call in a stream. |
|
Copies memory for 2D arrays. |
|
Copies memory for 2D arrays. |
|
Creates a texture object. |
|
Destroys a texture object. |
|
Gets the channel descriptor in an array. |
|
Gets resource descriptor for the texture object. |
|
Gets resource view descriptor for the texture object. |
|
Gets texture descriptor for the texture object. |
|
Creates a texture object. |
|
Destroys a texture object. |
|
Gets resource descriptor of a texture object. |
|
Gets resource view descriptor of a texture object. |
|
Gets texture descriptor of a texture object. |
|
Allocate a mipmapped array on the device. |
|
Frees a mipmapped array on the device. |
|
Gets a mipmap level of a HIP mipmapped array. |
|
Create a mipmapped array. |
Destroy a mipmapped array. |
|
|
Get a mipmapped array on a mipmapped level. |
|
Binds a mipmapped array to a texture [Deprecated] |
|
Gets the texture reference related with the symbol [Deprecated] |
|
Gets the border color used by a texture reference [Deprecated] |
|
Gets the array bound to a texture reference [Deprecated] |
|
Sets address mode for a texture reference [Deprecated] |
|
Binds an array as a texture reference [Deprecated] |
|
Set filter mode for a texture reference [Deprecated] |
|
Set flags for a texture reference [Deprecated] |
|
Set format for a texture reference [Deprecated] |
|
Binds a memory area to a texture [Deprecated] |
|
Binds a 2D memory area to a texture [Deprecated] |
|
Binds a memory area to a texture [Deprecated] |
|
Get the offset of the alignment in a texture [Deprecated] |
|
Unbinds a texture [Deprecated] |
|
Gets the address for a texture reference [Deprecated] |
|
Gets the address for a texture reference [Deprecated] |
|
Gets the address mode for a texture reference [Deprecated] |
|
Gets filter mode for a texture reference [Deprecated] |
|
Gets flags for a texture reference [Deprecated] |
|
Gets texture format for a texture reference [Deprecated] |
|
Gets the maximum anisotropy for a texture reference [Deprecated] |
|
Gets the mipmap filter mode for a texture reference [Deprecated] |
|
Gets the mipmap level bias for a texture reference [Deprecated] |
|
Gets the minimum and maximum mipmap level clamps for a texture reference [Deprecated] |
|
Gets the mipmapped array bound to a texture reference [Deprecated] |
|
Sets an bound address for a texture reference [Deprecated] |
|
Sets an bound address for a texture reference [Deprecated] |
|
Set a bind an address as a 2D texture reference [Deprecated] |
|
Set a bind an address as a 2D texture reference [Deprecated] |
|
Set a bind an address as a 2D texture reference [Deprecated] |
|
Sets the maximum anisotropy for a texture reference [Deprecated] |
|
Sets border color for a texture reference [Deprecated] |
|
Sets mipmap filter mode for a texture reference [Deprecated] |
|
Sets mipmap level bias for a texture reference [Deprecated] |
|
Sets mipmap level clamp for a texture reference [Deprecated] |
|
Binds mipmapped array to a texture reference [Deprecated] |
|
Begins graph capture on a stream. |
|
Begins graph capture on a stream. |
|
Begins graph capture on a stream. |
|
Begins graph capture on a stream to an existing graph. |
|
Begins graph capture on a stream to an existing graph. |
|
Ends capture on a stream, returning the captured graph. |
|
Ends capture on a stream, returning the captured graph. |
|
Get capture status of a stream. |
|
Get capture status of a stream. |
|
Get stream's capture state |
|
Get stream's capture state |
|
Get stream's capture state |
|
Update the set of dependencies in a capturing stream |
|
Update the set of dependencies in a capturing stream |
Swaps the stream capture mode of a thread. |
|
Swaps the stream capture mode of a thread. |
|
|
Creates a graph |
|
Creates a graph |
|
Destroys a graph |
|
Destroys a graph |
|
Adds dependency edges to a graph. |
|
Adds dependency edges to a graph. |
|
Removes dependency edges from a graph. |
|
Removes dependency edges from a graph. |
|
Returns a graph's dependency edges. |
|
Returns a graph's dependency edges. |
|
Returns a graph's nodes. |
|
Returns a graph's nodes. |
|
Returns a graph's root nodes. |
|
Returns a graph's root nodes. |
Returns a node's dependencies. |
|
Returns a node's dependencies. |
|
Returns a node's dependent nodes. |
|
Returns a node's dependent nodes. |
|
|
Returns a node's type. |
|
Returns a node's type. |
|
Remove a node from the graph. |
|
Remove a node from the graph. |
|
Clones a graph. |
|
Clones a graph. |
|
Finds a cloned version of a node. |
|
Finds a cloned version of a node. |
|
Creates an executable graph from a graph |
|
Creates an executable graph from a graph |
|
Creates an executable graph from a graph |
|
Creates an executable graph from a graph. |
|
Creates an executable graph from a graph. |
|
Creates an executable graph from a graph. |
|
Creates an executable graph from a graph. |
|
Launches an executable graph in the specified stream. |
|
Launches an executable graph in the specified stream. |
|
Uploads an executable graph to a stream |
|
Uploads an executable graph to a stream |
|
Creates a kernel execution node and adds it to a graph. |
|
Creates a kernel execution node and adds it to a graph. |
|
Return the flags of an executable graph. |
|
Return the flags of an executable graph. |
|
Updates parameters of a graph's node. |
|
Updates parameters of a graph's node. |
|
Updates parameters of an executable graph's node. |
|
Updates parameters of an executable graph's node. |
|
Destroys an executable graph |
|
Destroys an executable graph |
|
Check whether an executable graph can be updated with a graph and perform the update if * |
|
Check whether an executable graph can be updated with a graph and perform the update if * |
|
Creates a kernel execution node and adds it to a graph. |
|
Creates a kernel execution node and adds it to a graph. |
Gets kernel node's parameters. |
|
Gets kernel node's parameters. |
|
|
Sets a kernel node's parameters. |
|
Sets a kernel node's parameters. |
|
Sets the parameters for a kernel node in the given graphExec. |
|
Sets the parameters for a kernel node in the given graphExec. |
|
Creates a memcpy node and adds it to a graph. |
|
Creates a memcpy node and adds it to a graph. |
Gets a memcpy node's parameters. |
|
|
Sets a memcpy node's parameters. |
|
Sets a node's attribute. |
|
Sets a node's attribute. |
|
Gets a node's attribute. |
|
Gets a node's attribute. |
|
Sets the parameters of a memcpy node in the given graphExec. |
|
Creates a 1D memcpy node and adds it to a graph. |
|
Sets a memcpy node's parameters to perform a 1-dimensional copy. |
|
Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional |
|
Creates a memcpy node to copy from a symbol on the device and adds it to a graph. |
|
Sets a memcpy node's parameters to copy from a symbol on the device. |
|
Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the |
|
Creates a memcpy node to copy to a symbol on the device and adds it to a graph. |
|
Sets a memcpy node's parameters to copy to a symbol on the device. |
|
Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the |
|
Creates a memset node and adds it to a graph. |
Gets a memset node's parameters. |
|
Gets a memset node's parameters. |
|
|
Sets a memset node's parameters. |
|
Sets a memset node's parameters. |
|
Sets the parameters for a memset node in the given graphExec. |
|
Creates a host execution node and adds it to a graph. |
|
Creates a host execution node and adds it to a graph. |
|
Returns a host node's parameters. |
Returns a host node's parameters. |
|
|
Sets a host node's parameters. |
|
Sets a host node's parameters. |
|
Sets the parameters for a host node in the given graphExec. |
|
Sets the parameters for a host node in the given graphExec. |
|
Creates a child graph node and adds it to a graph. |
|
Creates a child graph node and adds it to a graph. |
Gets a handle to the embedded graph of a child graph node. |
|
Gets a handle to the embedded graph of a child graph node. |
|
|
Updates node parameters in the child graph node in the given graphExec. |
|
Updates node parameters in the child graph node in the given graphExec. |
|
Creates an empty node and adds it to a graph. |
|
Creates an empty node and adds it to a graph. |
|
Creates an event record node and adds it to a graph. |
|
Creates an event record node and adds it to a graph. |
Returns the event associated with an event record node. |
|
Returns the event associated with an event record node. |
|
|
Sets an event record node's event. |
|
Sets an event record node's event. |
|
Sets the event for an event record node in the given graphExec. |
|
Sets the event for an event record node in the given graphExec. |
|
Creates an event wait node and adds it to a graph. |
|
Creates an event wait node and adds it to a graph. |
Returns the event associated with an event wait node. |
|
Returns the event associated with an event wait node. |
|
|
Sets an event wait node's event. |
|
Sets an event wait node's event. |
|
Sets the event for an event record node in the given graphExec. |
|
Sets the event for an event record node in the given graphExec. |
|
Creates a memory allocation node and adds it to a graph |
|
Creates a memory allocation node and adds it to a graph |
Returns parameters for memory allocation node |
|
Returns parameters for memory allocation node |
|
|
Creates a memory free node and adds it to a graph |
|
Returns parameters for memory free node |
|
Returns parameters for memory free node |
|
Get the mem attribute for graphs. |
|
Get the mem attribute for graphs. |
|
Set the mem attribute for graphs. |
|
Set the mem attribute for graphs. |
|
Free unused memory reserved for graphs on a specific device and return it back to the OS. |
|
Free unused memory reserved for graphs on a specific device and return it back to the OS. |
|
Create an instance of userObject to manage lifetime of a resource. |
|
Create an instance of userObject to manage lifetime of a resource. |
|
Release number of references to resource. |
|
Release number of references to resource. |
|
Retain number of references to resource. |
|
Retain number of references to resource. |
|
Retain user object for graphs. |
|
Retain user object for graphs. |
|
Release user object from graphs. |
|
Release user object from graphs. |
|
Write a DOT file describing graph structure. |
|
Write a DOT file describing graph structure. |
Copies attributes from source node to destination node. |
|
Copies attributes from source node to destination node. |
|
|
Enables or disables the specified node in the given graphExec |
|
Enables or disables the specified node in the given graphExec |
|
Query whether a node in the given graphExec is enabled |
|
Query whether a node in the given graphExec is enabled |
|
Creates a external semaphor wait node and adds it to a graph. |
|
Creates a external semaphor wait node and adds it to a graph. |
|
Creates a external semaphor signal node and adds it to a graph. |
|
Creates a external semaphor signal node and adds it to a graph. |
|
Updates node parameters in the external semaphore signal node. |
|
Updates node parameters in the external semaphore signal node. |
|
Updates node parameters in the external semaphore wait node. |
|
Updates node parameters in the external semaphore wait node. |
Returns external semaphore signal node params. |
|
Returns external semaphore signal node params. |
|
Returns external semaphore wait node params. |
|
Returns external semaphore wait node params. |
|
Updates node parameters in the external semaphore signal node in the given graphExec. |
|
Updates node parameters in the external semaphore signal node in the given graphExec. |
|
Updates node parameters in the external semaphore wait node in the given graphExec. |
|
Updates node parameters in the external semaphore wait node in the given graphExec. |
|
|
Gets a memcpy node's parameters. |
|
Sets a memcpy node's parameters. |
|
Creates a memset node and adds it to a graph. |
|
Creates a memory free node and adds it to a graph |
|
Sets the parameters for a memcpy node in the given graphExec. |
|
Sets the parameters for a memset node in the given graphExec. |
|
Frees an address range reservation made via hipMemAddressReserve |
|
Reserves an address range |
|
Creates a memory handle for the allocation described by the properties and given size |
|
Exports an allocation to a requested shareable handle type. |
|
Get the access flags set for the given location and ptr. |
|
Calculates either the minimal or recommended granularity. |
Retrieve the property structure of the given handle. |
|
|
Imports an allocation from a requested shareable handle type. |
|
Maps an allocation handle to a reserved virtual address range. |
|
Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays. |
|
Release a memory handle representing a memory allocation which was previously allocated |
Returns the allocation handle of the backing memory allocation given the address. |
|
|
Set the access flags for each location specified in desc for the given virtual address |
|
Unmap memory allocation of a given address range. |
|
Maps a graphics resource for access. |
|
Maps a graphics resource for access. |
|
Get an array through which to access a subresource of a mapped graphics resource. |
|
Get an array through which to access a subresource of a mapped graphics resource. |
|
Gets device accessible address of a graphics resource. |
|
Gets device accessible address of a graphics resource. |
|
Gets device accessible address of a graphics resource. |
|
Unmaps graphics resources. |
|
Unmaps graphics resources. |
|
Unregisters a graphics resource. |
|
Unregisters a graphics resource. |
|
Create a surface object. |
|
Destroy a surface object. |
Module Contents#
- cuda.bindings.driver.CU_TRSA_OVERRIDE_FORMAT: Any#
- cuda.bindings.driver.CU_TRSF_READ_AS_INTEGER: Any#
- cuda.bindings.driver.CU_TRSF_NORMALIZED_COORDINATES: Any#
- cuda.bindings.driver.CU_TRSF_SRGB: Any#
- cuda.bindings.driver.cudaTextureType1D: Any#
- cuda.bindings.driver.cudaTextureType2D: Any#
- cuda.bindings.driver.cudaTextureType3D: Any#
- cuda.bindings.driver.cudaTextureTypeCubemap: Any#
- cuda.bindings.driver.cudaTextureType1DLayered: Any#
- cuda.bindings.driver.cudaTextureType2DLayered: Any#
- cuda.bindings.driver.cudaTextureTypeCubemapLayered: Any#
- cuda.bindings.driver.CU_LAUNCH_PARAM_BUFFER_POINTER: Any#
- cuda.bindings.driver.CU_LAUNCH_PARAM_BUFFER_SIZE: Any#
- cuda.bindings.driver.CU_LAUNCH_PARAM_END: Any#
- cuda.bindings.driver.CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS: Any#
- cuda.bindings.driver.cudaIpcMemLazyEnablePeerAccess: Any#
- cuda.bindings.driver.CUDA_IPC_HANDLE_SIZE: Any#
- cuda.bindings.driver.CU_IPC_HANDLE_SIZE: Any#
- cuda.bindings.driver.CU_STREAM_DEFAULT: Any#
- cuda.bindings.driver.cudaStreamDefault: Any#
- cuda.bindings.driver.CU_STREAM_NON_BLOCKING: Any#
- cuda.bindings.driver.cudaStreamNonBlocking: Any#
- cuda.bindings.driver.CU_EVENT_DEFAULT: Any#
- cuda.bindings.driver.cudaEventDefault: Any#
- cuda.bindings.driver.CU_EVENT_BLOCKING_SYNC: Any#
- cuda.bindings.driver.cudaEventBlockingSync: Any#
- cuda.bindings.driver.CU_EVENT_DISABLE_TIMING: Any#
- cuda.bindings.driver.cudaEventDisableTiming: Any#
- cuda.bindings.driver.CU_EVENT_INTERPROCESS: Any#
- cuda.bindings.driver.cudaEventInterprocess: Any#
- cuda.bindings.driver.cudaHostAllocDefault: Any#
- cuda.bindings.driver.CU_MEMHOSTALLOC_PORTABLE: Any#
- cuda.bindings.driver.cudaHostAllocPortable: Any#
- cuda.bindings.driver.CU_MEMHOSTALLOC_DEVICEMAP: Any#
- cuda.bindings.driver.cudaHostAllocMapped: Any#
- cuda.bindings.driver.CU_MEMHOSTALLOC_WRITECOMBINED: Any#
- cuda.bindings.driver.cudaHostAllocWriteCombined: Any#
- cuda.bindings.driver.CU_MEM_ATTACH_GLOBAL: Any#
- cuda.bindings.driver.cudaMemAttachGlobal: Any#
- cuda.bindings.driver.CU_MEM_ATTACH_HOST: Any#
- cuda.bindings.driver.cudaMemAttachHost: Any#
- cuda.bindings.driver.CU_MEM_ATTACH_SINGLE: Any#
- cuda.bindings.driver.cudaMemAttachSingle: Any#
- cuda.bindings.driver.cudaHostRegisterDefault: Any#
- cuda.bindings.driver.CU_MEMHOSTREGISTER_PORTABLE: Any#
- cuda.bindings.driver.cudaHostRegisterPortable: Any#
- cuda.bindings.driver.CU_MEMHOSTREGISTER_DEVICEMAP: Any#
- cuda.bindings.driver.cudaHostRegisterMapped: Any#
- cuda.bindings.driver.CU_MEMHOSTREGISTER_IOMEMORY: Any#
- cuda.bindings.driver.cudaHostRegisterIoMemory: Any#
- cuda.bindings.driver.CU_CTX_SCHED_AUTO: Any#
- cuda.bindings.driver.cudaDeviceScheduleAuto: Any#
- cuda.bindings.driver.CU_CTX_SCHED_SPIN: Any#
- cuda.bindings.driver.cudaDeviceScheduleSpin: Any#
- cuda.bindings.driver.CU_CTX_SCHED_YIELD: Any#
- cuda.bindings.driver.cudaDeviceScheduleYield: Any#
- cuda.bindings.driver.CU_CTX_BLOCKING_SYNC: Any#
- cuda.bindings.driver.CU_CTX_SCHED_BLOCKING_SYNC: Any#
- cuda.bindings.driver.cudaDeviceBlockingSync: Any#
- cuda.bindings.driver.cudaDeviceScheduleBlockingSync: Any#
- cuda.bindings.driver.CU_CTX_SCHED_MASK: Any#
- cuda.bindings.driver.cudaDeviceScheduleMask: Any#
- cuda.bindings.driver.CU_CTX_MAP_HOST: Any#
- cuda.bindings.driver.cudaDeviceMapHost: Any#
- cuda.bindings.driver.CU_CTX_LMEM_RESIZE_TO_MAX: Any#
- cuda.bindings.driver.cudaDeviceLmemResizeToMax: Any#
- cuda.bindings.driver.cudaArrayDefault: Any#
- cuda.bindings.driver.CUDA_ARRAY3D_LAYERED: Any#
- cuda.bindings.driver.cudaArrayLayered: Any#
- cuda.bindings.driver.CUDA_ARRAY3D_SURFACE_LDST: Any#
- cuda.bindings.driver.cudaArraySurfaceLoadStore: Any#
- cuda.bindings.driver.CUDA_ARRAY3D_CUBEMAP: Any#
- cuda.bindings.driver.cudaArrayCubemap: Any#
- cuda.bindings.driver.CUDA_ARRAY3D_TEXTURE_GATHER: Any#
- cuda.bindings.driver.cudaArrayTextureGather: Any#
- cuda.bindings.driver.CU_OCCUPANCY_DEFAULT: Any#
- cuda.bindings.driver.cudaOccupancyDefault: Any#
- cuda.bindings.driver.CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC: Any#
- cuda.bindings.driver.cudaCooperativeLaunchMultiDeviceNoPreSync: Any#
- cuda.bindings.driver.CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC: Any#
- cuda.bindings.driver.cudaCooperativeLaunchMultiDeviceNoPostSync: Any#
- cuda.bindings.driver.CU_DEVICE_CPU: Any#
- cuda.bindings.driver.cudaCpuDeviceId: Any#
- cuda.bindings.driver.CU_DEVICE_INVALID: Any#
- cuda.bindings.driver.cudaInvalidDeviceId: Any#
- cuda.bindings.driver.CU_STREAM_WAIT_VALUE_GEQ: Any#
- cuda.bindings.driver.CU_STREAM_WAIT_VALUE_EQ: Any#
- cuda.bindings.driver.CU_STREAM_WAIT_VALUE_AND: Any#
- cuda.bindings.driver.CU_STREAM_WAIT_VALUE_NOR: Any#
- cuda.bindings.driver.HIP_PYTHON_CUjit_option_HALLUCINATE: Any#
- class cuda.bindings.driver.CUjit_option#
Bases:
enum.IntEnumhipJitOption
- cuda.bindings.driver.HIP_PYTHON_CUjit_option_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUjit_option_enum#
Bases:
enum.IntEnumhipJitOption
- cuda.bindings.driver.HIP_PYTHON_CUjitInputType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUjitInputType#
Bases:
enum.IntEnumhipJitInputType
- cuda.bindings.driver.HIP_PYTHON_CUjitInputType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUjitInputType_enum#
Bases:
enum.IntEnumhipJitInputType
- cuda.bindings.driver.HIP_PYTHON_CUlibraryOption_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlibraryOption_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUlibraryOption_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlibraryOption#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaLibraryOption_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaLibraryOption#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.CUuuid_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipUUID_t(No short description)
- bytes: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUuuid: Any#
- cuda.bindings.driver.cudaUUID_t: Any#
- class cuda.bindings.driver.cudaDeviceProp(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipDeviceProp_thipDeviceProp
- name: Any#
- uuid: Any#
- luid: Any#
- luidDeviceNodeMask: Any#
- totalGlobalMem: Any#
- regsPerBlock: Any#
- warpSize: Any#
- memPitch: Any#
- maxThreadsPerBlock: Any#
- maxThreadsDim: Any#
- maxGridSize: Any#
- clockRate: Any#
- totalConstMem: Any#
- major: Any#
- minor: Any#
- textureAlignment: Any#
- texturePitchAlignment: Any#
- deviceOverlap: Any#
- multiProcessorCount: Any#
- kernelExecTimeoutEnabled: Any#
- integrated: Any#
- canMapHostMemory: Any#
- computeMode: Any#
- maxTexture1D: Any#
- maxTexture1DMipmap: Any#
- maxTexture1DLinear: Any#
- maxTexture2D: Any#
- maxTexture2DMipmap: Any#
- maxTexture2DLinear: Any#
- maxTexture2DGather: Any#
- maxTexture3D: Any#
- maxTexture3DAlt: Any#
- maxTextureCubemap: Any#
- maxTexture1DLayered: Any#
- maxTexture2DLayered: Any#
- maxTextureCubemapLayered: Any#
- maxSurface1D: Any#
- maxSurface2D: Any#
- maxSurface3D: Any#
- maxSurface1DLayered: Any#
- maxSurface2DLayered: Any#
- maxSurfaceCubemap: Any#
- maxSurfaceCubemapLayered: Any#
- surfaceAlignment: Any#
- concurrentKernels: Any#
- ECCEnabled: Any#
- pciBusID: Any#
- pciDeviceID: Any#
- pciDomainID: Any#
- tccDriver: Any#
- asyncEngineCount: Any#
- unifiedAddressing: Any#
- memoryClockRate: Any#
- memoryBusWidth: Any#
- l2CacheSize: Any#
- persistingL2CacheMaxSize: Any#
- maxThreadsPerMultiProcessor: Any#
- streamPrioritiesSupported: Any#
- globalL1CacheSupported: Any#
- localL1CacheSupported: Any#
- regsPerMultiprocessor: Any#
- managedMemory: Any#
- isMultiGpuBoard: Any#
- multiGpuBoardGroupID: Any#
- hostNativeAtomicSupported: Any#
- singleToDoublePrecisionPerfRatio: Any#
- pageableMemoryAccess: Any#
- concurrentManagedAccess: Any#
- computePreemptionSupported: Any#
- canUseHostPointerForRegisteredMem: Any#
- cooperativeLaunch: Any#
- cooperativeMultiDeviceLaunch: Any#
- pageableMemoryAccessUsesHostPageTables: Any#
- directManagedMemAccessFromHost: Any#
- maxBlocksPerMultiProcessor: Any#
- accessPolicyMaxWindowSize: Any#
- hostRegisterSupported: Any#
- sparseHipArraySupported: Any#
- hostRegisterReadOnlySupported: Any#
- timelineSemaphoreInteropSupported: Any#
- memoryPoolsSupported: Any#
- gpuDirectRDMASupported: Any#
- gpuDirectRDMAFlushWritesOptions: Any#
- gpuDirectRDMAWritesOrdering: Any#
- memoryPoolSupportedHandleTypes: Any#
- deferredMappingHipArraySupported: Any#
- ipcEventSupported: Any#
- clusterLaunch: Any#
- unifiedFunctionPointers: Any#
- reserved: Any#
- hipReserved: Any#
- gcnArchName: Any#
- clockInstructionRate: Any#
- arch: Any#
- hdpMemFlushCntl: Any#
- hdpRegFlushCntl: Any#
- cooperativeMultiDeviceUnmatchedFunc: Any#
- cooperativeMultiDeviceUnmatchedGridDim: Any#
- cooperativeMultiDeviceUnmatchedBlockDim: Any#
- isLargeBar: Any#
- asicRevision: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemorytype_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemorytype#
Bases:
enum.IntEnumhipMemoryType (for pointer attributes)
- Note:
hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.
- cuda.bindings.driver.HIP_PYTHON_CUmemorytype_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemorytype_enum#
Bases:
enum.IntEnumhipMemoryType (for pointer attributes)
- Note:
hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.
- cuda.bindings.driver.HIP_PYTHON_cudaMemoryType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemoryType#
Bases:
enum.IntEnumhipMemoryType (for pointer attributes)
- Note:
hipMemoryType enum values are combination of cudaMemoryType and cuMemoryType and AMD specific enum values.
- class cuda.bindings.driver.cudaPointerAttributes(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipPointerAttribute_tPointer attributes
- type: Any#
- device: Any#
- devicePointer: Any#
- hostPointer: Any#
- isManaged: Any#
- allocationFlags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUresult_HALLUCINATE: Any#
- class cuda.bindings.driver.CUresult#
Bases:
enum.IntEnumHIP error type
- cuda.bindings.driver.HIP_PYTHON_cudaError_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaError#
Bases:
enum.IntEnumHIP error type
- cuda.bindings.driver.HIP_PYTHON_cudaError_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaError_enum#
Bases:
enum.IntEnumHIP error type
- cuda.bindings.driver.HIP_PYTHON_cudaError_t_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaError_t#
Bases:
enum.IntEnumHIP error type
- cuda.bindings.driver.HIP_PYTHON_CUdevice_attribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUdevice_attribute#
Bases:
enum.IntEnumhipDeviceAttribute_t hipDeviceAttributeUnused number: 5
hipDeviceAttribute_t hipDeviceAttributeUnused number: 5
- cuda.bindings.driver.HIP_PYTHON_CUdevice_attribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUdevice_attribute_enum#
Bases:
enum.IntEnumhipDeviceAttribute_t hipDeviceAttributeUnused number: 5
hipDeviceAttribute_t hipDeviceAttributeUnused number: 5
- cuda.bindings.driver.HIP_PYTHON_cudaDeviceAttr_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaDeviceAttr#
Bases:
enum.IntEnumhipDeviceAttribute_t hipDeviceAttributeUnused number: 5
hipDeviceAttribute_t hipDeviceAttributeUnused number: 5
- cuda.bindings.driver.HIP_PYTHON_CUdriverProcAddressQueryResult_HALLUCINATE: Any#
- class cuda.bindings.driver.CUdriverProcAddressQueryResult#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUdriverProcAddressQueryResult_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUdriverProcAddressQueryResult_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUcomputemode_HALLUCINATE: Any#
- class cuda.bindings.driver.CUcomputemode#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUcomputemode_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUcomputemode_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaComputeMode_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaComputeMode#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_HALLUCINATE: Any#
- class cuda.bindings.driver.CUflushGPUDirectRDMAWritesOptions#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUflushGPUDirectRDMAWritesOptions_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUflushGPUDirectRDMAWritesOptions_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaFlushGPUDirectRDMAWritesOptions_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaFlushGPUDirectRDMAWritesOptions#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_HALLUCINATE: Any#
- class cuda.bindings.driver.CUGPUDirectRDMAWritesOrdering#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUGPUDirectRDMAWritesOrdering_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUGPUDirectRDMAWritesOrdering_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaGPUDirectRDMAWritesOrdering_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGPUDirectRDMAWritesOrdering#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.CUdeviceptr: Any#
- cuda.bindings.driver.CUdeviceptr_v1: Any#
- cuda.bindings.driver.CUdeviceptr_v2: Any#
- cuda.bindings.driver.HIP_PYTHON_cudaChannelFormatKind_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaChannelFormatKind#
Bases:
enum.IntEnumHIP channel format kinds
- class cuda.bindings.driver.cudaChannelFormatDesc(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipChannelFormatDescHIP channel format descriptor
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- f: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUarray_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipArray(No short description)
- class cuda.bindings.driver.cudaArray(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipArray(No short description)
- cuda.bindings.driver.CUarray: Any#
- cuda.bindings.driver.cudaArray_t: Any#
- cuda.bindings.driver.cudaArray_const_t: Any#
- cuda.bindings.driver.HIP_PYTHON_CUarray_format_HALLUCINATE: Any#
- class cuda.bindings.driver.CUarray_format#
Bases:
enum.IntEnumHIP array format
- cuda.bindings.driver.HIP_PYTHON_CUarray_format_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUarray_format_enum#
Bases:
enum.IntEnumHIP array format
- class cuda.bindings.driver.CUDA_ARRAY_DESCRIPTOR(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY_DESCRIPTORHIP array descriptor
- Width: Any#
- Height: Any#
- Format: Any#
- NumChannels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY_DESCRIPTOR_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY_DESCRIPTORHIP array descriptor
- Width: Any#
- Height: Any#
- Format: Any#
- NumChannels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY_DESCRIPTOR_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY_DESCRIPTORHIP array descriptor
- Width: Any#
- Height: Any#
- Format: Any#
- NumChannels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY_DESCRIPTOR_v1_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY_DESCRIPTORHIP array descriptor
- Width: Any#
- Height: Any#
- Format: Any#
- NumChannels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY_DESCRIPTOR_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY_DESCRIPTORHIP array descriptor
- Width: Any#
- Height: Any#
- Format: Any#
- NumChannels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY3D_DESCRIPTOR(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY3D_DESCRIPTORHIP 3D array descriptor
- Width: Any#
- Height: Any#
- Depth: Any#
- Format: Any#
- NumChannels: Any#
- Flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY3D_DESCRIPTOR_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY3D_DESCRIPTORHIP 3D array descriptor
- Width: Any#
- Height: Any#
- Depth: Any#
- Format: Any#
- NumChannels: Any#
- Flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_ARRAY3D_DESCRIPTOR_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_ARRAY3D_DESCRIPTORHIP 3D array descriptor
- Width: Any#
- Height: Any#
- Depth: Any#
- Format: Any#
- NumChannels: Any#
- Flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY2D(*args, **kwargs)#
Bases:
rocm.bindings.hip.hip_Memcpy2DHIP 2D memory copy parameters
- srcXInBytes: Any#
- srcY: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- WidthInBytes: Any#
- Height: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY2D_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hip_Memcpy2DHIP 2D memory copy parameters
- srcXInBytes: Any#
- srcY: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- WidthInBytes: Any#
- Height: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY2D_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hip_Memcpy2DHIP 2D memory copy parameters
- srcXInBytes: Any#
- srcY: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- WidthInBytes: Any#
- Height: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY2D_v1_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hip_Memcpy2DHIP 2D memory copy parameters
- srcXInBytes: Any#
- srcY: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- WidthInBytes: Any#
- Height: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY2D_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.hip_Memcpy2DHIP 2D memory copy parameters
- srcXInBytes: Any#
- srcY: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- WidthInBytes: Any#
- Height: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmipmappedArray_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMipmappedArrayHIP mipmapped array
- data: Any#
- desc: Any#
- type: Any#
- width: Any#
- height: Any#
- depth: Any#
- min_mipmap_level: Any#
- max_mipmap_level: Any#
- flags: Any#
- format: Any#
- num_channels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMipmappedArray(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMipmappedArrayHIP mipmapped array
- data: Any#
- desc: Any#
- type: Any#
- width: Any#
- height: Any#
- depth: Any#
- min_mipmap_level: Any#
- max_mipmap_level: Any#
- flags: Any#
- format: Any#
- num_channels: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUmipmappedArray: Any#
- cuda.bindings.driver.cudaMipmappedArray_t: Any#
- cuda.bindings.driver.cudaMipmappedArray_const_t: Any#
- cuda.bindings.driver.HIP_PYTHON_cudaResourceType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaResourceType#
Bases:
enum.IntEnumHIP resource types
- cuda.bindings.driver.HIP_PYTHON_CUresourcetype_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUresourcetype_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUresourcetype_HALLUCINATE: Any#
- class cuda.bindings.driver.CUresourcetype#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUaddress_mode_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUaddress_mode_enum#
Bases:
enum.IntEnumHIP texture address modes
- cuda.bindings.driver.HIP_PYTHON_CUaddress_mode_HALLUCINATE: Any#
- class cuda.bindings.driver.CUaddress_mode#
Bases:
enum.IntEnumHIP texture address modes
- cuda.bindings.driver.HIP_PYTHON_CUfilter_mode_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUfilter_mode_enum#
Bases:
enum.IntEnumHIP filter modes
- cuda.bindings.driver.HIP_PYTHON_CUfilter_mode_HALLUCINATE: Any#
- class cuda.bindings.driver.CUfilter_mode#
Bases:
enum.IntEnumHIP filter modes
- class cuda.bindings.driver.CUDA_TEXTURE_DESC_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_TEXTURE_DESC_stHIP texture descriptor
- filterMode: Any#
- flags: Any#
- maxAnisotropy: Any#
- mipmapFilterMode: Any#
- mipmapLevelBias: Any#
- minMipmapLevelClamp: Any#
- maxMipmapLevelClamp: Any#
- borderColor: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_TEXTURE_DESC: Any#
- cuda.bindings.driver.CUDA_TEXTURE_DESC_v1: Any#
- cuda.bindings.driver.HIP_PYTHON_cudaResourceViewFormat_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaResourceViewFormat#
Bases:
enum.IntEnumHIP texture resource view formats
- cuda.bindings.driver.HIP_PYTHON_CUresourceViewFormat_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUresourceViewFormat_enum#
Bases:
enum.IntEnumHIP texture resource view formats
- cuda.bindings.driver.HIP_PYTHON_CUresourceViewFormat_HALLUCINATE: Any#
- class cuda.bindings.driver.CUresourceViewFormat#
Bases:
enum.IntEnumHIP texture resource view formats
- class cuda.bindings.driver.cudaResourceDesc(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipResourceDescHIP resource descriptor
- resType: Any#
- res: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_RESOURCE_DESC_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_RESOURCE_DESC_stHIP resource view descriptor struct
- resType: Any#
- res: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_RESOURCE_DESC: Any#
- cuda.bindings.driver.CUDA_RESOURCE_DESC_v1: Any#
- class cuda.bindings.driver.cudaResourceViewDesc(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipResourceViewDescHIP resource view descriptor
- format: Any#
- width: Any#
- height: Any#
- depth: Any#
- firstMipmapLevel: Any#
- lastMipmapLevel: Any#
- firstLayer: Any#
- lastLayer: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_RESOURCE_VIEW_DESC_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_RESOURCE_VIEW_DESC_stResource view descriptor
- format: Any#
- width: Any#
- height: Any#
- depth: Any#
- firstMipmapLevel: Any#
- lastMipmapLevel: Any#
- firstLayer: Any#
- lastLayer: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_RESOURCE_VIEW_DESC: Any#
- cuda.bindings.driver.CUDA_RESOURCE_VIEW_DESC_v1: Any#
- cuda.bindings.driver.HIP_PYTHON_cudaMemcpyKind_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemcpyKind#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.cudaPitchedPtr(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipPitchedPtrHIP pithed pointer
- ptr: Any#
- pitch: Any#
- xsize: Any#
- ysize: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaExtent(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExtentHIP extent
- width: Any#
- height: Any#
- depth: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaPos(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipPosHIP position
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemcpy3DParms(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DParmsHIP 3D memory copy parameters
- srcArray: Any#
- srcPos: Any#
- srcPtr: Any#
- dstArray: Any#
- dstPos: Any#
- dstPtr: Any#
- extent: Any#
- kind: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_MEMCPY3DHIP 3D memory copy
- srcXInBytes: Any#
- srcY: Any#
- srcZ: Any#
- srcLOD: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- srcHeight: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstZ: Any#
- dstLOD: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- dstHeight: Any#
- WidthInBytes: Any#
- Height: Any#
- Depth: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_MEMCPY3DHIP 3D memory copy
- srcXInBytes: Any#
- srcY: Any#
- srcZ: Any#
- srcLOD: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- srcHeight: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstZ: Any#
- dstLOD: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- dstHeight: Any#
- WidthInBytes: Any#
- Height: Any#
- Depth: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_MEMCPY3DHIP 3D memory copy
- srcXInBytes: Any#
- srcY: Any#
- srcZ: Any#
- srcLOD: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- srcHeight: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstZ: Any#
- dstLOD: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- dstHeight: Any#
- WidthInBytes: Any#
- Height: Any#
- Depth: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_v1_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_MEMCPY3DHIP 3D memory copy
- srcXInBytes: Any#
- srcY: Any#
- srcZ: Any#
- srcLOD: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- srcHeight: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstZ: Any#
- dstLOD: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- dstHeight: Any#
- WidthInBytes: Any#
- Height: Any#
- Depth: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_MEMCPY3DHIP 3D memory copy
- srcXInBytes: Any#
- srcY: Any#
- srcZ: Any#
- srcLOD: Any#
- srcMemoryType: Any#
- srcHost: Any#
- srcDevice: Any#
- srcArray: Any#
- srcPitch: Any#
- srcHeight: Any#
- dstXInBytes: Any#
- dstY: Any#
- dstZ: Any#
- dstLOD: Any#
- dstMemoryType: Any#
- dstHost: Any#
- dstDevice: Any#
- dstArray: Any#
- dstPitch: Any#
- dstHeight: Any#
- WidthInBytes: Any#
- Height: Any#
- Depth: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemLocationType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemLocationType#
Bases:
enum.IntEnumSpecifies the type of location
- cuda.bindings.driver.HIP_PYTHON_CUmemLocationType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemLocationType_enum#
Bases:
enum.IntEnumSpecifies the type of location
- cuda.bindings.driver.HIP_PYTHON_cudaMemLocationType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemLocationType#
Bases:
enum.IntEnumSpecifies the type of location
- class cuda.bindings.driver.CUmemLocation(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemLocationSpecifies a memory location.
To specify a gpu, set type =
hipMemLocationTypeDeviceand set id = the gpu’s device ID- type: Any#
- id: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemLocation_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemLocationSpecifies a memory location.
To specify a gpu, set type =
hipMemLocationTypeDeviceand set id = the gpu’s device ID- type: Any#
- id: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemLocation_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemLocationSpecifies a memory location.
To specify a gpu, set type =
hipMemLocationTypeDeviceand set id = the gpu’s device ID- type: Any#
- id: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemLocation(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemLocationSpecifies a memory location.
To specify a gpu, set type =
hipMemLocationTypeDeviceand set id = the gpu’s device ID- type: Any#
- id: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemcpyFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemcpyFlags#
Bases:
enum.IntEnumFlags to specify for copies within a batch. Used with hipMemcpyBatchAsync
- cuda.bindings.driver.HIP_PYTHON_CUmemcpyFlags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemcpyFlags_enum#
Bases:
enum.IntEnumFlags to specify for copies within a batch. Used with hipMemcpyBatchAsync
- cuda.bindings.driver.HIP_PYTHON_cudaMemcpyFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemcpyFlags#
Bases:
enum.IntEnumFlags to specify for copies within a batch. Used with hipMemcpyBatchAsync
- cuda.bindings.driver.HIP_PYTHON_CUmemcpySrcAccessOrder_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemcpySrcAccessOrder#
Bases:
enum.IntEnumFlags to specify order in which source pointer is accessed by Batch memcpy
- cuda.bindings.driver.HIP_PYTHON_CUmemcpySrcAccessOrder_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemcpySrcAccessOrder_enum#
Bases:
enum.IntEnumFlags to specify order in which source pointer is accessed by Batch memcpy
- cuda.bindings.driver.HIP_PYTHON_cudaMemcpySrcAccessOrder_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemcpySrcAccessOrder#
Bases:
enum.IntEnumFlags to specify order in which source pointer is accessed by Batch memcpy
- class cuda.bindings.driver.CUmemcpyAttributes(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyAttributesAttributes for copies within a batch.
- srcAccessOrder: Any#
- srcLocHint: Any#
- dstLocHint: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemcpyAttributes_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyAttributesAttributes for copies within a batch.
- srcAccessOrder: Any#
- srcLocHint: Any#
- dstLocHint: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemcpyAttributes_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyAttributesAttributes for copies within a batch.
- srcAccessOrder: Any#
- srcLocHint: Any#
- dstLocHint: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemcpyAttributes(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyAttributesAttributes for copies within a batch.
- srcAccessOrder: Any#
- srcLocHint: Any#
- dstLocHint: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemcpy3DOperandType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemcpy3DOperandType#
Bases:
enum.IntEnumOperand types for individual copies within a batch
- cuda.bindings.driver.HIP_PYTHON_CUmemcpy3DOperandType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemcpy3DOperandType_enum#
Bases:
enum.IntEnumOperand types for individual copies within a batch
- cuda.bindings.driver.HIP_PYTHON_cudaMemcpy3DOperandType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemcpy3DOperandType#
Bases:
enum.IntEnumOperand types for individual copies within a batch
- class cuda.bindings.driver.CUoffset3D(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipOffset3DStruct representing offset into a hipArray_t in elements.
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUoffset3D_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipOffset3DStruct representing offset into a hipArray_t in elements.
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUoffset3D_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipOffset3DStruct representing offset into a hipArray_t in elements.
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaOffset3D(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipOffset3DStruct representing offset into a hipArray_t in elements.
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemcpy3DOperand(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DOperandStruct representing an operand for copy with hipMemcpy3DBatchAsync.
- type: Any#
- op: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemcpy3DOperand_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DOperandStruct representing an operand for copy with hipMemcpy3DBatchAsync.
- type: Any#
- op: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemcpy3DOperand_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DOperandStruct representing an operand for copy with hipMemcpy3DBatchAsync.
- type: Any#
- op: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemcpy3DOperand(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DOperandStruct representing an operand for copy with hipMemcpy3DBatchAsync.
- type: Any#
- op: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_BATCH_OP(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DBatchOpHIP 3D Batch Op
- src: Any#
- dst: Any#
- extent: Any#
- srcAccessOrder: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_BATCH_OP_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DBatchOpHIP 3D Batch Op
- src: Any#
- dst: Any#
- extent: Any#
- srcAccessOrder: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY3D_BATCH_OP_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DBatchOpHIP 3D Batch Op
- src: Any#
- dst: Any#
- extent: Any#
- srcAccessOrder: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemcpy3DBatchOp(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DBatchOpHIP 3D Batch Op
- src: Any#
- dst: Any#
- extent: Any#
- srcAccessOrder: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemcpy3DPeerParms(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpy3DPeerParms(No short description)
- srcArray: Any#
- srcPos: Any#
- srcPtr: Any#
- srcDevice: Any#
- dstArray: Any#
- dstPos: Any#
- dstPtr: Any#
- dstDevice: Any#
- extent: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUfunction_attribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUfunction_attribute#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUfunction_attribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUfunction_attribute_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUpointer_attribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUpointer_attribute#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUpointer_attribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUpointer_attribute_enum#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.uchar1(*args, **kwargs)#
Bases:
rocm.bindings.hip.uchar1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uchar2(*args, **kwargs)#
Bases:
rocm.bindings.hip.uchar2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uchar3(*args, **kwargs)#
Bases:
rocm.bindings.hip.uchar3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uchar4(*args, **kwargs)#
Bases:
rocm.bindings.hip.uchar4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.char1(*args, **kwargs)#
Bases:
rocm.bindings.hip.char1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.char2(*args, **kwargs)#
Bases:
rocm.bindings.hip.char2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.char3(*args, **kwargs)#
Bases:
rocm.bindings.hip.char3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.char4(*args, **kwargs)#
Bases:
rocm.bindings.hip.char4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ushort1(*args, **kwargs)#
Bases:
rocm.bindings.hip.ushort1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ushort2(*args, **kwargs)#
Bases:
rocm.bindings.hip.ushort2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ushort3(*args, **kwargs)#
Bases:
rocm.bindings.hip.ushort3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ushort4(*args, **kwargs)#
Bases:
rocm.bindings.hip.ushort4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.short1(*args, **kwargs)#
Bases:
rocm.bindings.hip.short1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.short2(*args, **kwargs)#
Bases:
rocm.bindings.hip.short2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.short3(*args, **kwargs)#
Bases:
rocm.bindings.hip.short3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.short4(*args, **kwargs)#
Bases:
rocm.bindings.hip.short4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uint1(*args, **kwargs)#
Bases:
rocm.bindings.hip.uint1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uint2(*args, **kwargs)#
Bases:
rocm.bindings.hip.uint2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uint3(*args, **kwargs)#
Bases:
rocm.bindings.hip.uint3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.uint4(*args, **kwargs)#
Bases:
rocm.bindings.hip.uint4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.int1(*args, **kwargs)#
Bases:
rocm.bindings.hip.int1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.int2(*args, **kwargs)#
Bases:
rocm.bindings.hip.int2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.int3(*args, **kwargs)#
Bases:
rocm.bindings.hip.int3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.int4(*args, **kwargs)#
Bases:
rocm.bindings.hip.int4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulong1(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulong1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulong2(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulong2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulong3(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulong3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulong4(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulong4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.long1(*args, **kwargs)#
Bases:
rocm.bindings.hip.long1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.long2(*args, **kwargs)#
Bases:
rocm.bindings.hip.long2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.long3(*args, **kwargs)#
Bases:
rocm.bindings.hip.long3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.long4(*args, **kwargs)#
Bases:
rocm.bindings.hip.long4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulonglong1(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulonglong1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulonglong2(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulonglong2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulonglong3(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulonglong3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.ulonglong4(*args, **kwargs)#
Bases:
rocm.bindings.hip.ulonglong4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.longlong1(*args, **kwargs)#
Bases:
rocm.bindings.hip.longlong1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.longlong2(*args, **kwargs)#
Bases:
rocm.bindings.hip.longlong2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.longlong3(*args, **kwargs)#
Bases:
rocm.bindings.hip.longlong3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.longlong4(*args, **kwargs)#
Bases:
rocm.bindings.hip.longlong4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.float1(*args, **kwargs)#
Bases:
rocm.bindings.hip.float1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.float2(*args, **kwargs)#
Bases:
rocm.bindings.hip.float2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.float3(*args, **kwargs)#
Bases:
rocm.bindings.hip.float3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.float4(*args, **kwargs)#
Bases:
rocm.bindings.hip.float4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.double1(*args, **kwargs)#
Bases:
rocm.bindings.hip.double1(No short description)
- x: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.double2(*args, **kwargs)#
Bases:
rocm.bindings.hip.double2(No short description)
- x: Any#
- y: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.double3(*args, **kwargs)#
Bases:
rocm.bindings.hip.double3(No short description)
- x: Any#
- y: Any#
- z: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.double4(*args, **kwargs)#
Bases:
rocm.bindings.hip.double4(No short description)
- x: Any#
- y: Any#
- z: Any#
- w: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.cudaCreateChannelDesc(x, y, z, w, f)#
!__LP64__
- Args:
- x (
int): (undocumented)
- y (
int): (undocumented)
- z (
int): (undocumented)
- w (
int): (undocumented)
- f (
hipChannelFormatKind): (undocumented)
- x (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:Always returns
hipSuccess.
hipChannelFormatDesc: (undocumented)
C signature
struct hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, enum hipChannelFormatKind f)
- cuda.bindings.driver.CUtexObject: Any#
- cuda.bindings.driver.CUtexObject_v1: Any#
- cuda.bindings.driver.cudaTextureObject_t: Any#
- cuda.bindings.driver.HIP_PYTHON_cudaTextureAddressMode_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaTextureAddressMode#
Bases:
enum.IntEnumhip texture address modes
- cuda.bindings.driver.HIP_PYTHON_cudaTextureFilterMode_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaTextureFilterMode#
Bases:
enum.IntEnumhip texture filter modes
- cuda.bindings.driver.HIP_PYTHON_cudaTextureReadMode_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaTextureReadMode#
Bases:
enum.IntEnumhip texture read modes
- class cuda.bindings.driver.CUtexref_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.textureReferencehip texture reference
- normalized: Any#
- readMode: Any#
- filterMode: Any#
- channelDesc: Any#
- sRGB: Any#
- maxAnisotropy: Any#
- mipmapFilterMode: Any#
- mipmapLevelBias: Any#
- minMipmapLevelClamp: Any#
- maxMipmapLevelClamp: Any#
- textureObject: Any#
- numChannels: Any#
- format: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.textureReference(*args, **kwargs)#
Bases:
rocm.bindings.hip.textureReferencehip texture reference
- normalized: Any#
- readMode: Any#
- filterMode: Any#
- channelDesc: Any#
- sRGB: Any#
- maxAnisotropy: Any#
- mipmapFilterMode: Any#
- mipmapLevelBias: Any#
- minMipmapLevelClamp: Any#
- maxMipmapLevelClamp: Any#
- textureObject: Any#
- numChannels: Any#
- format: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaTextureDesc(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipTextureDeschip texture descriptor
- filterMode: Any#
- readMode: Any#
- sRGB: Any#
- borderColor: Any#
- normalizedCoords: Any#
- maxAnisotropy: Any#
- mipmapFilterMode: Any#
- mipmapLevelBias: Any#
- minMipmapLevelClamp: Any#
- maxMipmapLevelClamp: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUsurfObject: Any#
- cuda.bindings.driver.CUsurfObject_v1: Any#
- cuda.bindings.driver.cudaSurfaceObject_t: Any#
- class cuda.bindings.driver.surfaceReference(*args, **kwargs)#
Bases:
rocm.bindings.hip.surfaceReferencehip surface reference
- surfaceObject: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_cudaSurfaceBoundaryMode_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaSurfaceBoundaryMode#
Bases:
enum.IntEnumhip surface boundary modes
- class cuda.bindings.driver.CUctx_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipCtx_t(No short description)
- cuda.bindings.driver.CUcontext: Any#
- cuda.bindings.driver.HIP_PYTHON_CUdevice_P2PAttribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUdevice_P2PAttribute#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUdevice_P2PAttribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUdevice_P2PAttribute_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaDeviceP2PAttr_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaDeviceP2PAttr#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaDriverEntryPointQueryResult_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaDriverEntryPointQueryResult#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.CUstream_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipStream_t(No short description)
- cuda.bindings.driver.CUstream: Any#
- cuda.bindings.driver.cudaStream_t: Any#
- class cuda.bindings.driver.CUipcMemHandle_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipIpcMemHandle_st(No short description)
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaIpcMemHandle_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipIpcMemHandle_st(No short description)
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUipcMemHandle: Any#
- cuda.bindings.driver.CUipcMemHandle_v1: Any#
- cuda.bindings.driver.cudaIpcMemHandle_t: Any#
- class cuda.bindings.driver.CUipcEventHandle_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipIpcEventHandle_st(No short description)
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaIpcEventHandle_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipIpcEventHandle_st(No short description)
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUipcEventHandle: Any#
- cuda.bindings.driver.CUipcEventHandle_v1: Any#
- cuda.bindings.driver.cudaIpcEventHandle_t: Any#
- class cuda.bindings.driver.CUmod_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipModule_t(No short description)
- cuda.bindings.driver.CUmodule: Any#
- class cuda.bindings.driver.CUfunc_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipModuleSymbol_t(No short description)
- cuda.bindings.driver.CUfunction: Any#
- cuda.bindings.driver.cudaFunction_t: Any#
- class cuda.bindings.driver.CUlib_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipLibrary_t(No short description)
- cuda.bindings.driver.CUlibrary: Any#
- cuda.bindings.driver.cudaLibrary_t: Any#
- class cuda.bindings.driver.CUkern_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipKernel_t(No short description)
- cuda.bindings.driver.CUkernel: Any#
- cuda.bindings.driver.cudaKernel_t: Any#
- class cuda.bindings.driver.CUmemPoolHandle_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipMemPoolHandle_t(No short description)
- cuda.bindings.driver.CUmemoryPool: Any#
- cuda.bindings.driver.cudaMemPool_t: Any#
- class cuda.bindings.driver.cudaFuncAttributes(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipFuncAttributes(No short description)
- binaryVersion: Any#
- cacheModeCA: Any#
- constSizeBytes: Any#
- localSizeBytes: Any#
- maxThreadsPerBlock: Any#
- numRegs: Any#
- preferredShmemCarveout: Any#
- ptxVersion: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUevent_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipEvent_t(No short description)
- cuda.bindings.driver.CUevent: Any#
- cuda.bindings.driver.cudaEvent_t: Any#
- cuda.bindings.driver.HIP_PYTHON_CUlimit_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlimit#
Bases:
enum.IntEnumhipLimit
- Note:
In HIP device limit-related APIs, any input limit value other than those defined in the enum is treated as “UnsupportedLimit” by default.
- cuda.bindings.driver.HIP_PYTHON_CUlimit_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlimit_enum#
Bases:
enum.IntEnumhipLimit
- Note:
In HIP device limit-related APIs, any input limit value other than those defined in the enum is treated as “UnsupportedLimit” by default.
- cuda.bindings.driver.HIP_PYTHON_cudaLimit_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaLimit#
Bases:
enum.IntEnumhipLimit
- Note:
In HIP device limit-related APIs, any input limit value other than those defined in the enum is treated as “UnsupportedLimit” by default.
- cuda.bindings.driver.HIP_PYTHON_CUstreamBatchMemOpType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamBatchMemOpType#
Bases:
enum.IntEnumOperations for hipStreamBatchMemOp
- cuda.bindings.driver.HIP_PYTHON_CUstreamBatchMemOpType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamBatchMemOpType_enum#
Bases:
enum.IntEnumOperations for hipStreamBatchMemOp
- class cuda.bindings.driver.CUstreamBatchMemOpParams_union(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipStreamBatchMemOpParams_unionUnion representing batch memory operation parameters for HIP streams.
hipStreamBatchMemOpParams is used to specify the parameters for batch memory operations in a HIP stream. This union supports various operations including waiting for a specific value, writing a value, and different flags for wait conditions.
The union includes fields for different types of operations defined in the enum hipStreamBatchMemOpType: - hipStreamMemOpWaitValue32: Wait for a 32-bit value. - hipStreamMemOpWriteValue32: Write a 32-bit value. - hipStreamMemOpWaitValue64: Wait for a 64-bit value. - hipStreamMemOpWriteValue64: Write a 64-bit value.
Each operation type includes an address, the value to wait for or write, flags, and an optional alias that is not relevant on AMD GPUs. Flags can be used to specify different wait conditions such as equality, bitwise AND, greater than or equal, and bitwise NOR.
Example usage:
hipStreamBatchMemOpParams myArray[2]; myArray[0].operation = hipStreamMemOpWaitValue32; myArray[0].waitValue.address = waitAddr1; myArray[0].waitValue.value = 0x1; myArray[0].waitValue.flags = CU_STREAM_WAIT_VALUE_EQ; myArray[1].operation = hipStreamMemOpWriteValue32; myArray[1].writeValue.address = writeAddr1; myArray[1].writeValue.value = 0x1; myArray[1].writeValue.flags = 0x0; result = hipStreamBatchMemOp(stream, 2, myArray, 0);
- operation: Any#
- waitValue: Any#
- writeValue: Any#
- flushRemoteWrites: Any#
- memoryBarrier: Any#
- pad: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUstreamBatchMemOpParams: Any#
- cuda.bindings.driver.CUstreamBatchMemOpParams_v1: Any#
- class cuda.bindings.driver.CUDA_BATCH_MEM_OP_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipBatchMemOpNodeParamsStructure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0; Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
- ctx: Any#
- count: Any#
- paramArray: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_BATCH_MEM_OP_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipBatchMemOpNodeParamsStructure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0; Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
- ctx: Any#
- count: Any#
- paramArray: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipBatchMemOpNodeParamsStructure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0; Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
- ctx: Any#
- count: Any#
- paramArray: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipBatchMemOpNodeParamsStructure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0; Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
- ctx: Any#
- count: Any#
- paramArray: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipBatchMemOpNodeParamsStructure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0; Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
- ctx: Any#
- count: Any#
- paramArray: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipBatchMemOpNodeParamsStructure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
The structure includes the following fields: - ctx: The HIP context to use for the operations. - count: The number of operations in the paramArray. - paramArray: A pointer to an array of hipStreamBatchMemOpParams. - flags: Flags to control the node.
Example usage:
hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0; Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams
- ctx: Any#
- count: Any#
- paramArray: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUmem_advise_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmem_advise#
Bases:
enum.IntEnumHIP Memory Advise values
- Note:
This memory advise enumeration is used on Linux, not Windows.
- cuda.bindings.driver.HIP_PYTHON_CUmem_advise_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmem_advise_enum#
Bases:
enum.IntEnumHIP Memory Advise values
- Note:
This memory advise enumeration is used on Linux, not Windows.
- cuda.bindings.driver.HIP_PYTHON_cudaMemoryAdvise_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemoryAdvise#
Bases:
enum.IntEnumHIP Memory Advise values
- Note:
This memory advise enumeration is used on Linux, not Windows.
- cuda.bindings.driver.HIP_PYTHON_CUmem_range_attribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmem_range_attribute#
Bases:
enum.IntEnumHIP range attributes
- cuda.bindings.driver.HIP_PYTHON_CUmem_range_attribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmem_range_attribute_enum#
Bases:
enum.IntEnumHIP range attributes
- cuda.bindings.driver.HIP_PYTHON_cudaMemRangeAttribute_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemRangeAttribute#
Bases:
enum.IntEnumHIP range attributes
- cuda.bindings.driver.HIP_PYTHON_CUmemPool_attribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemPool_attribute#
Bases:
enum.IntEnumHIP memory pool attributes
- cuda.bindings.driver.HIP_PYTHON_CUmemPool_attribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemPool_attribute_enum#
Bases:
enum.IntEnumHIP memory pool attributes
- cuda.bindings.driver.HIP_PYTHON_cudaMemPoolAttr_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemPoolAttr#
Bases:
enum.IntEnumHIP memory pool attributes
- cuda.bindings.driver.HIP_PYTHON_CUmemAccess_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAccess_flags#
Bases:
enum.IntEnumSpecifies the memory protection flags for mapping
- cuda.bindings.driver.HIP_PYTHON_CUmemAccess_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAccess_flags_enum#
Bases:
enum.IntEnumSpecifies the memory protection flags for mapping
- cuda.bindings.driver.HIP_PYTHON_cudaMemAccessFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemAccessFlags#
Bases:
enum.IntEnumSpecifies the memory protection flags for mapping
- class cuda.bindings.driver.CUmemAccessDesc(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAccessDescMemory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.
This structure changes read, and write permissions for specific memory regions.
- location: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemAccessDesc_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAccessDescMemory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.
This structure changes read, and write permissions for specific memory regions.
- location: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemAccessDesc_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAccessDescMemory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.
This structure changes read, and write permissions for specific memory regions.
- location: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemAccessDesc(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAccessDescMemory access descriptor structure is used to specify memory access permissions for a virtual memory region in Virtual Memory Management API.
This structure changes read, and write permissions for specific memory regions.
- location: Any#
- flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemAllocationType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAllocationType#
Bases:
enum.IntEnumDefines the allocation types
- cuda.bindings.driver.HIP_PYTHON_CUmemAllocationType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAllocationType_enum#
Bases:
enum.IntEnumDefines the allocation types
- cuda.bindings.driver.HIP_PYTHON_cudaMemAllocationType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemAllocationType#
Bases:
enum.IntEnumDefines the allocation types
- cuda.bindings.driver.HIP_PYTHON_CUmemAllocationHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAllocationHandleType#
Bases:
enum.IntEnumFlags for specifying handle types for memory pool allocations
- cuda.bindings.driver.HIP_PYTHON_CUmemAllocationHandleType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAllocationHandleType_enum#
Bases:
enum.IntEnumFlags for specifying handle types for memory pool allocations
- cuda.bindings.driver.HIP_PYTHON_cudaMemAllocationHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaMemAllocationHandleType#
Bases:
enum.IntEnumFlags for specifying handle types for memory pool allocations
- class cuda.bindings.driver.CUmemPoolProps(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPropsSpecifies the properties of allocations made from the pool.
- allocType: Any#
- handleTypes: Any#
- location: Any#
- win32SecurityAttributes: Any#
- maxSize: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemPoolProps_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPropsSpecifies the properties of allocations made from the pool.
- allocType: Any#
- handleTypes: Any#
- location: Any#
- win32SecurityAttributes: Any#
- maxSize: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemPoolProps_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPropsSpecifies the properties of allocations made from the pool.
- allocType: Any#
- handleTypes: Any#
- location: Any#
- win32SecurityAttributes: Any#
- maxSize: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemPoolProps(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPropsSpecifies the properties of allocations made from the pool.
- allocType: Any#
- handleTypes: Any#
- location: Any#
- win32SecurityAttributes: Any#
- maxSize: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemPoolPtrExportData(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPtrExportDataOpaque data structure for exporting a pool allocation
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemPoolPtrExportData_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPtrExportDataOpaque data structure for exporting a pool allocation
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemPoolPtrExportData_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPtrExportDataOpaque data structure for exporting a pool allocation
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemPoolPtrExportData(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemPoolPtrExportDataOpaque data structure for exporting a pool allocation
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_cudaFuncAttribute_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaFuncAttribute#
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
- cuda.bindings.driver.HIP_PYTHON_CUfunc_cache_HALLUCINATE: Any#
- class cuda.bindings.driver.CUfunc_cache#
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
- cuda.bindings.driver.HIP_PYTHON_CUfunc_cache_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUfunc_cache_enum#
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
- cuda.bindings.driver.HIP_PYTHON_cudaFuncCache_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaFuncCache#
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
Bases:
enum.IntEnumOn AMD devices and some Nvidia devices, these hints and controls are ignored.
Warning:
- cuda.bindings.driver.cudaLaunchParams: Any#
- class cuda.bindings.driver.CUDA_LAUNCH_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipFunctionLaunchParams_tstruct hipFunctionLaunchParams_t
- function: Any#
- gridDimX: Any#
- gridDimY: Any#
- gridDimZ: Any#
- blockDimX: Any#
- blockDimY: Any#
- blockDimZ: Any#
- hStream: Any#
- kernelParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_LAUNCH_PARAMS: Any#
- cuda.bindings.driver.CUDA_LAUNCH_PARAMS_v1: Any#
- cuda.bindings.driver.HIP_PYTHON_CUexternalMemoryHandleType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUexternalMemoryHandleType_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUexternalMemoryHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUexternalMemoryHandleType#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaExternalMemoryHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaExternalMemoryHandleType#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalMemoryHandleDesc_st(No short description)
- type: Any#
- handle: Any#
- size: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC: Any#
- cuda.bindings.driver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1: Any#
- cuda.bindings.driver.cudaExternalMemoryHandleDesc: Any#
- class cuda.bindings.driver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalMemoryBufferDesc_st(No short description)
- offset: Any#
- size: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC: Any#
- cuda.bindings.driver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1: Any#
- cuda.bindings.driver.cudaExternalMemoryBufferDesc: Any#
- cuda.bindings.driver.CUexternalMemory: Any#
- cuda.bindings.driver.cudaExternalMemory_t: Any#
- cuda.bindings.driver.HIP_PYTHON_CUexternalSemaphoreHandleType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUexternalSemaphoreHandleType_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUexternalSemaphoreHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUexternalSemaphoreHandleType#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaExternalSemaphoreHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaExternalSemaphoreHandleType#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreHandleDesc_st(No short description)
- type: Any#
- handle: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC: Any#
- cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1: Any#
- cuda.bindings.driver.cudaExternalSemaphoreHandleDesc: Any#
- cuda.bindings.driver.CUexternalSemaphore: Any#
- cuda.bindings.driver.cudaExternalSemaphore_t: Any#
- class cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalParams_st(No short description)
- params: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS: Any#
- cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1: Any#
- cuda.bindings.driver.cudaExternalSemaphoreSignalParams: Any#
- cuda.bindings.driver.cudaExternalSemaphoreSignalParams_v1: Any#
- class cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitParams_stExternal semaphore wait parameters, compatible with driver type
- params: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS: Any#
- cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1: Any#
- cuda.bindings.driver.cudaExternalSemaphoreWaitParams: Any#
- cuda.bindings.driver.cudaExternalSemaphoreWaitParams_v1: Any#
- cuda.bindings.driver.HIP_PYTHON_CUgraphicsRegisterFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphicsRegisterFlags#
Bases:
enum.IntEnumHIP Access falgs for Interop resources.
- cuda.bindings.driver.HIP_PYTHON_CUgraphicsRegisterFlags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphicsRegisterFlags_enum#
Bases:
enum.IntEnumHIP Access falgs for Interop resources.
- cuda.bindings.driver.HIP_PYTHON_cudaGraphicsRegisterFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphicsRegisterFlags#
Bases:
enum.IntEnumHIP Access falgs for Interop resources.
- cuda.bindings.driver.CUgraphicsResource_st: Any#
- cuda.bindings.driver.cudaGraphicsResource: Any#
- cuda.bindings.driver.CUgraphicsResource: Any#
- cuda.bindings.driver.cudaGraphicsResource_t: Any#
- class cuda.bindings.driver.CUgraph_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.ihipGraph(No short description)
- cuda.bindings.driver.CUgraph: Any#
- cuda.bindings.driver.cudaGraph_t: Any#
- class cuda.bindings.driver.CUgraphNode_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphNode(No short description)
- cuda.bindings.driver.CUgraphNode: Any#
- cuda.bindings.driver.cudaGraphNode_t: Any#
- class cuda.bindings.driver.CUgraphExec_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphExec(No short description)
- cuda.bindings.driver.CUgraphExec: Any#
- cuda.bindings.driver.cudaGraphExec_t: Any#
- class cuda.bindings.driver.CUuserObject_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipUserObject(No short description)
- cuda.bindings.driver.CUuserObject: Any#
- cuda.bindings.driver.cudaUserObject_t: Any#
- cuda.bindings.driver.HIP_PYTHON_CUgraphNodeType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphNodeType#
Bases:
enum.IntEnumhipGraphNodeType
- cuda.bindings.driver.HIP_PYTHON_CUgraphNodeType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphNodeType_enum#
Bases:
enum.IntEnumhipGraphNodeType
- cuda.bindings.driver.HIP_PYTHON_cudaGraphNodeType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphNodeType#
Bases:
enum.IntEnumhipGraphNodeType
- class cuda.bindings.driver.CUhostFn(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipHostFn_t(No short description)
- class cuda.bindings.driver.cudaHostFn_t(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipHostFn_t(No short description)
- class cuda.bindings.driver.CUDA_HOST_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipHostNodeParams(No short description)
- fn: Any#
- userData: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_HOST_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipHostNodeParams(No short description)
- fn: Any#
- userData: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_HOST_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipHostNodeParams(No short description)
- fn: Any#
- userData: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaHostNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipHostNodeParams(No short description)
- fn: Any#
- userData: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_KERNEL_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipKernelNodeParams(No short description)
- blockDim: Any#
- extra: Any#
- func: Any#
- gridDim: Any#
- kernelParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_KERNEL_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipKernelNodeParams(No short description)
- blockDim: Any#
- extra: Any#
- func: Any#
- gridDim: Any#
- kernelParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_KERNEL_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipKernelNodeParams(No short description)
- blockDim: Any#
- extra: Any#
- func: Any#
- gridDim: Any#
- kernelParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaKernelNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipKernelNodeParams(No short description)
- blockDim: Any#
- extra: Any#
- func: Any#
- gridDim: Any#
- kernelParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMSET_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemsetParams(No short description)
- dst: Any#
- elementSize: Any#
- height: Any#
- pitch: Any#
- value: Any#
- width: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMSET_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemsetParams(No short description)
- dst: Any#
- elementSize: Any#
- height: Any#
- pitch: Any#
- value: Any#
- width: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMSET_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemsetParams(No short description)
- dst: Any#
- elementSize: Any#
- height: Any#
- pitch: Any#
- value: Any#
- width: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemsetParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemsetParams(No short description)
- dst: Any#
- elementSize: Any#
- height: Any#
- pitch: Any#
- value: Any#
- width: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEM_ALLOC_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocNodeParams(No short description)
- poolProps: Any#
- accessDescs: Any#
- accessDescCount: Any#
- bytesize: Any#
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEM_ALLOC_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocNodeParams(No short description)
- poolProps: Any#
- accessDescs: Any#
- accessDescCount: Any#
- bytesize: Any#
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEM_ALLOC_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocNodeParams(No short description)
- poolProps: Any#
- accessDescs: Any#
- accessDescCount: Any#
- bytesize: Any#
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocNodeParams(No short description)
- poolProps: Any#
- accessDescs: Any#
- accessDescCount: Any#
- bytesize: Any#
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemAllocNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocNodeParams(No short description)
- poolProps: Any#
- accessDescs: Any#
- accessDescCount: Any#
- bytesize: Any#
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUaccessProperty_HALLUCINATE: Any#
- class cuda.bindings.driver.CUaccessProperty#
Bases:
enum.IntEnumSpecifies performance hint with hipAccessPolicyWindow
- cuda.bindings.driver.HIP_PYTHON_CUaccessProperty_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUaccessProperty_enum#
Bases:
enum.IntEnumSpecifies performance hint with hipAccessPolicyWindow
- cuda.bindings.driver.HIP_PYTHON_cudaAccessProperty_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaAccessProperty#
Bases:
enum.IntEnumSpecifies performance hint with hipAccessPolicyWindow
- class cuda.bindings.driver.CUaccessPolicyWindow(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipAccessPolicyWindowSpecifies access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.
- base_ptr: Any#
- hitProp: Any#
- hitRatio: Any#
- missProp: Any#
- num_bytes: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUaccessPolicyWindow_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipAccessPolicyWindowSpecifies access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.
- base_ptr: Any#
- hitProp: Any#
- hitRatio: Any#
- missProp: Any#
- num_bytes: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaAccessPolicyWindow(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipAccessPolicyWindowSpecifies access policy for a window, a contiguous extent of memory beginning at base_ptr and ending at base_ptr + num_bytes.
- base_ptr: Any#
- hitProp: Any#
- hitRatio: Any#
- missProp: Any#
- num_bytes: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUlaunchMemSyncDomainMap(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchMemSyncDomainMapMemory Synchronization Domain map
- default_: Any#
- remote: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUlaunchMemSyncDomainMap_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchMemSyncDomainMapMemory Synchronization Domain map
- default_: Any#
- remote: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaLaunchMemSyncDomainMap(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchMemSyncDomainMapMemory Synchronization Domain map
- default_: Any#
- remote: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaLaunchMemSyncDomainMap_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchMemSyncDomainMapMemory Synchronization Domain map
- default_: Any#
- remote: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUlaunchMemSyncDomain_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlaunchMemSyncDomain#
Bases:
enum.IntEnumMemory Synchronization Domain
- cuda.bindings.driver.HIP_PYTHON_CUlaunchMemSyncDomain_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlaunchMemSyncDomain_enum#
Bases:
enum.IntEnumMemory Synchronization Domain
- cuda.bindings.driver.HIP_PYTHON_cudaLaunchMemSyncDomain_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaLaunchMemSyncDomain#
Bases:
enum.IntEnumMemory Synchronization Domain
- cuda.bindings.driver.HIP_PYTHON_CUsynchronizationPolicy_HALLUCINATE: Any#
- class cuda.bindings.driver.CUsynchronizationPolicy#
Bases:
enum.IntEnumStream Synchronization Policy.
Can be set with hipStreamSetAttribute
- cuda.bindings.driver.HIP_PYTHON_CUsynchronizationPolicy_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUsynchronizationPolicy_enum#
Bases:
enum.IntEnumStream Synchronization Policy.
Can be set with hipStreamSetAttribute
- cuda.bindings.driver.HIP_PYTHON_cudaSynchronizationPolicy_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaSynchronizationPolicy#
Bases:
enum.IntEnumStream Synchronization Policy.
Can be set with hipStreamSetAttribute
- cuda.bindings.driver.HIP_PYTHON_CUlaunchAttributeID_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlaunchAttributeID#
Bases:
enum.IntEnumLaunch Attribute ID
- cuda.bindings.driver.HIP_PYTHON_CUlaunchAttributeID_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUlaunchAttributeID_enum#
Bases:
enum.IntEnumLaunch Attribute ID
- cuda.bindings.driver.HIP_PYTHON_CUstreamAttrID_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamAttrID#
Bases:
enum.IntEnumLaunch Attribute ID
- cuda.bindings.driver.HIP_PYTHON_CUstreamAttrID_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamAttrID_enum#
Bases:
enum.IntEnumLaunch Attribute ID
- cuda.bindings.driver.HIP_PYTHON_cudaLaunchAttributeID_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaLaunchAttributeID#
Bases:
enum.IntEnumLaunch Attribute ID
- cuda.bindings.driver.HIP_PYTHON_cudaStreamAttrID_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaStreamAttrID#
Bases:
enum.IntEnumLaunch Attribute ID
- class cuda.bindings.driver.CUlaunchAttributeValue(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUlaunchAttributeValue_union(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUstreamAttrValue(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUstreamAttrValue_union(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUstreamAttrValue_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaLaunchAttributeValue(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaStreamAttrValue(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttributeValueLaunch Attribute Value
- pad: Any#
- accessPolicyWindow: Any#
- cooperative: Any#
- priority: Any#
- syncPolicy: Any#
- memSyncDomainMap: Any#
- memSyncDomain: Any#
- clusterDim: Any#
- clusterSchedulingPolicyPreference: Any#
- dynDataPrefetch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUgraphExecUpdateResult_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphExecUpdateResult#
Bases:
enum.IntEnumGraph execution update result
- cuda.bindings.driver.HIP_PYTHON_CUgraphExecUpdateResult_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphExecUpdateResult_enum#
Bases:
enum.IntEnumGraph execution update result
- cuda.bindings.driver.HIP_PYTHON_cudaGraphExecUpdateResult_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphExecUpdateResult#
Bases:
enum.IntEnumGraph execution update result
- cuda.bindings.driver.HIP_PYTHON_CUstreamCaptureMode_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamCaptureMode#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUstreamCaptureMode_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamCaptureMode_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaStreamCaptureMode_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaStreamCaptureMode#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUstreamCaptureStatus_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamCaptureStatus#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUstreamCaptureStatus_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamCaptureStatus_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaStreamCaptureStatus_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaStreamCaptureStatus#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamUpdateCaptureDependencies_flags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUstreamUpdateCaptureDependencies_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUstreamUpdateCaptureDependencies_flags_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaStreamUpdateCaptureDependenciesFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaStreamUpdateCaptureDependenciesFlags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphMem_attribute_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphMem_attribute#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphMem_attribute_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphMem_attribute_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaGraphMemAttributeType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphMemAttributeType#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUuserObject_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUuserObject_flags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUuserObject_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUuserObject_flags_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaUserObjectFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaUserObjectFlags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUuserObjectRetain_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUuserObjectRetain_flags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUuserObjectRetain_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUuserObjectRetain_flags_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaUserObjectRetainFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaUserObjectRetainFlags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphInstantiate_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphInstantiate_flags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphInstantiate_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphInstantiate_flags_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaGraphInstantiateFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphInstantiateFlags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphDebugDot_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphDebugDot_flags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphDebugDot_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphDebugDot_flags_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaGraphDebugDotFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphDebugDotFlags#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphInstantiateResult_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphInstantiateResult#
Bases:
enum.IntEnumhipGraphInstantiateWithParams results
- cuda.bindings.driver.HIP_PYTHON_CUgraphInstantiateResult_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphInstantiateResult_enum#
Bases:
enum.IntEnumhipGraphInstantiateWithParams results
- cuda.bindings.driver.HIP_PYTHON_cudaGraphInstantiateResult_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphInstantiateResult#
Bases:
enum.IntEnumhipGraphInstantiateWithParams results
- class cuda.bindings.driver.CUDA_GRAPH_INSTANTIATE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphInstantiateParamsGraph Instantiation parameters
- errNode_out: Any#
- flags: Any#
- result_out: Any#
- uploadStream: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_GRAPH_INSTANTIATE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphInstantiateParamsGraph Instantiation parameters
- errNode_out: Any#
- flags: Any#
- result_out: Any#
- uploadStream: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaGraphInstantiateParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphInstantiateParamsGraph Instantiation parameters
- errNode_out: Any#
- flags: Any#
- result_out: Any#
- uploadStream: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaGraphInstantiateParams_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphInstantiateParamsGraph Instantiation parameters
- errNode_out: Any#
- flags: Any#
- result_out: Any#
- uploadStream: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemAllocationProp(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocationPropMemory allocation properties
- type: Any#
- location: Any#
- win32HandleMetaData: Any#
- allocFlags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemAllocationProp_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocationPropMemory allocation properties
- type: Any#
- location: Any#
- win32HandleMetaData: Any#
- allocFlags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUmemAllocationProp_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemAllocationPropMemory allocation properties
- type: Any#
- location: Any#
- win32HandleMetaData: Any#
- allocFlags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaExternalSemaphoreSignalNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaExternalSemaphoreSignalNodeParamsV2(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreSignalNodeParamsExternal semaphore signal node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_WAIT_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaExternalSemaphoreWaitNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaExternalSemaphoreWaitNodeParamsV2(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipExternalSemaphoreWaitNodeParamsExternal semaphore wait node parameters
- extSemArray: Any#
- paramsArray: Any#
- numExtSems: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUmemGenericAllocationHandle: Any#
- cuda.bindings.driver.CUmemGenericAllocationHandle_v1: Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemAllocationGranularity_flags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAllocationGranularity_flags#
Bases:
enum.IntEnumFlags for granularity
- cuda.bindings.driver.HIP_PYTHON_CUmemAllocationGranularity_flags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemAllocationGranularity_flags_enum#
Bases:
enum.IntEnumFlags for granularity
- cuda.bindings.driver.HIP_PYTHON_CUmemHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemHandleType#
Bases:
enum.IntEnumMemory handle type
- cuda.bindings.driver.HIP_PYTHON_CUmemHandleType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemHandleType_enum#
Bases:
enum.IntEnumMemory handle type
- cuda.bindings.driver.HIP_PYTHON_CUmemOperationType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemOperationType#
Bases:
enum.IntEnumMemory operation types
- cuda.bindings.driver.HIP_PYTHON_CUmemOperationType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemOperationType_enum#
Bases:
enum.IntEnumMemory operation types
- cuda.bindings.driver.HIP_PYTHON_CUarraySparseSubresourceType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUarraySparseSubresourceType#
Bases:
enum.IntEnumSubresource types for sparse arrays
- cuda.bindings.driver.HIP_PYTHON_CUarraySparseSubresourceType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUarraySparseSubresourceType_enum#
Bases:
enum.IntEnumSubresource types for sparse arrays
- class cuda.bindings.driver.CUarrayMapInfo(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipArrayMapInfoMap info for arrays
- resourceType: Any#
- resource: Any#
- subresourceType: Any#
- subresource: Any#
- memOperationType: Any#
- memHandleType: Any#
- memHandle: Any#
- offset: Any#
- deviceBitMask: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUarrayMapInfo_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipArrayMapInfoMap info for arrays
- resourceType: Any#
- resource: Any#
- subresourceType: Any#
- subresource: Any#
- memOperationType: Any#
- memHandleType: Any#
- memHandle: Any#
- offset: Any#
- deviceBitMask: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUarrayMapInfo_v1(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipArrayMapInfoMap info for arrays
- resourceType: Any#
- resource: Any#
- subresourceType: Any#
- subresource: Any#
- memOperationType: Any#
- memHandleType: Any#
- memHandle: Any#
- offset: Any#
- deviceBitMask: Any#
- flags: Any#
- reserved: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyNodeParamsMemcpy node params
- flags: Any#
- reserved: Any#
- copyParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEMCPY_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyNodeParamsMemcpy node params
- flags: Any#
- reserved: Any#
- copyParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemcpyNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemcpyNodeParamsMemcpy node params
- flags: Any#
- reserved: Any#
- copyParams: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_CHILD_GRAPH_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipChildGraphNodeParamsChild graph node params
- graph: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_CHILD_GRAPH_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipChildGraphNodeParamsChild graph node params
- graph: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaChildGraphNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipChildGraphNodeParamsChild graph node params
- graph: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EVENT_WAIT_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipEventWaitNodeParamsEvent record node params
- event: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EVENT_WAIT_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipEventWaitNodeParamsEvent record node params
- event: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaEventWaitNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipEventWaitNodeParamsEvent record node params
- event: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EVENT_RECORD_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipEventRecordNodeParamsEvent record node params
- event: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_EVENT_RECORD_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipEventRecordNodeParamsEvent record node params
- event: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaEventRecordNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipEventRecordNodeParamsEvent record node params
- event: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEM_FREE_NODE_PARAMS(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemFreeNodeParamsMemory free node params
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUDA_MEM_FREE_NODE_PARAMS_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemFreeNodeParamsMemory free node params
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaMemFreeNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipMemFreeNodeParamsMemory free node params
- dptr: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUgraphNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphNodeParamsParams for different graph nodes
- type: Any#
- reserved0: Any#
- reserved2: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUgraphNodeParams_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphNodeParamsParams for different graph nodes
- type: Any#
- reserved0: Any#
- reserved2: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaGraphNodeParams(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphNodeParamsParams for different graph nodes
- type: Any#
- reserved0: Any#
- reserved2: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.HIP_PYTHON_CUgraphDependencyType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphDependencyType#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_CUgraphDependencyType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUgraphDependencyType_enum#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaGraphDependencyType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphDependencyType#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaGraphDependencyType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaGraphDependencyType_enum#
Bases:
enum.IntEnum(No short description)
- class cuda.bindings.driver.CUgraphEdgeData(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphEdgeData(No short description)
- from_port: Any#
- reserved: Any#
- to_port: Any#
- type: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUgraphEdgeData_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphEdgeData(No short description)
- from_port: Any#
- reserved: Any#
- to_port: Any#
- type: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaGraphEdgeData(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphEdgeData(No short description)
- from_port: Any#
- reserved: Any#
- to_port: Any#
- type: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaGraphEdgeData_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipGraphEdgeData(No short description)
- from_port: Any#
- reserved: Any#
- to_port: Any#
- type: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.CUlaunchAttribute_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttribute_stUsed to specify custom attributes for launching kernels
- id: Any#
- pad: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class cuda.bindings.driver.cudaLaunchAttribute_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchAttribute_stUsed to specify custom attributes for launching kernels
- id: Any#
- pad: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUlaunchAttribute: Any#
- cuda.bindings.driver.cudaLaunchAttribute: Any#
- class cuda.bindings.driver.cudaLaunchConfig_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipLaunchConfig_stHIP extensible launch configuration
- gridDim: Any#
- blockDim: Any#
- dynamicSmemBytes: Any#
- stream: Any#
- attrs: Any#
- numAttrs: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.cudaLaunchConfig_t: Any#
- class cuda.bindings.driver.CUlaunchConfig_st(*args, **kwargs)#
Bases:
rocm.bindings.hip.HIP_LAUNCH_CONFIG_stHIP driver extensible launch configuration
- gridDimX: Any#
- gridDimY: Any#
- gridDimZ: Any#
- blockDimX: Any#
- blockDimY: Any#
- blockDimZ: Any#
- hStream: Any#
- attrs: Any#
- numAttrs: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- cuda.bindings.driver.CUlaunchConfig: Any#
- cuda.bindings.driver.HIP_PYTHON_CUmemRangeHandleType_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemRangeHandleType#
Bases:
enum.IntEnumRequested handle type for address range.
- cuda.bindings.driver.HIP_PYTHON_CUmemRangeHandleType_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemRangeHandleType_enum#
Bases:
enum.IntEnumRequested handle type for address range.
- cuda.bindings.driver.HIP_PYTHON_CUmemRangeFlags_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemRangeFlags#
Bases:
enum.IntEnumMem Range Flags used in hipMemGetHandleForAddressRange.
- cuda.bindings.driver.HIP_PYTHON_CUmemRangeFlags_enum_HALLUCINATE: Any#
- class cuda.bindings.driver.CUmemRangeFlags_enum#
Bases:
enum.IntEnumMem Range Flags used in hipMemGetHandleForAddressRange.
- cuda.bindings.driver.cuInit(flags)#
Explicitly initializes the HIP runtime.
Defines the HIP API. See the individual sections for more information.
This section describes the initializtion and version functions of HIP runtime API.
Most HIP APIs implicitly initialize the HIP runtime. This API provides control over the timing of the initialization.
- Note:
Applications that use fork() should not initialize the HIP runtime before the fork when the child process will continue executing HIP code without an immediate exec(). Instead, the parent and child processes should initialize HIP independently after fork(). Inheriting HIP runtime state across fork() may lead to undefined behavior or initialization failures.
- Args:
- flags (
int) – IN: Initialization flag, should be zero.
- flags (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipInit(unsigned int flags)
- cuda.bindings.driver.cuDriverGetVersion()#
Returns the approximate HIP driver version.
HIP driver version shows up in the format: HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH.
- Warning:
The HIP driver version does not correspond to an exact CUDA driver revision. On AMD platform, the API returns the HIP driver version, while on NVIDIA platform, it calls the corresponding CUDA runtime API and returns the CUDA driver version. There is no mapping/correlation between HIP driver version and CUDA driver version.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:driver version
C signature
hipError_t hipDriverGetVersion(int * driverVersion)
- cuda.bindings.driver.cudaDriverGetVersion()#
Returns the approximate HIP driver version.
HIP driver version shows up in the format: HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH.
- Warning:
The HIP driver version does not correspond to an exact CUDA driver revision. On AMD platform, the API returns the HIP driver version, while on NVIDIA platform, it calls the corresponding CUDA runtime API and returns the CUDA driver version. There is no mapping/correlation between HIP driver version and CUDA driver version.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:driver version
C signature
hipError_t hipDriverGetVersion(int * driverVersion)
- cuda.bindings.driver.cudaRuntimeGetVersion()#
Returns the approximate HIP Runtime version.
- Warning:
The version definition of HIP runtime is different from CUDA. On AMD platform, the function returns HIP runtime version, while on NVIDIA platform, it returns CUDA runtime version. And there is no mapping/correlation between HIP version and CUDA version.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:HIP runtime version
C signature
hipError_t hipRuntimeGetVersion(int * runtimeVersion)
- cuda.bindings.driver.getLocalRuntimeVersion()#
Returns the approximate HIP Runtime version.
- Warning:
The version definition of HIP runtime is different from CUDA. On AMD platform, the function returns HIP runtime version, while on NVIDIA platform, it returns CUDA runtime version. And there is no mapping/correlation between HIP version and CUDA version.
- See:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:HIP runtime version
C signature
hipError_t hipRuntimeGetVersion(int * runtimeVersion)
- cuda.bindings.driver.cuDeviceGet(ordinal)#
Returns a handle to a compute device
- Args:
- ordinal (
int) – IN: Device ordinal
- ordinal (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:Handle of device
C signature
hipError_t hipDeviceGet(hipDevice_t * device, int ordinal)
- cuda.bindings.driver.cuDeviceComputeCapability(device)#
Returns the compute capability of the device
- Args:
- device (
int) – IN: Device ordinal
- device (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:Major compute capability version number
int:Minor compute capability version number
C signature
hipError_t hipDeviceComputeCapability(int * major, int * minor, hipDevice_t device)
- cuda.bindings.driver.cuDeviceGetName(len, device)#
Returns an identifer string for the device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGetName(char * name, int len, hipDevice_t device)
- cuda.bindings.driver.cuDeviceGetUuid(device)#
Returns an UUID for the device.[BETA]
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: device ordinal
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipUUID_t:UUID for the device
C signature
hipError_t hipDeviceGetUuid(hipUUID * uuid, hipDevice_t device)
- cuda.bindings.driver.cuDeviceGetUuid_v2(device)#
Returns an UUID for the device.[BETA]
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: device ordinal
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipUUID_t:UUID for the device
C signature
hipError_t hipDeviceGetUuid(hipUUID * uuid, hipDevice_t device)
- cuda.bindings.driver.cuDeviceGetP2PAttribute(attr, srcDevice, dstDevice)#
Returns a value for attribute of link between two devices
- Args:
- attr (
hipDeviceP2PAttr) – IN: enum of hipDeviceP2PAttr to query
- srcDevice (
int) – IN: The source device of the link
- dstDevice (
int) – IN: The destination device of the link
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:Pointer of the value for the attrubute
C signature
hipError_t hipDeviceGetP2PAttribute(int * value, hipDeviceP2PAttr attr, int srcDevice, int dstDevice)
- cuda.bindings.driver.cudaDeviceGetP2PAttribute(attr, srcDevice, dstDevice)#
Returns a value for attribute of link between two devices
- Args:
- attr (
hipDeviceP2PAttr) – IN: enum of hipDeviceP2PAttr to query
- srcDevice (
int) – IN: The source device of the link
- dstDevice (
int) – IN: The destination device of the link
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:Pointer of the value for the attrubute
C signature
hipError_t hipDeviceGetP2PAttribute(int * value, hipDeviceP2PAttr attr, int srcDevice, int dstDevice)
- cuda.bindings.driver.cuDeviceGetPCIBusId(len, device)#
Returns a PCI Bus Id string for the device, overloaded to take int device ID.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGetPCIBusId(char * pciBusId, int len, int device)
- cuda.bindings.driver.cudaDeviceGetPCIBusId(len, device)#
Returns a PCI Bus Id string for the device, overloaded to take int device ID.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGetPCIBusId(char * pciBusId, int len, int device)
- cuda.bindings.driver.cuDeviceGetByPCIBusId(pciBusId)#
Returns a handle to a compute device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:The handle of the device
C signature
hipError_t hipDeviceGetByPCIBusId(int * device, const char * pciBusId)
- cuda.bindings.driver.cudaDeviceGetByPCIBusId(pciBusId)#
Returns a handle to a compute device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:The handle of the device
C signature
hipError_t hipDeviceGetByPCIBusId(int * device, const char * pciBusId)
- cuda.bindings.driver.cuDeviceTotalMem(device)#
Returns the total amount of memory on the device.
- Args:
- device (
int) – IN: The ordinal of the device
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:The size of memory in bytes, on the device
C signature
hipError_t hipDeviceTotalMem(size_t * bytes, hipDevice_t device)
- cuda.bindings.driver.cuDeviceTotalMem_v2(device)#
Returns the total amount of memory on the device.
- Args:
- device (
int) – IN: The ordinal of the device
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:The size of memory in bytes, on the device
C signature
hipError_t hipDeviceTotalMem(size_t * bytes, hipDevice_t device)
- cuda.bindings.driver.cudaDeviceSynchronize()#
Waits on all active streams on current device
This section describes the device management functions of HIP runtime API.
When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).
- See:
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDeviceSynchronize()
- cuda.bindings.driver.cudaThreadSynchronize()#
Waits on all active streams on current device
This section describes the device management functions of HIP runtime API.
When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).
- See:
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDeviceSynchronize()
- cuda.bindings.driver.cudaDeviceReset()#
The state of current device is discarded and updated to a fresh state.
Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.
- See:
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDeviceReset()
- cuda.bindings.driver.cudaThreadExit()#
The state of current device is discarded and updated to a fresh state.
Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.
- See:
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDeviceReset()
- cuda.bindings.driver.cudaSetDevice(deviceId)#
Set default device to be used for subsequent hip API calls from this thread.
Sets
deviceas the default device for the calling host thread. Valid device id’s are 0… (hipGetDeviceCount()-1).Many HIP APIs implicitly use the “default device” :
Any device memory subsequently allocated from this host thread (using hipMalloc) will be
allocated on device. - Any streams or events created from this host thread will be associated with device. - Any kernels launched from this host thread (using hipLaunchKernel) will be executed on device (unless a specific stream is specified, in which case the device associated with that stream will be used).
This function may be called from any host thread. Multiple host threads may use the same device. This function does no synchronization with the previous or new device, and has very little runtime overhead. Applications can use hipSetDevice to quickly switch the default device before making a HIP runtime call which uses the default device.
The default device is stored in thread-local-storage for each thread. Thread-pool implementations may inherit the default device of the previous thread. A good practice is to always call hipSetDevice at the start of HIP coding sequency to establish a known standard device.
- See:
- Args:
- deviceId (
int) – IN: Valid device in range 0…hipGetDeviceCount().
- deviceId (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorNoDevice
C signature
hipError_t hipSetDevice(int deviceId)
- cuda.bindings.driver.cudaSetValidDevices(len)#
Set a list of devices that can be used.
- See:
hipGetDevice,hipGetDeviceCount.hipSetDevice.hipGetDeviceProperties.hipSetDeviceFlags.hipChooseDevice- Args:
- len (
int) – IN: Number of devices in specified list
- len (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:List of devices to try
C signature
hipError_t hipSetValidDevices(int * device_arr, int len)
- cuda.bindings.driver.cudaGetDevice()#
Return the default device id for the calling host thread.
HIP maintains an default device for each thread using thread-local-storage. This device is used implicitly for HIP runtime APIs called by this thread. hipGetDevice returns in *
devicethe default device for the calling host thread.- See:
hipSetDevice,hipGetDevicesizeBytes- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipGetDevice(int * deviceId)
- cuda.bindings.driver.cuDeviceGetCount()#
Return number of compute-capable devices.
Returns in
*countthe number of devices that have ability to run compute commands. If there are no such devices, thenhipGetDeviceCountwill returnhipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returnshipSuccess.- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNoDeviceint:Returns number of compute-capable devices.
C signature
hipError_t hipGetDeviceCount(int * count)
- cuda.bindings.driver.cudaGetDeviceCount()#
Return number of compute-capable devices.
Returns in
*countthe number of devices that have ability to run compute commands. If there are no such devices, thenhipGetDeviceCountwill returnhipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returnshipSuccess.- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNoDeviceint:Returns number of compute-capable devices.
C signature
hipError_t hipGetDeviceCount(int * count)
- cuda.bindings.driver.cuDeviceGetAttribute(attr, deviceId)#
Query for a specific device attribute.
- Args:
- attr (
hipDeviceAttribute_t) – IN: attribute to query
- deviceId (
int) – IN: which device to query for information
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:pointer to value to return
C signature
hipError_t hipDeviceGetAttribute(int * pi, hipDeviceAttribute_t attr, int deviceId)
- cuda.bindings.driver.cudaDeviceGetAttribute(attr, deviceId)#
Query for a specific device attribute.
- Args:
- attr (
hipDeviceAttribute_t) – IN: attribute to query
- deviceId (
int) – IN: which device to query for information
- attr (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:pointer to value to return
C signature
hipError_t hipDeviceGetAttribute(int * pi, hipDeviceAttribute_t attr, int deviceId)
- cuda.bindings.driver.cuDeviceGetDefaultMemPool(device)#
Returns the default memory pool of the specified device
- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: Device index for query the default memory pool
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Default memory pool to return
C signature
hipError_t hipDeviceGetDefaultMemPool(hipMemPool_t * mem_pool, int device)
- cuda.bindings.driver.cudaDeviceGetDefaultMemPool(device)#
Returns the default memory pool of the specified device
- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: Device index for query the default memory pool
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Default memory pool to return
C signature
hipError_t hipDeviceGetDefaultMemPool(hipMemPool_t * mem_pool, int device)
- cuda.bindings.driver.cuDeviceSetMemPool(device, mem_pool)#
Sets the current memory pool of a device
The memory pool must be local to the specified device.
hipMallocAsyncallocates from the current mempool of the provided stream’s device. By default, a device’s current memory pool is its default memory pool.- Note:
Use
hipMallocFromPoolAsyncfor asynchronous memory allocations from a device different than the one the stream runs on.- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: Device index for the update
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for update as the current on the specified device
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDevice,hipErrorNotSupported
C signature
hipError_t hipDeviceSetMemPool(int device, hipMemPool_t mem_pool)
- cuda.bindings.driver.cudaDeviceSetMemPool(device, mem_pool)#
Sets the current memory pool of a device
The memory pool must be local to the specified device.
hipMallocAsyncallocates from the current mempool of the provided stream’s device. By default, a device’s current memory pool is its default memory pool.- Note:
Use
hipMallocFromPoolAsyncfor asynchronous memory allocations from a device different than the one the stream runs on.- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: Device index for the update
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for update as the current on the specified device
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDevice,hipErrorNotSupported
C signature
hipError_t hipDeviceSetMemPool(int device, hipMemPool_t mem_pool)
- cuda.bindings.driver.cuDeviceGetMemPool(device)#
Gets the current memory pool for the specified device
Returns the last pool provided to
hipDeviceSetMemPoolfor this device or the device’s default memory pool ifhipDeviceSetMemPoolhas never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set withhipDeviceSetMemPool.- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: Device index to query the current memory pool
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Current memory pool on the specified device
C signature
hipError_t hipDeviceGetMemPool(hipMemPool_t * mem_pool, int device)
- cuda.bindings.driver.cudaDeviceGetMemPool(device)#
Gets the current memory pool for the specified device
Returns the last pool provided to
hipDeviceSetMemPoolfor this device or the device’s default memory pool ifhipDeviceSetMemPoolhas never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set withhipDeviceSetMemPool.- See:
hipDeviceGetDefaultMemPool,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- device (
int) – IN: Device index to query the current memory pool
- device (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Current memory pool on the specified device
C signature
hipError_t hipDeviceGetMemPool(hipMemPool_t * mem_pool, int device)
- cuda.bindings.driver.cudaGetDeviceProperties(deviceId)#
Returns device properties.
- Bug:
HIP-Clang always returns 0 for maxThreadsPerMultiProcessor
- Bug:
HIP-Clang always returns 0 for regsPerBlock
- Bug:
HIP-Clang always returns 0 for l2CacheSize
Populates hipGetDeviceProperties with information for the specified device.
- Args:
- deviceId (
int) – IN: which device to query for information
- deviceId (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevicehipDeviceProp_t:written with device properties
C signature
hipError_t hipGetDevicePropertiesR0600(hipDeviceProp_tR0600 * prop, int deviceId)
- cuda.bindings.driver.cudaDeviceGetTexture1DLinearMaxWidth(desc, device)#
Gets the maximum width for 1D linear textures on the specified device
This function queries the maximum width, in elements, of 1D linear textures that can be allocated on the specified device. The maximum width depends on the texture element size and the hardware limitations of the device.
- See:
- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- device (
int) – IN: Device index to query for maximum 1D texture width
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceint:Maximum width, in elements, of 1D linear textures that the device can support
C signature
hipError_t hipDeviceGetTexture1DLinearMaxWidth(size_t * max_width, const hipChannelFormatDesc * desc, int device)
- cuda.bindings.driver.cudaDeviceSetCacheConfig(cacheConfig)#
Set L1/Shared cache partition.
Note: AMD devices do not support reconfigurable cache. This API is not implemented on AMD platform. If the function is called, it will return hipErrorNotSupported.
- Args:
- cacheConfig (
hipFuncCache_t) – IN: Cache configuration
- cacheConfig (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorNotSupported
C signature
hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
- cuda.bindings.driver.cudaThreadSetCacheConfig(cacheConfig)#
Set L1/Shared cache partition.
Note: AMD devices do not support reconfigurable cache. This API is not implemented on AMD platform. If the function is called, it will return hipErrorNotSupported.
- Args:
- cacheConfig (
hipFuncCache_t) – IN: Cache configuration
- cacheConfig (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorNotSupported
C signature
hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
- cuda.bindings.driver.cudaDeviceGetCacheConfig()#
Get Cache configuration for a specific Device
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotInitializedNote: AMD devices do not support reconfigurable cache. This hint is ignored on these architectures.
hipFuncCache_t:Pointer of cache configuration
C signature
hipError_t hipDeviceGetCacheConfig(hipFuncCache_t * cacheConfig)
- cuda.bindings.driver.cudaThreadGetCacheConfig()#
Get Cache configuration for a specific Device
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotInitializedNote: AMD devices do not support reconfigurable cache. This hint is ignored on these architectures.
hipFuncCache_t:Pointer of cache configuration
C signature
hipError_t hipDeviceGetCacheConfig(hipFuncCache_t * cacheConfig)
- cuda.bindings.driver.cuCtxGetLimit(limit)#
Gets resource limits of current device
The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either
hipLimitStackSize, orhipLimitMallocHeapSize. Any other input as default, the function will returnhipErrorUnsupportedLimit.- Args:
- limit (
hipLimit_t) – IN: The limit to query
- limit (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValueint:Returns the size of the limit in bytes
C signature
hipError_t hipDeviceGetLimit(size_t * pValue, enum hipLimit_t limit)
- cuda.bindings.driver.cudaDeviceGetLimit(limit)#
Gets resource limits of current device
The function queries the size of limit value, as required by the input enum value hipLimit_t, which can be either
hipLimitStackSize, orhipLimitMallocHeapSize. Any other input as default, the function will returnhipErrorUnsupportedLimit.- Args:
- limit (
hipLimit_t) – IN: The limit to query
- limit (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValueint:Returns the size of the limit in bytes
C signature
hipError_t hipDeviceGetLimit(size_t * pValue, enum hipLimit_t limit)
- cuda.bindings.driver.cuCtxSetLimit(limit, value)#
Sets resource limits of current device.
As the input enum limit,
hipLimitStackSizesets the limit value of the stack size on the current GPU device, per thread. The limit size can get via hipDeviceGetLimit. The size is in units of 256 dwords, up to the limit (128K - 16).hipLimitMallocHeapSizesets the limit value of the heap used by the malloc()/free() calls. For limit size, use thehipDeviceGetLimitAPI.Any other input as default, the funtion will return hipErrorUnsupportedLimit.
- Args:
- limit (
hipLimit_t) – IN: Enum of hipLimit_t to set
- value (
int) – IN: The size of limit value in bytes
- limit (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValue
C signature
hipError_t hipDeviceSetLimit(enum hipLimit_t limit, size_t value)
- cuda.bindings.driver.cudaDeviceSetLimit(limit, value)#
Sets resource limits of current device.
As the input enum limit,
hipLimitStackSizesets the limit value of the stack size on the current GPU device, per thread. The limit size can get via hipDeviceGetLimit. The size is in units of 256 dwords, up to the limit (128K - 16).hipLimitMallocHeapSizesets the limit value of the heap used by the malloc()/free() calls. For limit size, use thehipDeviceGetLimitAPI.Any other input as default, the funtion will return hipErrorUnsupportedLimit.
- Args:
- limit (
hipLimit_t) – IN: Enum of hipLimit_t to set
- value (
int) – IN: The size of limit value in bytes
- limit (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorUnsupportedLimit,hipErrorInvalidValue
C signature
hipError_t hipDeviceSetLimit(enum hipLimit_t limit, size_t value)
Returns bank width of shared memory for current device
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitializedhipSharedMemConfig:The pointer of the bank width for shared memory
C signature
hipError_t hipDeviceGetSharedMemConfig(hipSharedMemConfig * pConfig)
- cuda.bindings.driver.cudaGetDeviceFlags()#
Gets the flags set for current device
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Pointer of the flags
C signature
hipError_t hipGetDeviceFlags(unsigned int * flags)
The bank width of shared memory on current device is set
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Args:
- config (
hipSharedMemConfig) – IN: Configuration for the bank width of shared memory
- config (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config)
- cuda.bindings.driver.cudaSetDeviceFlags(flags)#
The current device behavior is changed according to the flags passed.
The schedule flags impact how HIP waits for the completion of a command running on a device.
hipDeviceScheduleSpin: HIP runtime will actively spin in the thread which submitted the work until the command completes. This offers the lowest latency, but will consume a CPU core and may increase power.hipDeviceScheduleYield: The HIP runtime will yield the CPU to system so that other tasks can use it. This may increase latency to detect the completion but will consume less power and is friendlier to other tasks in the system.hipDeviceScheduleBlockingSync: On ROCm platform, this is a synonym for hipDeviceScheduleYield.hipDeviceScheduleAuto: This is the default value if the input ‘flags’ is zero. Uses a heuristic to select between Spin and Yield modes. If the number of HIP contexts is greater than the number of logical processors in the system, uses Spin scheduling, otherwise uses Yield scheduling.hipDeviceMapHost: Allows mapping host memory. On ROCm, this is always allowed and the flag is ignored.hipDeviceLmemResizeToMax: This flag is silently ignored on ROCm.- Args:
- flags (
int) – IN: Flag to set on the current device
- flags (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNoDevice,hipErrorInvalidDevice,hipErrorSetOnActiveProcess
C signature
hipError_t hipSetDeviceFlags(unsigned int flags)
- cuda.bindings.driver.cudaChooseDevice(prop)#
Device which matches hipDeviceProp_t is returned
- Args:
- prop (
hipDeviceProp_t/object) – IN: Pointer of the properties
- prop (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Pointer of the device
C signature
hipError_t hipChooseDeviceR0600(int * device, const hipDeviceProp_tR0600 * prop)
- cuda.bindings.driver.cuIpcGetMemHandle(devPtr)#
- Gets an interprocess memory handle for an existing device memory
allocation
Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.
If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidHandle,hipErrorOutOfMemory,hipErrorMapFailedhipIpcMemHandle_st:Pointer to user allocated hipIpcMemHandle to return
the handle in.
C signature
hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t * handle, void * devPtr)
- cuda.bindings.driver.cudaIpcGetMemHandle(devPtr)#
- Gets an interprocess memory handle for an existing device memory
allocation
Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.
If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidHandle,hipErrorOutOfMemory,hipErrorMapFailedhipIpcMemHandle_st:Pointer to user allocated hipIpcMemHandle to return
the handle in.
C signature
hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t * handle, void * devPtr)
- cuda.bindings.driver.cuIpcOpenMemHandle(handle, flags)#
- Opens an interprocess memory handle exported from another process
and returns a device pointer usable in the local process.
Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.
Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.
Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.
Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.
- Note:
During multiple processes, using the same memory handle opened by the current context, there is no guarantee that the same device poiter will be returned in
*devPtr.This is diffrent from CUDA.- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- handle (
hipIpcMemHandle_st): hipIpcMemHandle to open
- flags (
int): Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipIpcOpenMemHandle(void ** devPtr, hipIpcMemHandle_t handle, unsigned int flags)
- cuda.bindings.driver.cudaIpcOpenMemHandle(handle, flags)#
- Opens an interprocess memory handle exported from another process
and returns a device pointer usable in the local process.
Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.
Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.
Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.
Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.
- Note:
During multiple processes, using the same memory handle opened by the current context, there is no guarantee that the same device poiter will be returned in
*devPtr.This is diffrent from CUDA.- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- handle (
hipIpcMemHandle_st): hipIpcMemHandle to open
- flags (
int): Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipIpcOpenMemHandle(void ** devPtr, hipIpcMemHandle_t handle, unsigned int flags)
- cuda.bindings.driver.cuIpcCloseMemHandle(devPtr)#
Close memory mapped with hipIpcOpenMemHandle
Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.
Any resources used to enable peer access will be freed if this is the last mapping using them.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorMapFailed,hipErrorInvalidHandle
C signature
hipError_t hipIpcCloseMemHandle(void * devPtr)
- cuda.bindings.driver.cudaIpcCloseMemHandle(devPtr)#
Close memory mapped with hipIpcOpenMemHandle
Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.
Any resources used to enable peer access will be freed if this is the last mapping using them.
- Note:
This IPC memory related feature API on Windows may behave differently from Linux.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorMapFailed,hipErrorInvalidHandle
C signature
hipError_t hipIpcCloseMemHandle(void * devPtr)
- cuda.bindings.driver.cuIpcGetEventHandle(event)#
Gets an opaque interprocess handle for an event.
This opaque handle may be copied into other processes and opened with hipIpcOpenEventHandle. Then hipEventRecord, hipEventSynchronize, hipStreamWaitEvent and hipEventQuery may be used in either process. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- event (
ihipEvent_t/object) – IN: Event allocated with hipEventInterprocess and hipEventDisableTiming flags
- event (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidConfiguration,hipErrorInvalidValuehipIpcEventHandle_st:Pointer to hipIpcEventHandle to return the opaque event handle
C signature
hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t * handle, hipEvent_t event)
- cuda.bindings.driver.cudaIpcGetEventHandle(event)#
Gets an opaque interprocess handle for an event.
This opaque handle may be copied into other processes and opened with hipIpcOpenEventHandle. Then hipEventRecord, hipEventSynchronize, hipStreamWaitEvent and hipEventQuery may be used in either process. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- event (
ihipEvent_t/object) – IN: Event allocated with hipEventInterprocess and hipEventDisableTiming flags
- event (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidConfiguration,hipErrorInvalidValuehipIpcEventHandle_st:Pointer to hipIpcEventHandle to return the opaque event handle
C signature
hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t * handle, hipEvent_t event)
- cuda.bindings.driver.cuIpcOpenEventHandle(handle)#
Opens an interprocess event handles.
Opens an interprocess event handle exported from another process with hipIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st) – IN: The opaque interprocess handle to open
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidContextihipEvent_t:Pointer to hipEvent_t to return the event
C signature
hipError_t hipIpcOpenEventHandle(hipEvent_t * event, hipIpcEventHandle_t handle)
- cuda.bindings.driver.cudaIpcOpenEventHandle(handle)#
Opens an interprocess event handles.
Opens an interprocess event handle exported from another process with hipIpcGetEventHandle. The returned hipEvent_t behaves like a locally created event with the hipEventDisableTiming flag specified. This event need be freed with hipEventDestroy. Operations on the imported event after the exported event has been freed with hipEventDestroy will result in undefined behavior. If the function is called within the same process where handle is returned by hipIpcGetEventHandle, it will return hipErrorInvalidContext.
- Note:
This IPC event related feature API is currently applicable on Linux.
- Args:
- handle (
hipIpcEventHandle_st) – IN: The opaque interprocess handle to open
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidContextihipEvent_t:Pointer to hipEvent_t to return the event
C signature
hipError_t hipIpcOpenEventHandle(hipEvent_t * event, hipIpcEventHandle_t handle)
- cuda.bindings.driver.cudaFuncSetAttribute(func, attr, value)#
Set attribute for a specific function
This section describes the execution control functions of HIP runtime API.
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Args:
- func (
Pointer/object) – IN: Pointer of the function
- attr (
hipFuncAttribute) – IN: Attribute to set
- value (
int) – IN: Value to set
- func (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceFunction,hipErrorInvalidValue
C signature
hipError_t hipFuncSetAttribute(const void * func, hipFuncAttribute attr, int value)
- cuda.bindings.driver.cudaFuncSetCacheConfig(func, config)#
Set Cache configuration for a specific function
- Args:
- func (
Pointer/object) – IN: Pointer of the function.
- config (
hipFuncCache_t) – IN: Configuration to set.
- func (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitializedNote: AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
C signature
hipError_t hipFuncSetCacheConfig(const void * func, hipFuncCache_t config)
Set shared memory configuation for a specific function
Note: AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- Args:
- func (
Pointer/object) – IN: Pointer of the function
- config (
hipSharedMemConfig) – IN: Configuration
- func (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceFunction,hipErrorInvalidValue
C signature
hipError_t hipFuncSetSharedMemConfig(const void * func, hipSharedMemConfig config)
- cuda.bindings.driver.cudaGetLastError()#
Return last error returned by any HIP runtime API call and resets the stored error code to
hipSuccessThis section describes the error handling functions of HIP runtime API.
Returns the last error that has been returned by any of the runtime calls in the same host thread, and then resets the saved error to
hipSuccess.- See:
hipGetErrorString,hipGetLastError,hipPeakAtLastError,hipError_t- Returns:
hipError_t: return code from last HIP called from the active host thread
C signature
hipError_t hipGetLastError()
- cuda.bindings.driver.cudaPeekAtLastError()#
Return last error returned by any HIP runtime API call.
Returns the last error that has been returned by any of the runtime calls in the same host thread. Unlike hipGetLastError, this function does not reset the saved error code.
- See:
hipGetErrorString,hipGetLastError,hipPeakAtLastError,hipError_t- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipPeekAtLastError()
- cuda.bindings.driver.cudaGetErrorName(hip_error)#
Return hip error as text string form.
- See:
hipGetErrorString,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hip_error (
hipError_t): Error code to convert to name.
- hip_error (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:Always returns
hipSuccess.
bytes: const char pointer to the NULL-terminated error name
C signature
const char * hipGetErrorName(hipError_t hip_error)
- cuda.bindings.driver.cudaGetErrorString(hipError)#
Return handy text string message to explain the error which occurred
- See:
hipGetErrorName,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hipError (
hipError_t): Error code to convert to string.
- hipError (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t:Always returns
hipSuccess.
bytes: const char pointer to the NULL-terminated error string
C signature
const char * hipGetErrorString(hipError_t hipError)
- cuda.bindings.driver.cuGetErrorName(hipError)#
Return hip error as text string form.
- See:
hipGetErrorName,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hipError (
hipError_t) – IN: Error code to convert to string.
- hipError (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDrvGetErrorName(hipError_t hipError, const char ** errorString)
- cuda.bindings.driver.cuGetErrorString(hipError)#
Return handy text string message to explain the error which occurred
- See:
hipGetErrorName,hipGetLastError,hipPeakAtLastError,hipError_t- Args:
- hipError (
hipError_t) – IN: Error code to convert to string.
- hipError (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDrvGetErrorString(hipError_t hipError, const char ** errorString)
- cuda.bindings.driver.cudaStreamCreate()#
Creates an asynchronous stream.
Creates a new asynchronous stream with its associated current device. The
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, the application must call hipStreamDestroy.- See:
hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: One of:py:obj:
hipSuccess,hipErrorInvalidValuepy:obj:
hipSuccess,hipErrorInvalidValue
ihipStream_t:Valid pointer to hipStream_t. This function writes the memory with the newly created stream.
C signature
hipError_t hipStreamCreate(hipStream_t * stream)
- cuda.bindings.driver.cuStreamCreate(flags)#
Creates an asynchronous stream with flag.
Creates a new asynchronous stream with its associated current device.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.The
flagsparameter controls behavior of the stream. The valid values arehipStreamDefaultandhipStreamNonBlocking.- See:
hipStreamCreate,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy.- Args:
- flags (
int) – IN: Parameters to control stream creation
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipStream_t:Pointer to new stream
C signature
hipError_t hipStreamCreateWithFlags(hipStream_t * stream, unsigned int flags)
- cuda.bindings.driver.cudaStreamCreateWithFlags(flags)#
Creates an asynchronous stream with flag.
Creates a new asynchronous stream with its associated current device.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.The
flagsparameter controls behavior of the stream. The valid values arehipStreamDefaultandhipStreamNonBlocking.- See:
hipStreamCreate,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy.- Args:
- flags (
int) – IN: Parameters to control stream creation
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipStream_t:Pointer to new stream
C signature
hipError_t hipStreamCreateWithFlags(hipStream_t * stream, unsigned int flags)
- cuda.bindings.driver.cuStreamCreateWithPriority(flags, priority)#
Creates an asynchronous stream with the specified priority.
Creates a new asynchronous stream with the specified priority, with its associated current device.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.The
flagsparameter controls behavior of the stream. The valid values arehipStreamDefaultandhipStreamNonBlocking.- See:
hipStreamCreate,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipStream_t:Pointer to new stream
C signature
hipError_t hipStreamCreateWithPriority(hipStream_t * stream, unsigned int flags, int priority)
- cuda.bindings.driver.cudaStreamCreateWithPriority(flags, priority)#
Creates an asynchronous stream with the specified priority.
Creates a new asynchronous stream with the specified priority, with its associated current device.
streamreturns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.The
flagsparameter controls behavior of the stream. The valid values arehipStreamDefaultandhipStreamNonBlocking.- See:
hipStreamCreate,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipStream_t:Pointer to new stream
C signature
hipError_t hipStreamCreateWithPriority(hipStream_t * stream, unsigned int flags, int priority)
- cuda.bindings.driver.cuCtxGetStreamPriorityRange()#
Returns numerical values that correspond to the least and greatest stream priority.
Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least and greatest stream priority respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*leastPriority,*greatestPriority]. If the user attempts to create a stream with a priority value that is outside the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.
- Warning:
This API is under development on AMD GPUs and simply returns
hipSuccess.- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccessint:Pointer in which a value corresponding to least priority is returned.
int:Pointer in which a value corresponding to greatest priority is returned.
C signature
hipError_t hipDeviceGetStreamPriorityRange(int * leastPriority, int * greatestPriority)
- cuda.bindings.driver.cudaDeviceGetStreamPriorityRange()#
Returns numerical values that correspond to the least and greatest stream priority.
Returns in *leastPriority and *greatestPriority the numerical values that correspond to the least and greatest stream priority respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*leastPriority,*greatestPriority]. If the user attempts to create a stream with a priority value that is outside the meaningful range as specified by this API, the priority is automatically clamped to within the valid range.
- Warning:
This API is under development on AMD GPUs and simply returns
hipSuccess.- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccessint:Pointer in which a value corresponding to least priority is returned.
int:Pointer in which a value corresponding to greatest priority is returned.
C signature
hipError_t hipDeviceGetStreamPriorityRange(int * leastPriority, int * greatestPriority)
- cuda.bindings.driver.cuStreamDestroy(stream)#
Destroys the specified stream.
Destroys the specified stream.
If commands are still executing on the specified stream, some may complete execution before the queue is deleted.
The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamQuery,hipStreamWaitEvent,hipStreamSynchronize- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- stream (
- Returns:
C signature
hipError_t hipStreamDestroy(hipStream_t stream)
- cuda.bindings.driver.cuStreamDestroy_v2(stream)#
Destroys the specified stream.
Destroys the specified stream.
If commands are still executing on the specified stream, some may complete execution before the queue is deleted.
The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamQuery,hipStreamWaitEvent,hipStreamSynchronize- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- stream (
- Returns:
C signature
hipError_t hipStreamDestroy(hipStream_t stream)
- cuda.bindings.driver.cudaStreamDestroy(stream)#
Destroys the specified stream.
Destroys the specified stream.
If commands are still executing on the specified stream, some may complete execution before the queue is deleted.
The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamQuery,hipStreamWaitEvent,hipStreamSynchronize- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- stream (
- Returns:
C signature
hipError_t hipStreamDestroy(hipStream_t stream)
- cuda.bindings.driver.cuStreamQuery(stream)#
Returns
hipSuccessif all of the operations in the specifiedstreamhave completed, orhipErrorNotReadyif not.This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamWaitEvent,hipStreamSynchronize,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: Stream to query
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotReady,hipErrorInvalidHandle
C signature
hipError_t hipStreamQuery(hipStream_t stream)
- cuda.bindings.driver.cudaStreamQuery(stream)#
Returns
hipSuccessif all of the operations in the specifiedstreamhave completed, orhipErrorNotReadyif not.This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamWaitEvent,hipStreamSynchronize,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: Stream to query
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotReady,hipErrorInvalidHandle
C signature
hipError_t hipStreamQuery(hipStream_t stream)
- cuda.bindings.driver.cuStreamSynchronize(stream)#
Waits for all commands in the stream to complete.
This command is host-synchronous : the host will block until all operations on the specified stream with its associated device are completed. On multiple device systems, the
streamis associated with its device, no need to call hipSetDevice before this API.This command follows standard null-stream semantics. Specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.
This command honors the
hipDeviceScheduleBlockingSyncflag, which controls whether the wait is active or blocking.- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamWaitEvent,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidHandle
C signature
hipError_t hipStreamSynchronize(hipStream_t stream)
- cuda.bindings.driver.cudaStreamSynchronize(stream)#
Waits for all commands in the stream to complete.
This command is host-synchronous : the host will block until all operations on the specified stream with its associated device are completed. On multiple device systems, the
streamis associated with its device, no need to call hipSetDevice before this API.This command follows standard null-stream semantics. Specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.
This command honors the
hipDeviceScheduleBlockingSyncflag, which controls whether the wait is active or blocking.- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamWaitEvent,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidHandle
C signature
hipError_t hipStreamSynchronize(hipStream_t stream)
- cuda.bindings.driver.cuStreamWaitEvent(stream, event, flags)#
Makes the specified compute stream wait for the specified event
This function inserts a wait operation into the specified stream. All future work submitted to
streamwill wait untileventreports completion before beginning execution.- Flags include:
hipEventWaitDefault: Default event creation flag. hipEventWaitExternal: Wait is captured in the graph as an external event node when
performing stream capture
This function only waits for commands in the current stream to complete. Notably, this function does not implicitly wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: Stream to make wait
- event (
ihipEvent_t/object) – IN: Event to wait on
- flags (
int) – IN: Parameters to control the operation
- stream (
- Returns:
C signature
hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
- cuda.bindings.driver.cudaStreamWaitEvent(stream, event, flags)#
Makes the specified compute stream wait for the specified event
This function inserts a wait operation into the specified stream. All future work submitted to
streamwill wait untileventreports completion before beginning execution.- Flags include:
hipEventWaitDefault: Default event creation flag. hipEventWaitExternal: Wait is captured in the graph as an external event node when
performing stream capture
This function only waits for commands in the current stream to complete. Notably, this function does not implicitly wait for commands in the default stream to complete, even if the specified stream is created with hipStreamNonBlocking = 0.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamCreateWithPriority,hipStreamSynchronize,hipStreamDestroy- Args:
- stream (
ihipStream_t/object) – IN: Stream to make wait
- event (
ihipEvent_t/object) – IN: Event to wait on
- flags (
int) – IN: Parameters to control the operation
- stream (
- Returns:
C signature
hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
- cuda.bindings.driver.cuStreamGetFlags(stream)#
Returns flags associated with this stream.
- See:
- Args:
- stream (
ihipStream_t/object) – IN: Stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidHandle.int:Pointer to an unsigned integer in which the stream’s flags are returned
C signature
hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int * flags)
- cuda.bindings.driver.cudaStreamGetFlags(stream)#
Returns flags associated with this stream.
- See:
- Args:
- stream (
ihipStream_t/object) – IN: Stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidHandle.int:Pointer to an unsigned integer in which the stream’s flags are returned
C signature
hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int * flags)
- cuda.bindings.driver.cuStreamGetId(stream)#
Queries the Id of a stream.
- See:
hipStreamCreateWithFlags,hipStreamGetFlags,hipStreamCreateWithPriority,hipStreamGetPriority- Args:
- stream (
ihipStream_t/object) – IN: Stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidHandle.- streamId (
int): (undocumented)
- streamId (
C signature
hipError_t hipStreamGetId(hipStream_t stream, unsigned long long * streamId)
- cuda.bindings.driver.cudaStreamGetId(stream)#
Queries the Id of a stream.
- See:
hipStreamCreateWithFlags,hipStreamGetFlags,hipStreamCreateWithPriority,hipStreamGetPriority- Args:
- stream (
ihipStream_t/object) – IN: Stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidHandle.- streamId (
int): (undocumented)
- streamId (
C signature
hipError_t hipStreamGetId(hipStream_t stream, unsigned long long * streamId)
- cuda.bindings.driver.cuStreamGetPriority(stream)#
Queries the priority of a stream.
- See:
- Args:
- stream (
ihipStream_t/object) – IN: Stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidHandle.int:Pointer to an unsigned integer in which the stream’s priority is returned
C signature
hipError_t hipStreamGetPriority(hipStream_t stream, int * priority)
- cuda.bindings.driver.cudaStreamGetPriority(stream)#
Queries the priority of a stream.
- See:
- Args:
- stream (
ihipStream_t/object) – IN: Stream to be queried
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidHandle.int:Pointer to an unsigned integer in which the stream’s priority is returned
C signature
hipError_t hipStreamGetPriority(hipStream_t stream, int * priority)
- class cuda.bindings.driver.CUstreamCallback(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipStreamCallback_tStream CallBack struct
- class cuda.bindings.driver.cudaStreamCallback_t(*args, **kwargs)#
Bases:
rocm.bindings.hip.hipStreamCallback_tStream CallBack struct
- cuda.bindings.driver.cuStreamAddCallback(stream, callback, userData, flags)#
Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamQuery,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy,hipStreamCreateWithPriority- Args:
- stream (
ihipStream_t/object) – IN: Stream to add callback to
- callback (
hipStreamCallback_t/object) – IN: The function to call once preceding stream operations are complete
- userData (
Pointer/object) – IN: User specified data to be passed to the callback function
- flags (
int) – IN: Reserved for future use, must be 0
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidHandle,hipErrorNotSupported
C signature
hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void * userData, unsigned int flags)
- cuda.bindings.driver.cudaStreamAddCallback(stream, callback, userData, flags)#
Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.
- See:
hipStreamCreate,hipStreamCreateWithFlags,hipStreamQuery,hipStreamSynchronize,hipStreamWaitEvent,hipStreamDestroy,hipStreamCreateWithPriority- Args:
- stream (
ihipStream_t/object) – IN: Stream to add callback to
- callback (
hipStreamCallback_t/object) – IN: The function to call once preceding stream operations are complete
- userData (
Pointer/object) – IN: User specified data to be passed to the callback function
- flags (
int) – IN: Reserved for future use, must be 0
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidHandle,hipErrorNotSupported
C signature
hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void * userData, unsigned int flags)
- cuda.bindings.driver.cuStreamSetAttribute(stream, attr, value)#
Sets stream attribute. Updated attribute is applied to work submitted to the stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to set attributes to
- attr (
hipLaunchAttributeID) – IN: Attribute ID for the attribute to set
- value (
hipLaunchAttributeValue/object) – IN: Attribute value for the attribute to set
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidResourceHandle
C signature
hipError_t hipStreamSetAttribute(hipStream_t stream, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
- cuda.bindings.driver.cudaStreamSetAttribute(stream, attr, value)#
Sets stream attribute. Updated attribute is applied to work submitted to the stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to set attributes to
- attr (
hipLaunchAttributeID) – IN: Attribute ID for the attribute to set
- value (
hipLaunchAttributeValue/object) – IN: Attribute value for the attribute to set
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidResourceHandle
C signature
hipError_t hipStreamSetAttribute(hipStream_t stream, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
- cuda.bindings.driver.cuStreamGetAttribute(stream, attr, value_out)#
queries stream attribute.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to geet attributes from
- attr (
hipLaunchAttributeID) – IN: Attribute ID for the attribute to query
- value_out (
hipLaunchAttributeValue/object): (undocumented)
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidResourceHandle
C signature
hipError_t hipStreamGetAttribute(hipStream_t stream, hipLaunchAttributeID attr, hipLaunchAttributeValue * value_out)
- cuda.bindings.driver.cudaStreamGetAttribute(stream, attr, value_out)#
queries stream attribute.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to geet attributes from
- attr (
hipLaunchAttributeID) – IN: Attribute ID for the attribute to query
- value_out (
hipLaunchAttributeValue/object): (undocumented)
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidResourceHandle
C signature
hipError_t hipStreamGetAttribute(hipStream_t stream, hipLaunchAttributeID attr, hipLaunchAttributeValue * value_out)
- cuda.bindings.driver.cuStreamCopyAttributes(dst, src)#
Copies attributes from source stream to destination stream.
- Args:
- dst (
ihipStream_t/object) – IN: Destination stream
- src (
ihipStream_t/object) – IN: Source stream
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamCopyAttributes(hipStream_t dst, hipStream_t src)
- cuda.bindings.driver.cudaStreamCopyAttributes(dst, src)#
Copies attributes from source stream to destination stream.
- Args:
- dst (
ihipStream_t/object) – IN: Destination stream
- src (
ihipStream_t/object) – IN: Source stream
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamCopyAttributes(hipStream_t dst, hipStream_t src)
- cuda.bindings.driver.cuStreamWaitValue32(stream, ptr, value, flags, mask)#
Enqueues a wait command to the stream.[BETA]
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= valuehipStreamWaitValueEq: waits until *ptr&mask == valuehipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0- Note:
when using
hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.- Note:
Support for
hipStreamWaitValue32can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWaitValue64,hipStreamWriteValue64,hipStreamWriteValue32,hipDeviceGetAttribute- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- ptr (
Pointer/object) – IN: Pointer to memory object allocated using
hipMallocSignalMemoryflag
- value (
int) – IN: Value to be used in compare operation
- flags (
int) – IN: Defines the compare operation, supported values are
hipStreamWaitValueGte
hipStreamWaitValueEq,hipStreamWaitValueAndandhipStreamWaitValueNor- mask (
int) – IN: Mask to be applied on value at memory before it is compared with value,
default value is set to enable every bit
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWaitValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags, uint32_t mask)
- cuda.bindings.driver.cuStreamWaitValue32_v2(stream, ptr, value, flags, mask)#
Enqueues a wait command to the stream.[BETA]
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= valuehipStreamWaitValueEq: waits until *ptr&mask == valuehipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0- Note:
when using
hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.- Note:
Support for
hipStreamWaitValue32can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWaitValue64,hipStreamWriteValue64,hipStreamWriteValue32,hipDeviceGetAttribute- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- ptr (
Pointer/object) – IN: Pointer to memory object allocated using
hipMallocSignalMemoryflag
- value (
int) – IN: Value to be used in compare operation
- flags (
int) – IN: Defines the compare operation, supported values are
hipStreamWaitValueGte
hipStreamWaitValueEq,hipStreamWaitValueAndandhipStreamWaitValueNor- mask (
int) – IN: Mask to be applied on value at memory before it is compared with value,
default value is set to enable every bit
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWaitValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags, uint32_t mask)
- cuda.bindings.driver.cuStreamWaitValue64(stream, ptr, value, flags, mask)#
Enqueues a wait command to the stream.[BETA]
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= valuehipStreamWaitValueEq: waits until *ptr&mask == valuehipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0- Note:
when using
hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.- Note:
Support for hipStreamWaitValue64 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWaitValue32,hipStreamWriteValue64,hipStreamWriteValue32,hipDeviceGetAttribute- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- ptr (
Pointer/object) – IN: Pointer to memory object allocated using ‘hipMallocSignalMemory’ flag
- value (
int) – IN: Value to be used in compare operation
- flags (
int) – IN: Defines the compare operation, supported values are
hipStreamWaitValueGte
hipStreamWaitValueEq,hipStreamWaitValueAndandhipStreamWaitValueNor.- mask (
int) – IN: Mask to be applied on value at memory before it is compared with value
default value is set to enable every bit
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWaitValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags, uint64_t mask)
- cuda.bindings.driver.cuStreamWaitValue64_v2(stream, ptr, value, flags, mask)#
Enqueues a wait command to the stream.[BETA]
Enqueues a wait command to the stream, all operations enqueued on this stream after this, will not execute until the defined wait condition is true.
hipStreamWaitValueGte: waits until *ptr&mask >= valuehipStreamWaitValueEq: waits until *ptr&mask == valuehipStreamWaitValueAnd: waits until ((*ptr&mask) & value) != 0hipStreamWaitValueNor: waits until ~((*ptr&mask) | (value&mask)) != 0- Note:
when using
hipStreamWaitValueNor, mask is applied on both ‘value’ and ‘*ptr’.- Note:
Support for hipStreamWaitValue64 can be queried using ‘hipDeviceGetAttribute()’ and ‘hipDeviceAttributeCanUseStreamWaitValue’ flag.
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWaitValue32,hipStreamWriteValue64,hipStreamWriteValue32,hipDeviceGetAttribute- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- ptr (
Pointer/object) – IN: Pointer to memory object allocated using ‘hipMallocSignalMemory’ flag
- value (
int) – IN: Value to be used in compare operation
- flags (
int) – IN: Defines the compare operation, supported values are
hipStreamWaitValueGte
hipStreamWaitValueEq,hipStreamWaitValueAndandhipStreamWaitValueNor.- mask (
int) – IN: Mask to be applied on value at memory before it is compared with value
default value is set to enable every bit
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWaitValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags, uint64_t mask)
- cuda.bindings.driver.cuStreamWriteValue32(stream, ptr, value, flags)#
Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWriteValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags)
- cuda.bindings.driver.cuStreamWriteValue32_v2(stream, ptr, value, flags)#
Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWriteValue32(hipStream_t stream, void * ptr, uint32_t value, unsigned int flags)
- cuda.bindings.driver.cuStreamWriteValue64(stream, ptr, value, flags)#
Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWriteValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags)
- cuda.bindings.driver.cuStreamWriteValue64_v2(stream, ptr, value, flags)#
Enqueues a write command to the stream.[BETA]
Enqueues a write command to the stream, write operation is performed after all earlier commands on this stream have completed the execution.
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
hipExtMallocWithFlags,hipFree,hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamWriteValue64(hipStream_t stream, void * ptr, uint64_t value, unsigned int flags)
- cuda.bindings.driver.cuStreamBatchMemOp(stream, count, paramArray, flags)#
Enqueues an array of stream memory operations in the stream.[BETA]
Batch operations to synchronize the stream via memory operations.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64.hipStreamWriteValue64- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- count (
int) – IN: The number of operations in the array. Must be less than 256
- paramArray (
hipStreamBatchMemOpParams_union/object) – IN: The types and parameters of the individual operations.
- flags (
int) – IN: Reserved for future expansion; must be 0.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBatchMemOp(hipStream_t stream, unsigned int count, hipStreamBatchMemOpParams * paramArray, unsigned int flags)
- cuda.bindings.driver.cuStreamBatchMemOp_v2(stream, count, paramArray, flags)#
Enqueues an array of stream memory operations in the stream.[BETA]
Batch operations to synchronize the stream via memory operations.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64.hipStreamWriteValue64- Args:
- stream (
ihipStream_t/object) – IN: Stream identifier
- count (
int) – IN: The number of operations in the array. Must be less than 256
- paramArray (
hipStreamBatchMemOpParams_union/object) – IN: The types and parameters of the individual operations.
- flags (
int) – IN: Reserved for future expansion; must be 0.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBatchMemOp(hipStream_t stream, unsigned int count, hipStreamBatchMemOpParams * paramArray, unsigned int flags)
- cuda.bindings.driver.cuGraphAddBatchMemOpNode(hGraph, dependencies, numDependencies, nodeParams)#
Creates a batch memory operation node and adds it to a graph.[BETA]
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64.hipStreamWriteValue64,hipStreamBatchMemOp- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Returns the newly created node
C signature
hipError_t hipGraphAddBatchMemOpNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, const hipBatchMemOpNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphBatchMemOpNodeGetParams(hNode, nodeParams_out)#
Returns a batch mem op node’s parameters.[BETA]
Returns the parameters of batch mem op node hNode in nodeParams_out. The paramArray returned in nodeParams_out is owned by the node. This memory remains valid until the node is destroyed or its parameters are modified, and should not be modified directly.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64.hipStreamWriteValue64.hipGraphBatchMemOpNodeSetParams- Args:
- hNode (
hipGraphNode/object) – IN: Node to get the parameters for
- nodeParams_out (
hipBatchMemOpNodeParams/object) – IN: Pointer to return the parameters
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphBatchMemOpNodeGetParams(hipGraphNode_t hNode, hipBatchMemOpNodeParams * nodeParams_out)
- cuda.bindings.driver.cuGraphBatchMemOpNodeSetParams(hNode, nodeParams)#
Sets the batch mem op node’s parameters.[BETA]
Sets the parameters of batch mem op node hNode to nodeParams.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64.hipStreamWriteValue64,hipGraphBatchMemOpNodeGetParams- Args:
- hNode (
hipGraphNode/object) – IN: Node to set the parameters for
- nodeParams (
hipBatchMemOpNodeParams/object) – IN: Parameters to copy
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphBatchMemOpNodeSetParams(hipGraphNode_t hNode, hipBatchMemOpNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams)#
Sets the parameters for a batch mem op node in the given graphExec.[BETA]
Sets the parameters of a batch mem op node in an executable graph hGraphExec. The node is identified by the corresponding node hNode in the non-executable graph, from which the executable graph was instantiated.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- See:
hipStreamWriteValue32,hipStreamWaitValue32,hipStreamWaitValue64.hipStreamWriteValue64,hipStreamBatchMemOp- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node
- hNode (
hipGraphNode/object) – IN: Batch mem op node from the graph from which graphExec was instantiated
- nodeParams (
hipBatchMemOpNodeParams/object) – IN: Updated Parameters to set
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecBatchMemOpNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipBatchMemOpNodeParams * nodeParams)
- cuda.bindings.driver.cuEventCreate(flags)#
Create an event with the specified flags
- See:
hipEventCreate,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- flags (
int) – IN: Flags to control event behavior. Valid values are
hipEventDefault,hipEventBlockingSync,hipEventDisableTiming,hipEventInterprocesshipEventDefault: Default flag. The event will use active synchronization and will supporttiming. Blocking synchronization provides lowest possible latency at the expense of dedicating a CPU to poll on the event.
hipEventBlockingSync: The event will use blocking synchronization : if hipEventSynchronize iscalled on this event, the thread will block until the event completes. This can increase latency for the synchroniation but can result in lower power and more resources for other CPU threads.
hipEventDisableTiming: Disable recording of timing information. Events created with this flag- would not record profiling data and provide best performance if used for synchronization.
hipEventInterprocess: The event can be used as an interprocess event. hipEventDisableTiming- flag also must be set when hipEventInterprocess flag is set.
hipEventDisableSystemFence: Disable acquire and release system scope fence. This may
improve performance but device memory may not be visible to the host and other devices if this flag is set.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Returns the newly created event.
C signature
hipError_t hipEventCreateWithFlags(hipEvent_t * event, unsigned int flags)
- cuda.bindings.driver.cudaEventCreateWithFlags(flags)#
Create an event with the specified flags
- See:
hipEventCreate,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- flags (
int) – IN: Flags to control event behavior. Valid values are
hipEventDefault,hipEventBlockingSync,hipEventDisableTiming,hipEventInterprocesshipEventDefault: Default flag. The event will use active synchronization and will supporttiming. Blocking synchronization provides lowest possible latency at the expense of dedicating a CPU to poll on the event.
hipEventBlockingSync: The event will use blocking synchronization : if hipEventSynchronize iscalled on this event, the thread will block until the event completes. This can increase latency for the synchroniation but can result in lower power and more resources for other CPU threads.
hipEventDisableTiming: Disable recording of timing information. Events created with this flag- would not record profiling data and provide best performance if used for synchronization.
hipEventInterprocess: The event can be used as an interprocess event. hipEventDisableTiming- flag also must be set when hipEventInterprocess flag is set.
hipEventDisableSystemFence: Disable acquire and release system scope fence. This may
improve performance but device memory may not be visible to the host and other devices if this flag is set.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Returns the newly created event.
C signature
hipError_t hipEventCreateWithFlags(hipEvent_t * event, unsigned int flags)
- cuda.bindings.driver.cudaEventCreate()#
Create an event
- See:
hipEventCreateWithFlags,hipEventRecord,hipEventQuery,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Returns:
A
tupleof size 2 that contains (in that order):ihipEvent_t:Returns the newly created event.
C signature
hipError_t hipEventCreate(hipEvent_t * event)
- cuda.bindings.driver.cuEventRecordWithFlags(event, stream, flags)#
Record an event in the specified stream.
hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).
Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.
- Flags include:
hipEventRecordDefault: Default event creation flag. hipEventRecordExternal: Event is captured in the graph as an external event node when
performing stream capture
If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.
If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.
- Note:
If this function is not called before use hipEventQuery() or hipEventSynchronize(),
hipSuccessis returned, meaning no pending event in the stream.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: event to record.
- stream (
ihipStream_t/object) – IN: stream in which to record event.
- flags (
int) – IN: parameter for operations
- event (
- Returns:
C signature
hipError_t hipEventRecordWithFlags(hipEvent_t event, hipStream_t stream, unsigned int flags)
- cuda.bindings.driver.cudaEventRecordWithFlags(event, stream, flags)#
Record an event in the specified stream.
hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).
Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.
- Flags include:
hipEventRecordDefault: Default event creation flag. hipEventRecordExternal: Event is captured in the graph as an external event node when
performing stream capture
If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.
If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.
- Note:
If this function is not called before use hipEventQuery() or hipEventSynchronize(),
hipSuccessis returned, meaning no pending event in the stream.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: event to record.
- stream (
ihipStream_t/object) – IN: stream in which to record event.
- flags (
int) – IN: parameter for operations
- event (
- Returns:
C signature
hipError_t hipEventRecordWithFlags(hipEvent_t event, hipStream_t stream, unsigned int flags)
- cuda.bindings.driver.cuEventRecord(event, stream)#
Record an event in the specified stream.
hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).
Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.
If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.
If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.
- Note:
If this function is not called before use hipEventQuery() or hipEventSynchronize(),
hipSuccessis returned, meaning no pending event in the stream.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: event to record.
- stream (
ihipStream_t/object) – IN: stream in which to record event.
- event (
- Returns:
C signature
hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
- cuda.bindings.driver.cudaEventRecord(event, stream)#
Record an event in the specified stream.
hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from “recording” (after hipEventRecord() is called) to “recorded” (when timestamps are set, if requested).
Events which are recorded in a non-NULL stream will transition to from recording to “recorded” state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.
If hipEventRecord() has been previously called on this event, then this call will overwrite any existing state in event.
If this function is called on an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed.
- Note:
If this function is not called before use hipEventQuery() or hipEventSynchronize(),
hipSuccessis returned, meaning no pending event in the stream.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventDestroy,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: event to record.
- stream (
ihipStream_t/object) – IN: stream in which to record event.
- event (
- Returns:
C signature
hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
- cuda.bindings.driver.cuEventDestroy(event)#
Destroy the specified event.
Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to destroy.
- event (
- Returns:
hipError_t: One of:
C signature
hipError_t hipEventDestroy(hipEvent_t event)
- cuda.bindings.driver.cuEventDestroy_v2(event)#
Destroy the specified event.
Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to destroy.
- event (
- Returns:
hipError_t: One of:
C signature
hipError_t hipEventDestroy(hipEvent_t event)
- cuda.bindings.driver.cudaEventDestroy(event)#
Destroy the specified event.
Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.
- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventSynchronize,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to destroy.
- event (
- Returns:
hipError_t: One of:
C signature
hipError_t hipEventDestroy(hipEvent_t event)
- cuda.bindings.driver.cuEventSynchronize(event)#
Wait for an event to complete.
This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().
If hipEventRecord() has not been called on
event,this function returnshipSuccesswhen no event is captured.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event on which to wait.
- event (
- Returns:
C signature
hipError_t hipEventSynchronize(hipEvent_t event)
- cuda.bindings.driver.cudaEventSynchronize(event)#
Wait for an event to complete.
This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().
If hipEventRecord() has not been called on
event,this function returnshipSuccesswhen no event is captured.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event on which to wait.
- event (
- Returns:
C signature
hipError_t hipEventSynchronize(hipEvent_t event)
- cuda.bindings.driver.cuEventElapsedTime(start, stop)#
Return the elapsed time between two events.
Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.
Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.
Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().
If hipEventRecord() has not been called on either event, then
hipErrorInvalidHandleis returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would returnhipErrorNotReadyon at least one of the events), thenhipErrorNotReadyis returned.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventSynchronize- Args:
- start (
ihipEvent_t/object) – IN: Start event.
- stop (
ihipEvent_t/object) – IN: Stop event.
- start (
- Returns:
A
tupleof size 2 that contains (in that order):float:Return time between start and stop in ms.
C signature
hipError_t hipEventElapsedTime(float * ms, hipEvent_t start, hipEvent_t stop)
- cuda.bindings.driver.cuEventElapsedTime_v2(start, stop)#
Return the elapsed time between two events.
Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.
Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.
Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().
If hipEventRecord() has not been called on either event, then
hipErrorInvalidHandleis returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would returnhipErrorNotReadyon at least one of the events), thenhipErrorNotReadyis returned.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventSynchronize- Args:
- start (
ihipEvent_t/object) – IN: Start event.
- stop (
ihipEvent_t/object) – IN: Stop event.
- start (
- Returns:
A
tupleof size 2 that contains (in that order):float:Return time between start and stop in ms.
C signature
hipError_t hipEventElapsedTime(float * ms, hipEvent_t start, hipEvent_t stop)
- cuda.bindings.driver.cudaEventElapsedTime(start, stop)#
Return the elapsed time between two events.
Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.
Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.
Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().
If hipEventRecord() has not been called on either event, then
hipErrorInvalidHandleis returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would returnhipErrorNotReadyon at least one of the events), thenhipErrorNotReadyis returned.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventQuery,hipEventDestroy,hipEventRecord,hipEventSynchronize- Args:
- start (
ihipEvent_t/object) – IN: Start event.
- stop (
ihipEvent_t/object) – IN: Stop event.
- start (
- Returns:
A
tupleof size 2 that contains (in that order):float:Return time between start and stop in ms.
C signature
hipError_t hipEventElapsedTime(float * ms, hipEvent_t start, hipEvent_t stop)
- cuda.bindings.driver.cuEventQuery(event)#
Query event status
Query the status of the specified event. This function will return
hipSuccessif all commands in the appropriate stream (specified to hipEventRecord()) have completed. If any execution has not completed, thenhipErrorNotReadyis returned.- Note:
This API returns
hipSuccess, if hipEventRecord() is not called before this API.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventRecord,hipEventDestroy,hipEventSynchronize,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to query.
- event (
- Returns:
C signature
hipError_t hipEventQuery(hipEvent_t event)
- cuda.bindings.driver.cudaEventQuery(event)#
Query event status
Query the status of the specified event. This function will return
hipSuccessif all commands in the appropriate stream (specified to hipEventRecord()) have completed. If any execution has not completed, thenhipErrorNotReadyis returned.- Note:
This API returns
hipSuccess, if hipEventRecord() is not called before this API.- See:
hipEventCreate,hipEventCreateWithFlags,hipEventRecord,hipEventDestroy,hipEventSynchronize,hipEventElapsedTime- Args:
- event (
ihipEvent_t/object) – IN: Event to query.
- event (
- Returns:
C signature
hipError_t hipEventQuery(hipEvent_t event)
- cuda.bindings.driver.cuPointerSetAttribute(value, attribute, ptr)#
Sets information on the specified pointer.[BETA]
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Args:
- value (
Pointer/object) – IN: Sets pointer attribute value
- attribute (
hipPointer_attribute) – IN: Attribute to set
- ptr (
Pointer/object) – IN: Pointer to set attributes for
- value (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipPointerSetAttribute(const void * value, hipPointer_attribute attribute, hipDeviceptr_t ptr)
- cuda.bindings.driver.cudaPointerGetAttributes(ptr)#
Returns attributes for the specified pointer
The output parameter ‘attributes’ has a member named ‘type’ that describes what memory the pointer is associated with, such as device memory, host memory, managed memory, and others. Otherwise, the API cannot handle the pointer and returns
hipErrorInvalidValue.- Note:
The unrecognized memory type is unsupported to keep the HIP functionality backward compatibility due to
hipMemoryTypeenum values.- Note:
The current behavior of this HIP API corresponds to the CUDA API before version 11.0.
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValuehipPointerAttribute_t:attributes for the specified pointer
C signature
hipError_t hipPointerGetAttributes(hipPointerAttribute_t * attributes, const void * ptr)
- cuda.bindings.driver.cuPointerGetAttribute(data, attribute, ptr)#
Returns information about the specified pointer.[BETA]
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
- Args:
- data (
Pointer/object) – IN,OUT: Returned pointer attribute value
- attribute (
hipPointer_attribute) – IN: Attribute to query for
- ptr (
Pointer/object) – IN: Pointer to get attributes for
- data (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipPointerGetAttribute(void * data, hipPointer_attribute attribute, hipDeviceptr_t ptr)
- cuda.bindings.driver.cuPointerGetAttributes(numAttributes, ptr)#
Returns information about the specified pointer.[BETA]
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- See:
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValuehipPointer_attribute:attributes to query for
C signature
hipError_t hipDrvPointerGetAttributes(unsigned int numAttributes, hipPointer_attribute * attributes, void ** data, hipDeviceptr_t ptr)
- cuda.bindings.driver.cuImportExternalSemaphore(semHandleDesc)#
Imports an external semaphore.
This section describes the external resource interoperability functions of HIP runtime API.
See:
- Note:
This API is currently not supported on Linux.
- Args:
- semHandleDesc (
hipExternalSemaphoreHandleDesc_st/object) – IN: Semaphore import handle descriptor
- semHandleDesc (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t * extSem_out, const hipExternalSemaphoreHandleDesc * semHandleDesc)
- cuda.bindings.driver.cudaImportExternalSemaphore(semHandleDesc)#
Imports an external semaphore.
This section describes the external resource interoperability functions of HIP runtime API.
See:
- Note:
This API is currently not supported on Linux.
- Args:
- semHandleDesc (
hipExternalSemaphoreHandleDesc_st/object) – IN: Semaphore import handle descriptor
- semHandleDesc (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t * extSem_out, const hipExternalSemaphoreHandleDesc * semHandleDesc)
- cuda.bindings.driver.cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#
Signals a set of external semaphore objects.
See:
- Note:
This API is currently not supported on Linux.
- Args:
- extSemArray (
ListOfPointer/object) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreSignalParams_st/object) – IN: Array of semaphore parameters
- numExtSems (
int) – IN: Number of semaphores to wait on
- stream (
ihipStream_t/object) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreSignalParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
- cuda.bindings.driver.cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#
Signals a set of external semaphore objects.
See:
- Note:
This API is currently not supported on Linux.
- Args:
- extSemArray (
ListOfPointer/object) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreSignalParams_st/object) – IN: Array of semaphore parameters
- numExtSems (
int) – IN: Number of semaphores to wait on
- stream (
ihipStream_t/object) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreSignalParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
- cuda.bindings.driver.cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#
Waits on a set of external semaphore objects
See:
- Note:
This API is currently not supported on Linux.
- Args:
- extSemArray (
ListOfPointer/object) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreWaitParams_st/object) – IN: Array of semaphore parameters
- numExtSems (
int) – IN: Number of semaphores to wait on
- stream (
ihipStream_t/object) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreWaitParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
- cuda.bindings.driver.cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream)#
Waits on a set of external semaphore objects
See:
- Note:
This API is currently not supported on Linux.
- Args:
- extSemArray (
ListOfPointer/object) – IN: External semaphores to be waited on
- paramsArray (
hipExternalSemaphoreWaitParams_st/object) – IN: Array of semaphore parameters
- numExtSems (
int) – IN: Number of semaphores to wait on
- stream (
ihipStream_t/object) – IN: Stream to enqueue the wait operations in
- extSemArray (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t * extSemArray, const hipExternalSemaphoreWaitParams * paramsArray, unsigned int numExtSems, hipStream_t stream)
- cuda.bindings.driver.cuDestroyExternalSemaphore(extSem)#
Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.
See:
- Note:
This API is currently not supported on Linux.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem)
- cuda.bindings.driver.cudaDestroyExternalSemaphore(extSem)#
Destroys an external semaphore object and releases any references to the underlying resource. Any outstanding signals or waits must have completed before the semaphore is destroyed.
See:
- Note:
This API is currently not supported on Linux.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem)
- cuda.bindings.driver.cuImportExternalMemory(memHandleDesc)#
Imports an external memory object.
See:
- Args:
- memHandleDesc (
hipExternalMemoryHandleDesc_st/object) – IN: Memory import handle descriptor
- memHandleDesc (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipImportExternalMemory(hipExternalMemory_t * extMem_out, const hipExternalMemoryHandleDesc * memHandleDesc)
- cuda.bindings.driver.cudaImportExternalMemory(memHandleDesc)#
Imports an external memory object.
See:
- Args:
- memHandleDesc (
hipExternalMemoryHandleDesc_st/object) – IN: Memory import handle descriptor
- memHandleDesc (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipImportExternalMemory(hipExternalMemory_t * extMem_out, const hipExternalMemoryHandleDesc * memHandleDesc)
- cuda.bindings.driver.cuExternalMemoryGetMappedBuffer(extMem, bufferDesc)#
Maps a buffer onto an imported memory object.
See:
- Args:
- extMem (
Pointer/object) – IN: Handle to external memory object
- bufferDesc (
hipExternalMemoryBufferDesc_st/object) – IN: Buffer descriptor
- extMem (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipExternalMemoryGetMappedBuffer(void ** devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc * bufferDesc)
- cuda.bindings.driver.cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc)#
Maps a buffer onto an imported memory object.
See:
- Args:
- extMem (
Pointer/object) – IN: Handle to external memory object
- bufferDesc (
hipExternalMemoryBufferDesc_st/object) – IN: Buffer descriptor
- extMem (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipExternalMemoryGetMappedBuffer(void ** devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc * bufferDesc)
- cuda.bindings.driver.cuDestroyExternalMemory(extMem)#
Destroys an external memory object.
See:
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem)
- cuda.bindings.driver.cudaDestroyExternalMemory(extMem)#
Destroys an external memory object.
See:
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue
C signature
hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem)
- cuda.bindings.driver.cuMemAlloc(size)#
Allocate memory on the default accelerator
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostFree,hipHostMalloc- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)DeviceArray/object:Pointer to the allocated memory
C signature
hipError_t hipMalloc(void ** ptr, size_t size)
- cuda.bindings.driver.cuMemAlloc_v2(size)#
Allocate memory on the default accelerator
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostFree,hipHostMalloc- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)DeviceArray/object:Pointer to the allocated memory
C signature
hipError_t hipMalloc(void ** ptr, size_t size)
- cuda.bindings.driver.cudaMalloc(size)#
Allocate memory on the default accelerator
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostFree,hipHostMalloc- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)DeviceArray/object:Pointer to the allocated memory
C signature
hipError_t hipMalloc(void ** ptr, size_t size)
- cuda.bindings.driver.cuMemAllocHost(size)#
Allocate pinned host memory [Deprecated]
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- Warning:
This API is deprecated, use hipHostMalloc() instead
- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory
C signature
hipError_t hipMemAllocHost(void ** ptr, size_t size)
- cuda.bindings.driver.cuMemAllocHost_v2(size)#
Allocate pinned host memory [Deprecated]
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- Warning:
This API is deprecated, use hipHostMalloc() instead
- Args:
- size (
int) – IN: Requested memory size
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory
C signature
hipError_t hipMemAllocHost(void ** ptr, size_t size)
- cuda.bindings.driver.cudaMallocHost(size, flags)#
Allocates device accessible page locked (pinned) host memory
This API allocates pinned host memory which is mapped into the address space of all GPUs in the system, the memory can be accessed directly by the GPU device, and can be read or written with much higher bandwidth than pageable memory obtained with functions such as malloc().
Using the pinned host memory, applications can implement faster data transfers for HostToDevice and DeviceToHost. The runtime tracks the hipHostMalloc allocations and can avoid some of the setup required for regular unpinned memory.
When the memory accesses are infrequent, zero-copy memory can be a good choice, for coherent allocation. GPU can directly access the host memory over the CPU/GPU interconnect, without need to copy the data.
Currently the allocation granularity is 4KB for the API.
Developers need to choose proper allocation flag with consideration of synchronization.
If no input for flags, it will be the default pinned memory allocation on the host.
- See:
hipSetDeviceFlags,hiptHostFree- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory
C signature
hipError_t hipHostMalloc(void ** ptr, size_t size, unsigned int flags)
- cuda.bindings.driver.cuMemAllocManaged(size, flags)#
Allocates memory that will be automatically managed by HIP.
This section describes the managed memory management functions of HIP runtime API.
- Note:
The managed memory management APIs are implemented on Linux, under developement on Windows.
This API is used for managed memory, allows data be shared and accessible to both CPU and GPU using a single pointer.
The API returns the allocation pointer, managed by HMM, can be used further to execute kernels on device and fetch data between the host and device as needed.
If HMM is not supported, the function behaves the same as
hipMallocHost.- Note:
It is recommend to do the capability check before call this API.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorMemoryAllocation,hipErrorNotSupported,hipErrorInvalidValueDeviceArray/object:pointer to allocated device memory
C signature
hipError_t hipMallocManaged(void ** dev_ptr, size_t size, unsigned int flags)
- cuda.bindings.driver.cudaMallocManaged(size, flags)#
Allocates memory that will be automatically managed by HIP.
This section describes the managed memory management functions of HIP runtime API.
- Note:
The managed memory management APIs are implemented on Linux, under developement on Windows.
This API is used for managed memory, allows data be shared and accessible to both CPU and GPU using a single pointer.
The API returns the allocation pointer, managed by HMM, can be used further to execute kernels on device and fetch data between the host and device as needed.
If HMM is not supported, the function behaves the same as
hipMallocHost.- Note:
It is recommend to do the capability check before call this API.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorMemoryAllocation,hipErrorNotSupported,hipErrorInvalidValueDeviceArray/object:pointer to allocated device memory
C signature
hipError_t hipMallocManaged(void ** dev_ptr, size_t size, unsigned int flags)
- cuda.bindings.driver.cuMemPrefetchAsync(dev_ptr, count, device, stream)#
Prefetches memory to the specified destination device using HIP.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPrefetchAsync(const void * dev_ptr, size_t count, int device, hipStream_t stream)
- cuda.bindings.driver.cudaMemPrefetchAsync(dev_ptr, count, device, stream)#
Prefetches memory to the specified destination device using HIP.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPrefetchAsync(const void * dev_ptr, size_t count, int device, hipStream_t stream)
- cuda.bindings.driver.cuMemAdvise(dev_ptr, count, advice, device)#
Advise about the usage of a given memory range to HIP.
This HIP API advises about the usage to be applied on unified memory allocation in the range starting from the pointer address devPtr, with the size of count bytes. The memory range must refer to managed memory allocated via the API hipMallocManaged, and the range will be handled with proper round down and round up respectively in the driver to be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0 and afterwards.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: pointer to memory to set the advice for
- count (
int) – IN: size in bytes of the memory range, it should be CPU page size alligned.
- advice (
hipMemoryAdvise) – IN: advice to be applied for the specified memory range
- device (
int) – IN: device to apply the advice for
- dev_ptr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemAdvise(const void * dev_ptr, size_t count, hipMemoryAdvise advice, int device)
- cuda.bindings.driver.cudaMemAdvise(dev_ptr, count, advice, device)#
Advise about the usage of a given memory range to HIP.
This HIP API advises about the usage to be applied on unified memory allocation in the range starting from the pointer address devPtr, with the size of count bytes. The memory range must refer to managed memory allocated via the API hipMallocManaged, and the range will be handled with proper round down and round up respectively in the driver to be aligned to CPU page size, the same way as corresponding CUDA API behaves in CUDA version 8.0 and afterwards.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: pointer to memory to set the advice for
- count (
int) – IN: size in bytes of the memory range, it should be CPU page size alligned.
- advice (
hipMemoryAdvise) – IN: advice to be applied for the specified memory range
- device (
int) – IN: device to apply the advice for
- dev_ptr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemAdvise(const void * dev_ptr, size_t count, hipMemoryAdvise advice, int device)
- cuda.bindings.driver.cuMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)#
Query an attribute of a given memory range in HIP.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- data (
Pointer/object) – IN,OUT: a pointer to a memory location where the result of each attribute query will be written to
- data_size (
int) – IN: the size of data
- attribute (
hipMemRangeAttribute) – IN: the attribute to query
- dev_ptr (
Pointer/object) – IN: start of the range to query
- count (
int) – IN: size of the range to query
- data (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemRangeGetAttribute(void * data, size_t data_size, hipMemRangeAttribute attribute, const void * dev_ptr, size_t count)
- cuda.bindings.driver.cudaMemRangeGetAttribute(data, data_size, attribute, dev_ptr, count)#
Query an attribute of a given memory range in HIP.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- data (
Pointer/object) – IN,OUT: a pointer to a memory location where the result of each attribute query will be written to
- data_size (
int) – IN: the size of data
- attribute (
hipMemRangeAttribute) – IN: the attribute to query
- dev_ptr (
Pointer/object) – IN: start of the range to query
- count (
int) – IN: size of the range to query
- data (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemRangeGetAttribute(void * data, size_t data_size, hipMemRangeAttribute attribute, const void * dev_ptr, size_t count)
- cuda.bindings.driver.cuMemRangeGetAttributes(num_attributes, dev_ptr, count)#
Query attributes of a given memory range in HIP.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:an array, containing the sizes of each result
hipMemRangeAttribute:the attribute to query
C signature
hipError_t hipMemRangeGetAttributes(void ** data, size_t * data_sizes, hipMemRangeAttribute * attributes, size_t num_attributes, const void * dev_ptr, size_t count)
- cuda.bindings.driver.cudaMemRangeGetAttributes(num_attributes, dev_ptr, count)#
Query attributes of a given memory range in HIP.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:an array, containing the sizes of each result
hipMemRangeAttribute:the attribute to query
C signature
hipError_t hipMemRangeGetAttributes(void ** data, size_t * data_sizes, hipMemRangeAttribute * attributes, size_t num_attributes, const void * dev_ptr, size_t count)
- cuda.bindings.driver.cuStreamAttachMemAsync(stream, dev_ptr, length, flags)#
Attach memory to a stream asynchronously in HIP.
- Warning:
This API is under development. Currently it is a no-operation (NOP) function on AMD GPUs and returns
hipSuccess.- Args:
- stream (
ihipStream_t/object) – IN: stream in which to enqueue the attach operation
- dev_ptr (
Pointer/object) – IN: pointer to memory (must be a pointer to managed memory or
to a valid host-accessible region of system-allocated memory)
- length (
int) – IN: length of memory (defaults to zero)
- flags (
int) – IN: must be one of hipMemAttachGlobal, hipMemAttachHost or
hipMemAttachSingle (defaults to hipMemAttachSingle)
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamAttachMemAsync(hipStream_t stream, void * dev_ptr, size_t length, unsigned int flags)
- cuda.bindings.driver.cudaStreamAttachMemAsync(stream, dev_ptr, length, flags)#
Attach memory to a stream asynchronously in HIP.
- Warning:
This API is under development. Currently it is a no-operation (NOP) function on AMD GPUs and returns
hipSuccess.- Args:
- stream (
ihipStream_t/object) – IN: stream in which to enqueue the attach operation
- dev_ptr (
Pointer/object) – IN: pointer to memory (must be a pointer to managed memory or
to a valid host-accessible region of system-allocated memory)
- length (
int) – IN: length of memory (defaults to zero)
- flags (
int) – IN: must be one of hipMemAttachGlobal, hipMemAttachHost or
hipMemAttachSingle (defaults to hipMemAttachSingle)
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamAttachMemAsync(hipStream_t stream, void * dev_ptr, size_t length, unsigned int flags)
- cuda.bindings.driver.cuMemAllocAsync(size, stream)#
Allocates memory with stream ordered semantics
Inserts a memory allocation operation into
stream.A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the memory pool associated with the stream’s device.- Note:
The default memory pool of a device contains device memory from that device.
- Note:
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocFromPoolAsync,hipFreeAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- size (
int) – IN: Number of bytes to allocate
- stream (
ihipStream_t/object) – IN: The stream establishing the stream ordering contract and the memory pool to allocate from
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer of memory allocation
C signature
hipError_t hipMallocAsync(void ** dev_ptr, size_t size, hipStream_t stream)
- cuda.bindings.driver.cudaMallocAsync(size, stream)#
Allocates memory with stream ordered semantics
Inserts a memory allocation operation into
stream.A pointer to the allocated memory is returned immediately in *dptr. The allocation must not be accessed until the allocation operation completes. The allocation comes from the memory pool associated with the stream’s device.- Note:
The default memory pool of a device contains device memory from that device.
- Note:
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocFromPoolAsync,hipFreeAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- size (
int) – IN: Number of bytes to allocate
- stream (
ihipStream_t/object) – IN: The stream establishing the stream ordering contract and the memory pool to allocate from
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer of memory allocation
C signature
hipError_t hipMallocAsync(void ** dev_ptr, size_t size, hipStream_t stream)
- cuda.bindings.driver.cuMemFreeAsync(dev_ptr, stream)#
Frees memory with stream ordered semantics
Inserts a free operation into
stream.The allocation must not be used after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.- Note:
During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: Pointer to device memory to free
- stream (
ihipStream_t/object) – IN: The stream, where the destruciton will occur according to the execution order
- dev_ptr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipFreeAsync(void * dev_ptr, hipStream_t stream)
- cuda.bindings.driver.cudaFreeAsync(dev_ptr, stream)#
Frees memory with stream ordered semantics
Inserts a free operation into
stream.The allocation must not be used after stream execution reaches the free. After this API returns, accessing the memory from any subsequent work launched on the GPU or querying its pointer attributes results in undefined behavior.- Note:
During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipMemPoolTrimTo,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- dev_ptr (
Pointer/object) – IN: Pointer to device memory to free
- stream (
ihipStream_t/object) – IN: The stream, where the destruciton will occur according to the execution order
- dev_ptr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipFreeAsync(void * dev_ptr, hipStream_t stream)
- cuda.bindings.driver.cuMemPoolTrimTo(mem_pool, min_bytes_to_hold)#
Releases freed memory back to the OS
Releases memory back to the OS until the pool contains fewer than
min_bytes_to_keepreserved bytes, or there is no more memory that the allocator can safely release. The allocator cannot release OS allocations that back outstanding asynchronous allocations. The OS allocations may happen at different granularity from the user allocations.- Note:
Allocations that have not been freed count as outstanding.
- Note:
Allocations that have been asynchronously freed but whose completion has not been observed on the host (eg. by a synchronize) can count as outstanding.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The memory pool to trim allocations
- min_bytes_to_hold (
int) – IN: If the pool has less than min_bytes_to_hold reserved, then the TrimTo operation is a no-op. Otherwise the memory pool will contain at least min_bytes_to_hold bytes reserved after the operation.
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold)
- cuda.bindings.driver.cudaMemPoolTrimTo(mem_pool, min_bytes_to_hold)#
Releases freed memory back to the OS
Releases memory back to the OS until the pool contains fewer than
min_bytes_to_keepreserved bytes, or there is no more memory that the allocator can safely release. The allocator cannot release OS allocations that back outstanding asynchronous allocations. The OS allocations may happen at different granularity from the user allocations.- Note:
Allocations that have not been freed count as outstanding.
- Note:
Allocations that have been asynchronously freed but whose completion has not been observed on the host (eg. by a synchronize) can count as outstanding.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The memory pool to trim allocations
- min_bytes_to_hold (
int) – IN: If the pool has less than min_bytes_to_hold reserved, then the TrimTo operation is a no-op. Otherwise the memory pool will contain at least min_bytes_to_hold bytes reserved after the operation.
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold)
- cuda.bindings.driver.cuMemPoolSetAttribute(mem_pool, attr, value)#
Sets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)
hipMemPoolReuseAllowOpportunistic:(value type = int)Allow reuse of already completed frees when there is no
dependency between the free and allocation. (default enabled) -
hipMemPoolReuseAllowInternalDependencies:(value type = int)Allow
hipMallocAsyncto insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released byhipFreeAsync(default enabled).- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The memory pool to modify
- attr (
hipMemPoolAttr) – IN: The attribute to modify
- value (
Pointer/object) – IN: Pointer to the value to assign
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolSetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
- cuda.bindings.driver.cudaMemPoolSetAttribute(mem_pool, attr, value)#
Sets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)
hipMemPoolReuseAllowOpportunistic:(value type = int)Allow reuse of already completed frees when there is no
dependency between the free and allocation. (default enabled) -
hipMemPoolReuseAllowInternalDependencies:(value type = int)Allow
hipMallocAsyncto insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released byhipFreeAsync(default enabled).- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The memory pool to modify
- attr (
hipMemPoolAttr) – IN: The attribute to modify
- value (
Pointer/object) – IN: Pointer to the value to assign
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolSetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
- cuda.bindings.driver.cuMemPoolGetAttribute(mem_pool, attr, value)#
Gets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)
hipMemPoolReuseAllowOpportunistic:(value type = int)Allow reuse of already completed frees when there is no
dependency between the free and allocation. (default enabled) -
hipMemPoolReuseAllowInternalDependencies:(value type = int)Allow
hipMallocAsyncto insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released byhipFreeAsync(default enabled).- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The memory pool to get attributes of
- attr (
hipMemPoolAttr) – IN: The attribute to get
- value (
Pointer/object) – IN: Retrieved value
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolGetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
- cuda.bindings.driver.cudaMemPoolGetAttribute(mem_pool, attr, value)#
Gets attributes of a memory pool
Supported attributes are: -
hipMemPoolAttrReleaseThreshold:(value type = cuuint64_t)Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0)
hipMemPoolReuseFollowEventDependencies:(value type = int)Allow
hipMallocAsyncto use memory asynchronously freed in another stream as long as a stream ordering dependency of the allocating stream on the free action exists. HIP events and null stream interactions can create the required stream ordered dependencies. (default enabled)
hipMemPoolReuseAllowOpportunistic:(value type = int)Allow reuse of already completed frees when there is no
dependency between the free and allocation. (default enabled) -
hipMemPoolReuseAllowInternalDependencies:(value type = int)Allow
hipMallocAsyncto insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released byhipFreeAsync(default enabled).- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The memory pool to get attributes of
- attr (
hipMemPoolAttr) – IN: The attribute to get
- value (
Pointer/object) – IN: Retrieved value
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolGetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void * value)
- cuda.bindings.driver.cuMemPoolSetAccess(mem_pool, desc_list, count)#
Controls visibility of the specified pool between devices
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for acccess change
- desc_list (
hipMemAccessDesc/object) – IN: Array of access descriptors. Each descriptor instructs the access to enable for a single gpu
- count (
int) – IN: Number of descriptors in the map array.
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc * desc_list, size_t count)
- cuda.bindings.driver.cudaMemPoolSetAccess(mem_pool, desc_list, count)#
Controls visibility of the specified pool between devices
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for acccess change
- desc_list (
hipMemAccessDesc/object) – IN: Array of access descriptors. Each descriptor instructs the access to enable for a single gpu
- count (
int) – IN: Number of descriptors in the map array.
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc * desc_list, size_t count)
- cuda.bindings.driver.cuMemPoolGetAccess(mem_pool, location)#
Returns the accessibility of a pool from a device
Returns the accessibility of the pool’s memory from the specified location.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool being queried
- location (
hipMemLocation/object) – IN: Location/device for memory pool access
- mem_pool (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemAccessFlags:Accessibility of the memory pool from the specified location/device
C signature
hipError_t hipMemPoolGetAccess(hipMemAccessFlags * flags, hipMemPool_t mem_pool, hipMemLocation * location)
- cuda.bindings.driver.cudaMemPoolGetAccess(mem_pool, location)#
Returns the accessibility of a pool from a device
Returns the accessibility of the pool’s memory from the specified location.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool being queried
- location (
hipMemLocation/object) – IN: Location/device for memory pool access
- mem_pool (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemAccessFlags:Accessibility of the memory pool from the specified location/device
C signature
hipError_t hipMemPoolGetAccess(hipMemAccessFlags * flags, hipMemPool_t mem_pool, hipMemLocation * location)
- cuda.bindings.driver.cuMemPoolCreate(pool_props)#
Creates a memory pool
Creates a HIP memory pool and returns the handle in
mem_pool.Thepool_propsdetermines the properties of the pool such as the backing device and IPC capabilities.By default, the memory pool will be accessible from the device it is allocated on.
- Note:
Specifying hipMemHandleTypeNone creates a memory pool that will not support IPC.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolDestroy,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- pool_props (
hipMemPoolProps/object) – IN: Memory pool properties
- pool_props (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Contains createed memory pool
C signature
hipError_t hipMemPoolCreate(hipMemPool_t * mem_pool, const hipMemPoolProps * pool_props)
- cuda.bindings.driver.cudaMemPoolCreate(pool_props)#
Creates a memory pool
Creates a HIP memory pool and returns the handle in
mem_pool.Thepool_propsdetermines the properties of the pool such as the backing device and IPC capabilities.By default, the memory pool will be accessible from the device it is allocated on.
- Note:
Specifying hipMemHandleTypeNone creates a memory pool that will not support IPC.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolDestroy,hipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- pool_props (
hipMemPoolProps/object) – IN: Memory pool properties
- pool_props (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemPoolHandle_t:Contains createed memory pool
C signature
hipError_t hipMemPoolCreate(hipMemPool_t * mem_pool, const hipMemPoolProps * pool_props)
- cuda.bindings.driver.cuMemPoolDestroy(mem_pool)#
Destroys the specified memory pool
If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when
hipMemPoolDestroyis invoked, the function will return immediately and the resources associated with the pool will be released automatically once there are no more outstanding allocations.Destroying the current mempool of a device sets the default mempool of that device as the current mempool for that device.
- Note:
A device’s default memory pool cannot be destroyed.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolCreatehipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for destruction
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolDestroy(hipMemPool_t mem_pool)
- cuda.bindings.driver.cudaMemPoolDestroy(mem_pool)#
Destroys the specified memory pool
If any pointers obtained from this pool haven’t been freed or the pool has free operations that haven’t completed when
hipMemPoolDestroyis invoked, the function will return immediately and the resources associated with the pool will be released automatically once there are no more outstanding allocations.Destroying the current mempool of a device sets the default mempool of that device as the current mempool for that device.
- Note:
A device’s default memory pool cannot be destroyed.
- See:
hipMallocFromPoolAsync,hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolCreatehipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool for destruction
- mem_pool (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemPoolDestroy(hipMemPool_t mem_pool)
- cuda.bindings.driver.cuMemAllocFromPoolAsync(size, mem_pool, stream)#
Allocates memory from a specified pool with stream ordered semantics.
Inserts an allocation operation into
stream.A pointer to the allocated memory is returned immediately indev_ptr.The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.- Note:
The specified memory pool may be from a device different than that of the specified
stream.
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolCreatehipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess,- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- size (
int) – IN: Number of bytes to allocate
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The pool to allocate from
- stream (
ihipStream_t/object) – IN: The stream establishing the stream ordering semantic
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer
C signature
hipError_t hipMallocFromPoolAsync(void ** dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream)
- cuda.bindings.driver.cudaMallocFromPoolAsync(size, mem_pool, stream)#
Allocates memory from a specified pool with stream ordered semantics.
Inserts an allocation operation into
stream.A pointer to the allocated memory is returned immediately indev_ptr.The allocation must not be accessed until the allocation operation completes. The allocation comes from the specified memory pool.- Note:
The specified memory pool may be from a device different than that of the specified
stream.
Basic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and HIP events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.
- Note:
During stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool’s properties are used to set the node’s creation parameters.
- See:
hipMallocAsync,hipFreeAsync,hipMemPoolGetAttribute,hipMemPoolCreatehipMemPoolTrimTo,hipDeviceSetMemPool,hipMemPoolSetAttribute,hipMemPoolSetAccess,hipMemPoolGetAccess,- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- size (
int) – IN: Number of bytes to allocate
- mem_pool (
ihipMemPoolHandle_t/object) – IN: The pool to allocate from
- stream (
ihipStream_t/object) – IN: The stream establishing the stream ordering semantic
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemoryDeviceArray/object:Returned device pointer
C signature
hipError_t hipMallocFromPoolAsync(void ** dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream)
Exports a memory pool to the requested handle type.
Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with
hipMemPoolImportFromShareableHandle. Individual pointers can then be shared with thehipMemPoolExportPointerandhipMemPoolImportPointerAPIs. The implementation of what the shareable handle is and how it can be transferred is defined by the requested handle type.- Note:
To create an IPC capable mempool, create a mempool with a
hipMemAllocationHandleTypeother thanhipMemHandleTypeNone.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- shared_handle (
Pointer/object) – OUT: Pointer to the location in which to store the requested handle
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Pool to export
- handle_type (
hipMemAllocationHandleType) – IN: The type of handle to create
- flags (
int) – IN: Must be 0
- shared_handle (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemory
C signature
hipError_t hipMemPoolExportToShareableHandle(void * shared_handle, hipMemPool_t mem_pool, hipMemAllocationHandleType handle_type, unsigned int flags)
Exports a memory pool to the requested handle type.
Given an IPC capable mempool, create an OS handle to share the pool with another process. A recipient process can convert the shareable handle into a mempool with
hipMemPoolImportFromShareableHandle. Individual pointers can then be shared with thehipMemPoolExportPointerandhipMemPoolImportPointerAPIs. The implementation of what the shareable handle is and how it can be transferred is defined by the requested handle type.- Note:
To create an IPC capable mempool, create a mempool with a
hipMemAllocationHandleTypeother thanhipMemHandleTypeNone.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- shared_handle (
Pointer/object) – OUT: Pointer to the location in which to store the requested handle
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Pool to export
- handle_type (
hipMemAllocationHandleType) – IN: The type of handle to create
- flags (
int) – IN: Must be 0
- shared_handle (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemory
C signature
hipError_t hipMemPoolExportToShareableHandle(void * shared_handle, hipMemPool_t mem_pool, hipMemAllocationHandleType handle_type, unsigned int flags)
Imports a memory pool from a shared handle.
Specific allocations can be imported from the imported pool with
hipMemPoolImportPointer.- Note:
Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in
hipDeviceSetMemPoolorhipMallocFromPoolAsynccalls.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- shared_handle (
Pointer/object) – IN: OS handle of the pool to open
- handle_type (
hipMemAllocationHandleType) – IN: The type of handle being imported
- flags (
int) – IN: Must be 0
- shared_handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemoryihipMemPoolHandle_t:Returned memory pool
C signature
hipError_t hipMemPoolImportFromShareableHandle(hipMemPool_t * mem_pool, void * shared_handle, hipMemAllocationHandleType handle_type, unsigned int flags)
Imports a memory pool from a shared handle.
Specific allocations can be imported from the imported pool with
hipMemPoolImportPointer.- Note:
Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in
hipDeviceSetMemPoolorhipMallocFromPoolAsynccalls.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- shared_handle (
Pointer/object) – IN: OS handle of the pool to open
- handle_type (
hipMemAllocationHandleType) – IN: The type of handle being imported
- flags (
int) – IN: Must be 0
- shared_handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemoryihipMemPoolHandle_t:Returned memory pool
C signature
hipError_t hipMemPoolImportFromShareableHandle(hipMemPool_t * mem_pool, void * shared_handle, hipMemAllocationHandleType handle_type, unsigned int flags)
- cuda.bindings.driver.cuMemPoolExportPointer(dev_ptr)#
Export data to share a memory pool allocation between processes.
Constructs
export_datafor sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with thehipMemPoolImportPointerapi. The data is not a handle and may be shared through any IPC mechanism.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemoryhipMemPoolPtrExportData:Returned export data
C signature
hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData * export_data, void * dev_ptr)
- cuda.bindings.driver.cudaMemPoolExportPointer(dev_ptr)#
Export data to share a memory pool allocation between processes.
Constructs
export_datafor sharing a specific allocation from an already shared memory pool. The recipient process can import the allocation with thehipMemPoolImportPointerapi. The data is not a handle and may be shared through any IPC mechanism.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOutOfMemoryhipMemPoolPtrExportData:Returned export data
C signature
hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData * export_data, void * dev_ptr)
- cuda.bindings.driver.cuMemPoolImportPointer(mem_pool, export_data)#
Import a memory pool allocation from another process.
Returns in
dev_ptra pointer to the imported memory. The imported memory must not be accessed before the allocation operation completes in the exporting process. The imported memory must be freed from all importing processes before being freed in the exporting process. The pointer may be freed withhipFreeorhipFreeAsync.IfhipFreeAsyncis used, the free must be completed on the importing process before the free operation on the exporting process.- Note:
The
hipFreeAsyncapi may be used in the exporting process before thehipFreeAsyncoperation completes in its stream as long as thehipFreeAsyncin the exporting process specifies a stream with a stream dependency on the importing process’shipFreeAsync.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool from which to import a pointer
- export_data (
hipMemPoolPtrExportData/object) – IN: Data specifying the memory to import
- mem_pool (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipMemPoolImportPointer(void ** dev_ptr, hipMemPool_t mem_pool, hipMemPoolPtrExportData * export_data)
- cuda.bindings.driver.cudaMemPoolImportPointer(mem_pool, export_data)#
Import a memory pool allocation from another process.
Returns in
dev_ptra pointer to the imported memory. The imported memory must not be accessed before the allocation operation completes in the exporting process. The imported memory must be freed from all importing processes before being freed in the exporting process. The pointer may be freed withhipFreeorhipFreeAsync.IfhipFreeAsyncis used, the free must be completed on the importing process before the free operation on the exporting process.- Note:
The
hipFreeAsyncapi may be used in the exporting process before thehipFreeAsyncoperation completes in its stream as long as thehipFreeAsyncin the exporting process specifies a stream with a stream dependency on the importing process’shipFreeAsync.- See:
- Warning:
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mem_pool (
ihipMemPoolHandle_t/object) – IN: Memory pool from which to import a pointer
- export_data (
hipMemPoolPtrExportData/object) – IN: Data specifying the memory to import
- mem_pool (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipMemPoolImportPointer(void ** dev_ptr, hipMemPool_t mem_pool, hipMemPoolPtrExportData * export_data)
- cuda.bindings.driver.cuMemHostAlloc(size, flags)#
Allocate device accessible page locked host memory
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
Flags: -
hipHostAllocDefaultDefault pinned memory allocation on the host. -hipHostAllocPortableMemory is considered allocated by all contexts. -hipHostAllocMappedMap the allocation into the address space for the current device. -hipHostAllocWriteCombinedAllocates the memory as write-combined. -hipHostAllocUncachedAllocate the host memory on extended fine grained access systemmemory pool
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipHostAlloc(void ** ptr, size_t size, unsigned int flags)
- cuda.bindings.driver.cudaHostAlloc(size, flags)#
Allocate device accessible page locked host memory
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
Flags: -
hipHostAllocDefaultDefault pinned memory allocation on the host. -hipHostAllocPortableMemory is considered allocated by all contexts. -hipHostAllocMappedMap the allocation into the address space for the current device. -hipHostAllocWriteCombinedAllocates the memory as write-combined. -hipHostAllocUncachedAllocate the host memory on extended fine grained access systemmemory pool
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipHostAlloc(void ** ptr, size_t size, unsigned int flags)
- cuda.bindings.driver.cuMemHostGetDevicePointer(hstPtr, flags)#
Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipHostGetDevicePointer(void ** devPtr, void * hstPtr, unsigned int flags)
- cuda.bindings.driver.cuMemHostGetDevicePointer_v2(hstPtr, flags)#
Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipHostGetDevicePointer(void ** devPtr, void * hstPtr, unsigned int flags)
- cuda.bindings.driver.cudaHostGetDevicePointer(hstPtr, flags)#
Get Device pointer from Host Pointer allocated through hipHostMalloc
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipHostGetDevicePointer(void ** devPtr, void * hstPtr, unsigned int flags)
- cuda.bindings.driver.cuMemHostGetFlags(hostPtr)#
Return flags associated with host pointer
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Memory location to store flags
C signature
hipError_t hipHostGetFlags(unsigned int * flagsPtr, void * hostPtr)
- cuda.bindings.driver.cudaHostGetFlags(hostPtr)#
Return flags associated with host pointer
- See:
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Memory location to store flags
C signature
hipError_t hipHostGetFlags(unsigned int * flagsPtr, void * hostPtr)
- cuda.bindings.driver.cuMemHostRegister(hostPtr, sizeBytes, flags)#
Register host memory so it can be accessed from the current device.
- Flags:
hipHostRegisterDefaultMemory is Mapped and PortablehipHostRegisterPortableMemory is considered registered by all contexts. HIP only supports
- one context so this is always assumed true.
hipHostRegisterMappedMap the allocation into the address space for the current device.
- The device pointer can be obtained with
hipHostGetDevicePointer. hipExtHostRegisterUncachedMap the host memory onto extended fine grained access system
memory pool.
After registering the memory, use
hipHostGetDevicePointerto obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped hostpointer. Applications must use the device pointer in device code, and the host pointer in host code.
On some systems, registered memory is pinned. On some systems, registered memory may not be
actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.
Developers are strongly encouraged to register memory blocks which are aligned to the host
cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).
If registering non-aligned pointers, the application must take care when register pointers from
the same cache line on different devices. HIP’s coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will “win” and overwrite data from the other registered memory region.
- See:
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory
C signature
hipError_t hipHostRegister(void * hostPtr, size_t sizeBytes, unsigned int flags)
- cuda.bindings.driver.cuMemHostRegister_v2(hostPtr, sizeBytes, flags)#
Register host memory so it can be accessed from the current device.
- Flags:
hipHostRegisterDefaultMemory is Mapped and PortablehipHostRegisterPortableMemory is considered registered by all contexts. HIP only supports
- one context so this is always assumed true.
hipHostRegisterMappedMap the allocation into the address space for the current device.
- The device pointer can be obtained with
hipHostGetDevicePointer. hipExtHostRegisterUncachedMap the host memory onto extended fine grained access system
memory pool.
After registering the memory, use
hipHostGetDevicePointerto obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped hostpointer. Applications must use the device pointer in device code, and the host pointer in host code.
On some systems, registered memory is pinned. On some systems, registered memory may not be
actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.
Developers are strongly encouraged to register memory blocks which are aligned to the host
cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).
If registering non-aligned pointers, the application must take care when register pointers from
the same cache line on different devices. HIP’s coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will “win” and overwrite data from the other registered memory region.
- See:
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory
C signature
hipError_t hipHostRegister(void * hostPtr, size_t sizeBytes, unsigned int flags)
- cuda.bindings.driver.cudaHostRegister(hostPtr, sizeBytes, flags)#
Register host memory so it can be accessed from the current device.
- Flags:
hipHostRegisterDefaultMemory is Mapped and PortablehipHostRegisterPortableMemory is considered registered by all contexts. HIP only supports
- one context so this is always assumed true.
hipHostRegisterMappedMap the allocation into the address space for the current device.
- The device pointer can be obtained with
hipHostGetDevicePointer. hipExtHostRegisterUncachedMap the host memory onto extended fine grained access system
memory pool.
After registering the memory, use
hipHostGetDevicePointerto obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped hostpointer. Applications must use the device pointer in device code, and the host pointer in host code.
On some systems, registered memory is pinned. On some systems, registered memory may not be
actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.
Developers are strongly encouraged to register memory blocks which are aligned to the host
cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).
If registering non-aligned pointers, the application must take care when register pointers from
the same cache line on different devices. HIP’s coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will “win” and overwrite data from the other registered memory region.
- See:
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorOutOfMemory
C signature
hipError_t hipHostRegister(void * hostPtr, size_t sizeBytes, unsigned int flags)
- cuda.bindings.driver.cuMemHostUnregister(hostPtr)#
Un-register host pointer
- See:
- Args:
- hostPtr (
Pointer/object) – IN: Host pointer previously registered with
hipHostRegister
- hostPtr (
- Returns:
hipError_t: Error code
C signature
hipError_t hipHostUnregister(void * hostPtr)
- cuda.bindings.driver.cudaHostUnregister(hostPtr)#
Un-register host pointer
- See:
- Args:
- hostPtr (
Pointer/object) – IN: Host pointer previously registered with
hipHostRegister
- hostPtr (
- Returns:
hipError_t: Error code
C signature
hipError_t hipHostUnregister(void * hostPtr)
- cuda.bindings.driver.cudaMallocPitch(width, height)#
- Allocates at least width (in bytes) * height bytes of linear memory
Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be retu […]
Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
- See:
hipMalloc,hipFree,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: Error codeint:Pitch for allocation (in bytes)
C signature
hipError_t hipMallocPitch(void ** ptr, size_t * pitch, size_t width, size_t height)
- cuda.bindings.driver.cuMemAllocPitch(widthInBytes, height, elementSizeBytes)#
- Allocates at least width (in bytes) * height bytes of linear memory
Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be retu […]
Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes
- If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
The intended usage of pitch is as a separate parameter of the allocation, used to compute
addresses within the 2D array. Given the row and column of an array element of type T, the address is computed as: T* pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;
- See:
hipMalloc,hipFree,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: Error codeint:Pitch for allocation (in bytes)
C signature
hipError_t hipMemAllocPitch(hipDeviceptr_t * dptr, size_t * pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes)
- cuda.bindings.driver.cuMemAllocPitch_v2(widthInBytes, height, elementSizeBytes)#
- Allocates at least width (in bytes) * height bytes of linear memory
Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be retu […]
Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes
- If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
The intended usage of pitch is as a separate parameter of the allocation, used to compute
addresses within the 2D array. Given the row and column of an array element of type T, the address is computed as: T* pElement = (T*)((char*)BaseAddress + Row * Pitch) + Column;
- See:
hipMalloc,hipFree,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: Error codeint:Pitch for allocation (in bytes)
C signature
hipError_t hipMemAllocPitch(hipDeviceptr_t * dptr, size_t * pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes)
- cuda.bindings.driver.cuMemFree(ptr)#
- Free memory allocated by the HIP-Clang hip memory allocation API.
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
hipError_t: One of:py:obj:
hipSuccess- py:obj:
hipErrorInvalidDevicePointer(if pointer is invalid, including host pointers allocated with hipHostMalloc)
- py:obj:
C signature
hipError_t hipFree(void * ptr)
- cuda.bindings.driver.cuMemFree_v2(ptr)#
- Free memory allocated by the HIP-Clang hip memory allocation API.
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
hipError_t: One of:py:obj:
hipSuccess- py:obj:
hipErrorInvalidDevicePointer(if pointer is invalid, including host pointers allocated with hipHostMalloc)
- py:obj:
C signature
hipError_t hipFree(void * ptr)
- cuda.bindings.driver.cudaFree(ptr)#
- Free memory allocated by the HIP-Clang hip memory allocation API.
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipMallocArray,hipFreeArray,hipHostFree,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
hipError_t: One of:py:obj:
hipSuccess- py:obj:
hipErrorInvalidDevicePointer(if pointer is invalid, including host pointers allocated with hipHostMalloc)
- py:obj:
C signature
hipError_t hipFree(void * ptr)
- cuda.bindings.driver.cuMemFreeHost(ptr)#
- Free memory allocated by the HIP-Clang hip host memory allocation API
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue(if pointer is invalid, including device pointers allocated withhipMalloc)
C signature
hipError_t hipHostFree(void * ptr)
- cuda.bindings.driver.cudaFreeHost(ptr)#
- Free memory allocated by the HIP-Clang hip host memory allocation API
This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.
- See:
hipMalloc,hipMallocPitch,hipFree,hipMallocArray,hipFreeArray,hipMalloc3D,hipMalloc3DArray,hipHostMalloc- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue(if pointer is invalid, including device pointers allocated withhipMalloc)
C signature
hipError_t hipHostFree(void * ptr)
- cuda.bindings.driver.cudaMemcpy(dst, src, sizeBytes, kind)#
Copy data from src to dst.
- It supports memory from host to device,
device to host, device to device and host to host The src and dst must not overlap.
For hipMemcpy, the copy is always performed by the current device (set by hipSetDevice). For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the device where the src data is physically located. For optimal peer-to-peer copies, the copy
device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dst as the peerDevice argument. if this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host.
Calling hipMemcpy with dst and src pointers that do not match the hipMemcpyKind results in undefined behavior.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorUnknown
C signature
hipError_t hipMemcpy(void * dst, const void * src, size_t sizeBytes, hipMemcpyKind kind)
- cuda.bindings.driver.cuMemcpyHtoD(dst, src, sizeBytes)#
Copy data from Host to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, const void * src, size_t sizeBytes)
- cuda.bindings.driver.cuMemcpyHtoD_v2(dst, src, sizeBytes)#
Copy data from Host to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, const void * src, size_t sizeBytes)
- cuda.bindings.driver.cuMemcpyDtoH(dst, src, sizeBytes)#
Copy data from Device to Host
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoH(void * dst, hipDeviceptr_t src, size_t sizeBytes)
- cuda.bindings.driver.cuMemcpyDtoH_v2(dst, src, sizeBytes)#
Copy data from Device to Host
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoH(void * dst, hipDeviceptr_t src, size_t sizeBytes)
- cuda.bindings.driver.cuMemcpyDtoD(dst, src, sizeBytes)#
Copy data from Device to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
- cuda.bindings.driver.cuMemcpyDtoD_v2(dst, src, sizeBytes)#
Copy data from Device to Device
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
- cuda.bindings.driver.cuMemcpyAtoD(dstDevice, srcArray, srcOffset, ByteCount)#
Copies from one 1D array to device memory.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
- cuda.bindings.driver.cuMemcpyAtoD_v2(dstDevice, srcArray, srcOffset, ByteCount)#
Copies from one 1D array to device memory.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
- cuda.bindings.driver.cuMemcpyDtoA(dstArray, dstOffset, srcDevice, ByteCount)#
Copies from device memory to a 1D array.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoA(hipArray_t dstArray, size_t dstOffset, hipDeviceptr_t srcDevice, size_t ByteCount)
- cuda.bindings.driver.cuMemcpyDtoA_v2(dstArray, dstOffset, srcDevice, ByteCount)#
Copies from device memory to a 1D array.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoA(hipArray_t dstArray, size_t dstOffset, hipDeviceptr_t srcDevice, size_t ByteCount)
- cuda.bindings.driver.cuMemcpyAtoA(dstArray, dstOffset, srcArray, srcOffset, ByteCount)#
Copies from one 1D array to another.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoA(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
- cuda.bindings.driver.cuMemcpyAtoA_v2(dstArray, dstOffset, srcArray, srcOffset, ByteCount)#
Copies from one 1D array to another.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoA(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
- cuda.bindings.driver.cuMemcpyHtoDAsync(dst, src, sizeBytes, stream)#
Copy data from Host to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, const void * src, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyHtoDAsync_v2(dst, src, sizeBytes, stream)#
Copy data from Host to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, const void * src, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyDtoHAsync(dst, src, sizeBytes, stream)#
Copy data from Device to Host asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoHAsync(void * dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyDtoHAsync_v2(dst, src, sizeBytes, stream)#
Copy data from Device to Host asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoHAsync(void * dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyDtoDAsync(dst, src, sizeBytes, stream)#
Copy data from Device to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyDtoDAsync_v2(dst, src, sizeBytes, stream)#
Copy data from Device to Device asynchronously
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyAtoHAsync(dstHost, srcArray, srcOffset, ByteCount, stream)#
Copies from one 1D array to host memory.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoHAsync(void * dstHost, hipArray_t srcArray, size_t srcOffset, size_t ByteCount, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyAtoHAsync_v2(dstHost, srcArray, srcOffset, ByteCount, stream)#
Copies from one 1D array to host memory.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoHAsync(void * dstHost, hipArray_t srcArray, size_t srcOffset, size_t ByteCount, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyHtoAAsync(dstArray, dstOffset, srcHost, ByteCount, stream)#
Copies from host memory to a 1D array.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoAAsync(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t ByteCount, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyHtoAAsync_v2(dstArray, dstOffset, srcHost, ByteCount, stream)#
Copies from host memory to a 1D array.
- See:
hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoAAsync(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t ByteCount, hipStream_t stream)
- cuda.bindings.driver.cuModuleGetGlobal(hmod, name)#
Returns a global pointer from a module.
Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.
- Args:
- hmod (
ihipModule_t/object) – IN: Module to retrieve global from
- name (
CStr/object) – IN: Name of global to retrieve
- hmod (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotFound,hipErrorInvalidContextint:Returns global size in bytes
C signature
hipError_t hipModuleGetGlobal(hipDeviceptr_t * dptr, size_t * bytes, hipModule_t hmod, const char * name)
- cuda.bindings.driver.cuModuleGetGlobal_v2(hmod, name)#
Returns a global pointer from a module.
Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod. If no variable of that name exists, it returns hipErrorNotFound. Both parameters dptr and bytes are optional. If one of them is NULL, it is ignored and hipSuccess is returned.
- Args:
- hmod (
ihipModule_t/object) – IN: Module to retrieve global from
- name (
CStr/object) – IN: Name of global to retrieve
- hmod (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotFound,hipErrorInvalidContextint:Returns global size in bytes
C signature
hipError_t hipModuleGetGlobal(hipDeviceptr_t * dptr, size_t * bytes, hipModule_t hmod, const char * name)
- cuda.bindings.driver.cudaGetSymbolAddress(symbol)#
Gets device pointer associated with symbol on the device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGetSymbolAddress(void ** devPtr, const void * symbol)
- cuda.bindings.driver.cudaGetSymbolSize(symbol)#
Gets the size of the given symbol on the device.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:pointer to the size
C signature
hipError_t hipGetSymbolSize(size_t * size, const void * symbol)
- cuda.bindings.driver.cuGetProcAddress(symbol, hipVersion, flags)#
Gets the pointer of requested HIP driver function.
Returns hipSuccess if the returned pfn is addressed to the pointer of found driver function.
- Args:
- symbol (
CStr/object) – IN: The Symbol name of the driver function to request.
- hipVersion (
int) – IN: The HIP version for the requested driver function symbol. HIP version is defined as 100*version_major + version_minor. For example, in HIP 6.1, the hipversion is 601, for the symbol function “hipGetDeviceProperties”, the specified hipVersion 601 is greater or equal to the version 600, the symbol function will be handle properly as backend compatible function.
- flags (
int) – IN: Currently only default flag is suppported.
- symbol (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue.hipDriverProcAddressQueryResult:Optional enumeration for returned status of searching for symbol driver function based on the input hipVersion.
C signature
hipError_t hipGetProcAddress(const char * symbol, void ** pfn, int hipVersion, uint64_t flags, hipDriverProcAddressQueryResult * symbolStatus)
- cuda.bindings.driver.cudaMemcpyToSymbol(symbol, src, sizeBytes, offset, kind)#
Copies data to the given symbol on the device. Symbol HIP APIs allow a kernel to define a device-side data symbol which can be accessed on the host side. The symbol can be in __constant or device space. Note that the symbol name needs to be encased in the HIP_SYMBOL macro. This also applies to hipMemcpyFromSymbol, hipGetSymbolAddress, and hipGetSymbolSize. For detailed usage, see the <a href=”https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_porting_guide.html:py:obj:
memcpytosymbol”>memcpyToSymbol example</a> in the HIP Porting Guide.- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemcpyToSymbol(const void * symbol, const void * src, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpyToSymbolAsync(symbol, src, sizeBytes, offset, kind, stream)#
Copies data to the given symbol on the device asynchronously.
- Args:
- symbol (
Pointer/object) – OUT: pointer to the device symbole
- src (
Pointer/object) – IN: pointer to the source address
- sizeBytes (
int) – IN: size in bytes to copy
- offset (
int) – IN: offset in bytes from start of symbole
- kind (
hipMemcpyKind) – IN: type of memory transfer
- stream (
ihipStream_t/object) – IN: stream identifier
- symbol (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemcpyToSymbolAsync(const void * symbol, const void * src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpyFromSymbol(dst, symbol, sizeBytes, offset, kind)#
Copies data from the given symbol on the device.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemcpyFromSymbol(void * dst, const void * symbol, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpyFromSymbolAsync(dst, symbol, sizeBytes, offset, kind, stream)#
Copies data from the given symbol on the device asynchronously.
- Args:
- dst (
Pointer/object) – OUT: Returns pointer to destinition memory address
- symbol (
Pointer/object) – IN: pointer to the symbole address on the device
- sizeBytes (
int) – IN: size in bytes to copy
- offset (
int) – IN: offset in bytes from the start of symbole
- kind (
hipMemcpyKind) – IN: type of memory transfer
- stream (
ihipStream_t/object) – IN: stream identifier
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemcpyFromSymbolAsync(void * dst, const void * symbol, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpyAsync(dst, src, sizeBytes, kind, stream)#
Copies data from src to dst asynchronously.
The copy is always performed by the device associated with the specified stream.
For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is
- attached to the device where the src data is physically located.
For optimal peer-to-peer copies, the copy device must be able to access the src and dst
pointers (by calling hipDeviceEnablePeerAccess) with copy agent as the current device and src/dest as the peerDevice argument. If enabling device peer access is not done, the memory copy will still work, but will perform the copy using a staging buffer on the host.
- Note:
If host or dst are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.
- See:
hipMemcpy,hipMemcpy2D,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpy2DFromArray,hipMemcpyArrayToArray,hipMemcpy2DArrayToArray,hipMemcpyToSymbol,hipMemcpyFromSymbol,hipMemcpy2DAsync,hipMemcpyToArrayAsync,hipMemcpy2DToArrayAsync,hipMemcpyFromArrayAsync,hipMemcpy2DFromArrayAsync,hipMemcpyToSymbolAsync,hipMemcpyFromSymbolAsync- Args:
- dst (
Pointer/object) – OUT: Data being copy to
- src (
Pointer/object) – IN: Data being copy from
- sizeBytes (
int) – IN: Data size in bytes
- kind (
hipMemcpyKind) – IN: Type of memory transfer
- stream (
ihipStream_t/object) – IN: Stream identifier
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorUnknown
C signature
hipError_t hipMemcpyAsync(void * dst, const void * src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
- cuda.bindings.driver.cudaMemset(dst, value, sizeBytes)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemset(void * dst, int value, size_t sizeBytes)
- cuda.bindings.driver.cuMemsetD8(dest, value, count)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count)
- cuda.bindings.driver.cuMemsetD8_v2(dest, value, count)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count)
- cuda.bindings.driver.cuMemsetD8Async(dest, value, count, stream)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value value.
hipMemsetD8Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream)
- cuda.bindings.driver.cuMemsetD16(dest, value, count)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count)
- cuda.bindings.driver.cuMemsetD16_v2(dest, value, count)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count)
- cuda.bindings.driver.cuMemsetD16Async(dest, value, count, stream)#
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value value.
hipMemsetD16Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream)
- cuda.bindings.driver.cuMemsetD32(dest, value, count)#
Fills the memory area pointed to by dest with the constant integer value for specified number of times.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count)
- cuda.bindings.driver.cuMemsetD32_v2(dest, value, count)#
Fills the memory area pointed to by dest with the constant integer value for specified number of times.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count)
- cuda.bindings.driver.cudaMemsetAsync(dst, value, sizeBytes, stream)#
Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value.
hipMemsetAsync() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetAsync(void * dst, int value, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuMemsetD32Async(dst, value, count, stream)#
Fills the memory area pointed to by dev with the constant integer value for specified number of times.
hipMemsetD32Async() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count, hipStream_t stream)
- cuda.bindings.driver.cudaMemset2D(dst, pitch, value, width, height)#
Fills the memory area pointed to by dst with the constant value.
- Args:
- dst (
Pointer/object) – OUT: Pointer to 2D device memory
- pitch (
int) – IN: Pitch size in bytes of 2D device memory, unused if height equals 1
- value (
int) – IN: Constant value to set for each byte of specified memory
- width (
int) – IN: Width size in bytes in 2D memory
- height (
int) – IN: Height size in bytes in 2D memory
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemset2D(void * dst, size_t pitch, int value, size_t width, size_t height)
- cuda.bindings.driver.cudaMemset2DAsync(dst, pitch, value, width, height, stream)#
Fills asynchronously the memory area pointed to by dst with the constant value.
- Args:
- dst (
Pointer/object) – IN: Pointer to 2D device memory
- pitch (
int) – IN: Pitch size in bytes of 2D device memory, unused if height equals 1
- value (
int) – IN: Value to set for each byte of specified memory
- width (
int) – IN: Width size in bytes in 2D memory
- height (
int) – IN: Height size in bytes in 2D memory
- stream (
ihipStream_t/object) – IN: Stream identifier
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemset2DAsync(void * dst, size_t pitch, int value, size_t width, size_t height, hipStream_t stream)
- cuda.bindings.driver.cudaMemset3D(pitchedDevPtr, value, extent)#
Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.
- Args:
- pitchedDevPtr (
hipPitchedPtr) – IN: Pointer to pitched device memory
- value (
int) – IN: Value to set for each byte of specified memory
- extent (
hipExtent) – IN: Size parameters for width field in bytes in device memory
- pitchedDevPtr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent)
- cuda.bindings.driver.cudaMemset3DAsync(pitchedDevPtr, value, extent, stream)#
Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.
- Args:
- pitchedDevPtr (
hipPitchedPtr) – IN: Pointer to pitched device memory
- value (
int) – IN: Value to set for each byte of specified memory
- extent (
hipExtent) – IN: Size parameters for width field in bytes in device memory
- stream (
ihipStream_t/object) – IN: Stream identifier
- pitchedDevPtr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent, hipStream_t stream)
- cuda.bindings.driver.cuMemsetD2D8(dst, dstPitch, value, width, height)#
Fills 2D memory range of ‘width’ 8-bit values synchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D8(hipDeviceptr_t dst, size_t dstPitch, unsigned char value, size_t width, size_t height)
- cuda.bindings.driver.cuMemsetD2D8_v2(dst, dstPitch, value, width, height)#
Fills 2D memory range of ‘width’ 8-bit values synchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D8(hipDeviceptr_t dst, size_t dstPitch, unsigned char value, size_t width, size_t height)
- cuda.bindings.driver.cuMemsetD2D8Async(dst, dstPitch, value, width, height, stream)#
Fills 2D memory range of ‘width’ 8-bit values asynchronously to the specified char value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D8Async(hipDeviceptr_t dst, size_t dstPitch, unsigned char value, size_t width, size_t height, hipStream_t stream)
- cuda.bindings.driver.cuMemsetD2D16(dst, dstPitch, value, width, height)#
Fills 2D memory range of ‘width’ 16-bit values synchronously to the specified short value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D16(hipDeviceptr_t dst, size_t dstPitch, unsigned short value, size_t width, size_t height)
- cuda.bindings.driver.cuMemsetD2D16_v2(dst, dstPitch, value, width, height)#
Fills 2D memory range of ‘width’ 16-bit values synchronously to the specified short value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D16(hipDeviceptr_t dst, size_t dstPitch, unsigned short value, size_t width, size_t height)
- cuda.bindings.driver.cuMemsetD2D16Async(dst, dstPitch, value, width, height, stream)#
Fills 2D memory range of ‘width’ 16-bit values asynchronously to the specified short value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D16Async(hipDeviceptr_t dst, size_t dstPitch, unsigned short value, size_t width, size_t height, hipStream_t stream)
- cuda.bindings.driver.cuMemsetD2D32(dst, dstPitch, value, width, height)#
Fills 2D memory range of ‘width’ 32-bit values synchronously to the specified int value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D32(hipDeviceptr_t dst, size_t dstPitch, unsigned int value, size_t width, size_t height)
- cuda.bindings.driver.cuMemsetD2D32_v2(dst, dstPitch, value, width, height)#
Fills 2D memory range of ‘width’ 32-bit values synchronously to the specified int value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D32(hipDeviceptr_t dst, size_t dstPitch, unsigned int value, size_t width, size_t height)
- cuda.bindings.driver.cuMemsetD2D32Async(dst, dstPitch, value, width, height, stream)#
Fills 2D memory range of ‘width’ 32-bit values asynchronously to the specified int value. Height specifies numbers of rows to set and dstPitch speicifies the number of bytes between each row.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipMemsetD2D32Async(hipDeviceptr_t dst, size_t dstPitch, unsigned int value, size_t width, size_t height, hipStream_t stream)
- cuda.bindings.driver.cuMemGetInfo()#
Query memory info.
On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).
- Warning:
On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Returns free memory on the current device in bytes
int:Returns total allocatable memory on the current device in bytes
C signature
hipError_t hipMemGetInfo(size_t * free, size_t * total)
- cuda.bindings.driver.cuMemGetInfo_v2()#
Query memory info.
On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).
- Warning:
On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Returns free memory on the current device in bytes
int:Returns total allocatable memory on the current device in bytes
C signature
hipError_t hipMemGetInfo(size_t * free, size_t * total)
- cuda.bindings.driver.cudaMemGetInfo()#
Query memory info.
On ROCM, this function gets the actual free memory left on the current device, so supports the cases while running multi-workload (such as multiple processes, multiple threads, and multiple GPUs).
- Warning:
On Windows, the free memory only accounts for memory allocated by this process and may be optimistic.
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValueint:Returns free memory on the current device in bytes
int:Returns total allocatable memory on the current device in bytes
C signature
hipError_t hipMemGetInfo(size_t * free, size_t * total)
- cuda.bindings.driver.cudaMallocArray(desc, width, height, flags)#
Allocate an array on the device.
- See:
hipMalloc,hipMallocPitch,hipFree,hipFreeArray,hipHostMalloc,hipHostFree- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- width (
int) – IN: Requested array allocation width
- height (
int) – IN: Requested array allocation height
- flags (
int) – IN: Requested properties of allocated array
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemoryhipArray:Pointer to allocated array in device memory
C signature
hipError_t hipMallocArray(hipArray_t * array, const hipChannelFormatDesc * desc, size_t width, size_t height, unsigned int flags)
- cuda.bindings.driver.cuArrayCreate(pAllocateArray)#
Create an array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY_DESCRIPTOR/object) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the array memory
C signature
hipError_t hipArrayCreate(hipArray_t * pHandle, const HIP_ARRAY_DESCRIPTOR * pAllocateArray)
- cuda.bindings.driver.cuArrayCreate_v2(pAllocateArray)#
Create an array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY_DESCRIPTOR/object) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the array memory
C signature
hipError_t hipArrayCreate(hipArray_t * pHandle, const HIP_ARRAY_DESCRIPTOR * pAllocateArray)
- cuda.bindings.driver.cuArrayDestroy(array)#
Destroy an array memory pointer on the device.
- See:
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipArrayDestroy(hipArray_t array)
- cuda.bindings.driver.cuArray3DCreate(pAllocateArray)#
Create a 3D array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY3D_DESCRIPTOR/object) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the 3D array memory
C signature
hipError_t hipArray3DCreate(hipArray_t * array, const HIP_ARRAY3D_DESCRIPTOR * pAllocateArray)
- cuda.bindings.driver.cuArray3DCreate_v2(pAllocateArray)#
Create a 3D array memory pointer on the device.
- See:
- Args:
- pAllocateArray (
HIP_ARRAY3D_DESCRIPTOR/object) – IN: Requested array desciptor
- pAllocateArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray:Pointer to the 3D array memory
C signature
hipError_t hipArray3DCreate(hipArray_t * array, const HIP_ARRAY3D_DESCRIPTOR * pAllocateArray)
- cuda.bindings.driver.cudaMalloc3D(extent)#
Create a 3D memory pointer on the device.
- See:
- Args:
- extent (
hipExtent) – IN: Requested extent
- extent (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipPitchedPtr:Pointer to the 3D memory
C signature
hipError_t hipMalloc3D(hipPitchedPtr * pitchedDevPtr, hipExtent extent)
- cuda.bindings.driver.cudaFreeArray(array)#
Frees an array on the device.
- See:
hipMalloc,hipMallocPitch,hipFree,hipMallocArray,hipHostMalloc,hipHostFree- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotInitialized
C signature
hipError_t hipFreeArray(hipArray_t array)
- cuda.bindings.driver.cudaMalloc3DArray(desc, extent, flags)#
Allocate an array on the device.
- See:
hipMalloc,hipMallocPitch,hipFree,hipFreeArray,hipHostMalloc,hipHostFree- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- extent (
hipExtent) – IN: Requested array allocation width, height and depth
- flags (
int) – IN: Requested properties of allocated array
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemoryhipArray:Pointer to allocated array in device memory
C signature
hipError_t hipMalloc3DArray(hipArray_t * array, const struct hipChannelFormatDesc * desc, struct hipExtent extent, unsigned int flags)
- cuda.bindings.driver.cudaArrayGetInfo(array)#
Gets info about the specified array
- See:
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipErrorInvalidHandlehipChannelFormatDesc:Returned array type
hipExtent:Returned array shape. 2D arrays will have depth of zero
int:Returned array flags
C signature
hipError_t hipArrayGetInfo(hipChannelFormatDesc * desc, hipExtent * extent, unsigned int * flags, hipArray_t array)
- cuda.bindings.driver.cuArrayGetDescriptor(array)#
Gets a 1D or 2D array descriptor
- See:
hipArray3DCreate,hipArray3DGetDescriptor,hipArrayCreate,hipArrayDestroy,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- Returns:
A
tupleof size 2 that contains (in that order):HIP_ARRAY_DESCRIPTOR:Returned array descriptor
C signature
hipError_t hipArrayGetDescriptor(HIP_ARRAY_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
- cuda.bindings.driver.cuArrayGetDescriptor_v2(array)#
Gets a 1D or 2D array descriptor
- See:
hipArray3DCreate,hipArray3DGetDescriptor,hipArrayCreate,hipArrayDestroy,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- Returns:
A
tupleof size 2 that contains (in that order):HIP_ARRAY_DESCRIPTOR:Returned array descriptor
C signature
hipError_t hipArrayGetDescriptor(HIP_ARRAY_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
- cuda.bindings.driver.cuArray3DGetDescriptor(array)#
Gets a 3D array descriptor
- See:
hipArray3DCreate,hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- Returns:
A
tupleof size 2 that contains (in that order):HIP_ARRAY3D_DESCRIPTOR:Returned 3D array descriptor
C signature
hipError_t hipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
- cuda.bindings.driver.cuArray3DGetDescriptor_v2(array)#
Gets a 3D array descriptor
- See:
hipArray3DCreate,hipArrayCreate,hipArrayDestroy,hipArrayGetDescriptor,hipMemAlloc,hipMemAllocHost,hipMemAllocPitch,hipMemcpy2D,hipMemcpy2DAsync,hipMemcpy2DUnaligned,hipMemcpy3D,hipMemcpy3DAsync,hipMemcpyAtoA,hipMemcpyAtoD,hipMemcpyAtoH,hipMemcpyAtoHAsync,hipMemcpyDtoA,hipMemcpyDtoD,hipMemcpyDtoDAsync,hipMemcpyDtoH,hipMemcpyDtoHAsync,hipMemcpyHtoA,hipMemcpyHtoAAsync,hipMemcpyHtoD,hipMemcpyHtoDAsync,hipMemFree,hipMemFreeHost,hipMemGetAddressRange,hipMemGetInfo,hipMemHostAlloc,hipMemHostGetDevicePointer,hipMemsetD8,hipMemsetD16,hipMemsetD32,hipArrayGetInfo- Args:
- Returns:
A
tupleof size 2 that contains (in that order):HIP_ARRAY3D_DESCRIPTOR:Returned 3D array descriptor
C signature
hipError_t hipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR * pArrayDescriptor, hipArray_t array)
- cuda.bindings.driver.cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind)#
Copies data between host and device.
hipMemcpy2D supports memory matrix copy from the pointed area src to the pointed area dst. The copy direction is defined by kind which must be one of
hipMemcpyHostToDevice,hipMemcpyHostToDevice,hipMemcpyDeviceToHosthipMemcpyDeviceToDeviceorhipMemcpyDefault. Device to Device copies don’t need to wait for host synchronization. The copy is executed on the default null tream. The src and dst must not overlap. dpitch and spitch are the widths in bytes in memory matrix, width cannot exceed dpitch or spitch.For hipMemcpy2D, the copy is always performed by the current device (set by hipSetDevice). For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the device where the src data is physically located. For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dst as the peerDevice argument. if this is not done, the hipMemcpy2D will still work, but will perform the copy using a staging buffer on the host.
- Warning:
Calling hipMemcpy2D with dst and src pointers that do not match the hipMemcpyKind results in undefined behavior.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – OUT: Destination memory address
- dpitch (
int) – IN: Pitch size in bytes of destination memory
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch size in bytes of source memory
- width (
int) – IN: Width size in bytes of matrix transfer (columns)
- height (
int) – IN: Height size in bytes of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
C signature
hipError_t hipMemcpy2D(void * dst, size_t dpitch, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
- cuda.bindings.driver.cuMemcpy2D(pCopy)#
Copies memory for 2D arrays.
- See:
hipMemcpy,hipMemcpy2D,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
hip_Memcpy2D/object) – IN: Parameters for the memory copy
- pCopy (
- Returns:
C signature
hipError_t hipMemcpyParam2D(const hip_Memcpy2D * pCopy)
- cuda.bindings.driver.cuMemcpy2D_v2(pCopy)#
Copies memory for 2D arrays.
- See:
hipMemcpy,hipMemcpy2D,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
hip_Memcpy2D/object) – IN: Parameters for the memory copy
- pCopy (
- Returns:
C signature
hipError_t hipMemcpyParam2D(const hip_Memcpy2D * pCopy)
- cuda.bindings.driver.cuMemcpy2DAsync(pCopy, stream)#
Copies memory for 2D arrays.
- See:
hipMemcpy,hipMemcpy2D,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
hip_Memcpy2D/object) – IN: Parameters for the memory copy
- stream (
ihipStream_t/object) – IN: Stream to use
- pCopy (
- Returns:
C signature
hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D * pCopy, hipStream_t stream)
- cuda.bindings.driver.cuMemcpy2DAsync_v2(pCopy, stream)#
Copies memory for 2D arrays.
- See:
hipMemcpy,hipMemcpy2D,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
hip_Memcpy2D/object) – IN: Parameters for the memory copy
- stream (
ihipStream_t/object) – IN: Stream to use
- pCopy (
- Returns:
C signature
hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D * pCopy, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream)#
Copies data between host and device asynchronously.
hipMemcpy2DAsync supports memory matrix copy from the pointed area src to the pointed area dst. The copy direction is defined by kind which must be one of
hipMemcpyHostToDevice,hipMemcpyDeviceToHost,hipMemcpyDeviceToDeviceorhipMemcpyDefault. dpitch and spitch are the widths in bytes for memory matrix corresponds to dst and src. width cannot exceed dpitch or spitch.The copy is always performed by the device associated with the specified stream. The API is asynchronous with respect to the host, so the call may return before the copy is complete. The copy can optionally be excuted in a specific stream by passing a non-zero stream argument, for HostToDevice or DeviceToHost copies, the copy can overlap with operations in other streams.
For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is attached to the device where the src data is physically located.
For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess) with copy agent as the current device and src/dst as the peerDevice argument. If enabling device peer access is not done, the API will still work, but will perform the copy using a staging buffer on the host.
- Note:
If host or dst are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2DToArray,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – OUT: Pointer to destination memory address
- dpitch (
int) – IN: Pitch size in bytes of destination memory
- src (
Pointer/object) – IN: Pointer to source memory address
- spitch (
int) – IN: Pitch size in bytes of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- stream (
ihipStream_t/object) – IN: Stream to use
- dst (
- Returns:
C signature
hipError_t hipMemcpy2DAsync(void * dst, size_t dpitch, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
hipArray/object) – OUT: Destination memory address
- wOffset (
int) – IN: Destination starting X offset
- hOffset (
int) – IN: Destination starting Y offset
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
C signature
hipError_t hipMemcpy2DToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
hipArray/object) – OUT: Destination memory address
- wOffset (
int) – IN: Destination starting X offset
- hOffset (
int) – IN: Destination starting Y offset
- src (
Pointer/object) – IN: Source memory address
- spitch (
int) – IN: Pitch of source memory
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- stream (
ihipStream_t/object) – IN: Accelerator view which the copy is being enqueued
- dst (
- Returns:
C signature
hipError_t hipMemcpy2DToArrayAsync(hipArray_t dst, size_t wOffset, size_t hOffset, const void * src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpyToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
hipArray/object) – OUT: Destination memory address
- wOffsetDst (
int) – IN: Destination starting X offset
- hOffsetDst (
int) – IN: Destination starting Y offset
- src (
hipArray/object) – IN: Source memory address
- wOffsetSrc (
int) – IN: Source starting X offset
- hOffsetSrc (
int) – IN: Source starting Y offset (columns in bytes)
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidMemcpyDirection
C signature
hipError_t hipMemcpy2DArrayToArray(hipArray_t dst, size_t wOffsetDst, size_t hOffsetDst, hipArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind)#
Copies data between host and device [Deprecated]
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Warning:
This API is deprecated.
- Args:
- Returns:
C signature
hipError_t hipMemcpyToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void * src, size_t count, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpyFromArray(dst, srcArray, wOffset, hOffset, count, kind)#
Copies data between host and device [Deprecated]
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Warning:
This API is deprecated.
- Args:
- Returns:
C signature
hipError_t hipMemcpyFromArray(void * dst, hipArray_const_t srcArray, size_t wOffset, size_t hOffset, size_t count, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – OUT: Destination memory address
- dpitch (
int) – IN: Pitch of destination memory
- src (
hipArray/object) – IN: Source memory address
- wOffset (
int) – IN: Source starting X offset
- hOffset (
int) – IN: Source starting Y offset
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- dst (
- Returns:
C signature
hipError_t hipMemcpy2DFromArray(void * dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind)
- cuda.bindings.driver.cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream)#
Copies data between host and device asynchronously.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- dst (
Pointer/object) – OUT: Destination memory address
- dpitch (
int) – IN: Pitch of destination memory
- src (
hipArray/object) – IN: Source memory address
- wOffset (
int) – IN: Source starting X offset
- hOffset (
int) – IN: Source starting Y offset
- width (
int) – IN: Width of matrix transfer (columns in bytes)
- height (
int) – IN: Height of matrix transfer (rows)
- kind (
hipMemcpyKind) – IN: Type of transfer
- stream (
ihipStream_t/object) – IN: Accelerator view which the copy is being enqueued
- dst (
- Returns:
C signature
hipError_t hipMemcpy2DFromArrayAsync(void * dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
- cuda.bindings.driver.cuMemcpyAtoH(dst, srcArray, srcOffset, count)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoH(void * dst, hipArray_t srcArray, size_t srcOffset, size_t count)
- cuda.bindings.driver.cuMemcpyAtoH_v2(dst, srcArray, srcOffset, count)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
C signature
hipError_t hipMemcpyAtoH(void * dst, hipArray_t srcArray, size_t srcOffset, size_t count)
- cuda.bindings.driver.cuMemcpyHtoA(dstArray, dstOffset, srcHost, count)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t count)
- cuda.bindings.driver.cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, count)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- Returns:
C signature
hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void * srcHost, size_t count)
- cuda.bindings.driver.cudaMemcpy3D(p)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- p (
hipMemcpy3DParms/object) – IN: 3D memory copy parameters
- p (
- Returns:
C signature
hipError_t hipMemcpy3D(const struct hipMemcpy3DParms * p)
- cuda.bindings.driver.cudaMemcpy3DAsync(p, stream)#
Copies data between host and device asynchronously.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- p (
hipMemcpy3DParms/object) – IN: 3D memory copy parameters
- stream (
ihipStream_t/object) – IN: Stream to use
- p (
- Returns:
C signature
hipError_t hipMemcpy3DAsync(const struct hipMemcpy3DParms * p, hipStream_t stream)
- cuda.bindings.driver.cuMemcpy3D(pCopy)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
HIP_MEMCPY3D/object) – IN: 3D memory copy parameters
- pCopy (
- Returns:
C signature
hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D * pCopy)
- cuda.bindings.driver.cuMemcpy3D_v2(pCopy)#
Copies data between host and device.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
HIP_MEMCPY3D/object) – IN: 3D memory copy parameters
- pCopy (
- Returns:
C signature
hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D * pCopy)
- cuda.bindings.driver.cuMemcpy3DAsync(pCopy, stream)#
Copies data between host and device asynchronously.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
HIP_MEMCPY3D/object) – IN: 3D memory copy parameters
- stream (
ihipStream_t/object) – IN: Stream to use
- pCopy (
- Returns:
C signature
hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D * pCopy, hipStream_t stream)
- cuda.bindings.driver.cuMemcpy3DAsync_v2(pCopy, stream)#
Copies data between host and device asynchronously.
- See:
hipMemcpy,hipMemcpy2DToArray,hipMemcpy2D,hipMemcpyFromArray,hipMemcpyToSymbol,hipMemcpyAsync- Args:
- pCopy (
HIP_MEMCPY3D/object) – IN: 3D memory copy parameters
- stream (
ihipStream_t/object) – IN: Stream to use
- pCopy (
- Returns:
C signature
hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D * pCopy, hipStream_t stream)
- cuda.bindings.driver.cuMemGetAddressRange(dptr)#
Get information on memory allocations.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotFoundint:Size of allocation
C signature
hipError_t hipMemGetAddressRange(hipDeviceptr_t * pbase, size_t * psize, hipDeviceptr_t dptr)
- cuda.bindings.driver.cuMemGetAddressRange_v2(dptr)#
Get information on memory allocations.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotFoundint:Size of allocation
C signature
hipError_t hipMemGetAddressRange(hipDeviceptr_t * pbase, size_t * psize, hipDeviceptr_t dptr)
- cuda.bindings.driver.cuMemcpyBatchAsync(srcs, count, attrs, numAttrs, stream)#
Perform Batch of 1D copies
- Args:
- srcs (
ListOfPointer/object) – IN: Array of source pointers.
- count (
int) – IN: Size of dsts, srcs and sizes arrays
- attrs (
hipMemcpyAttributes/object) – IN: Array of memcpy attributes (not supported)
- numAttrs (
int) – IN: Size of attrs and attrsIdxs arrays (not supported)
- stream (
ihipStream_t/object) – IN: stream used to enqueue operations in.
- srcs (
- Returns:
A
tupleof size 5 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Array of sizes for memcpy operations
int:Array of indices to map attrs to copies (not supported)
int:Pointer to a location to return failure index inside the batch
C signature
hipError_t hipMemcpyBatchAsync(void ** dsts, void ** srcs, size_t * sizes, size_t count, hipMemcpyAttributes * attrs, size_t * attrsIdxs, size_t numAttrs, size_t * failIdx, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpyBatchAsync(srcs, count, attrs, numAttrs, stream)#
Perform Batch of 1D copies
- Args:
- srcs (
ListOfPointer/object) – IN: Array of source pointers.
- count (
int) – IN: Size of dsts, srcs and sizes arrays
- attrs (
hipMemcpyAttributes/object) – IN: Array of memcpy attributes (not supported)
- numAttrs (
int) – IN: Size of attrs and attrsIdxs arrays (not supported)
- stream (
ihipStream_t/object) – IN: stream used to enqueue operations in.
- srcs (
- Returns:
A
tupleof size 5 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Array of sizes for memcpy operations
int:Array of indices to map attrs to copies (not supported)
int:Pointer to a location to return failure index inside the batch
C signature
hipError_t hipMemcpyBatchAsync(void ** dsts, void ** srcs, size_t * sizes, size_t count, hipMemcpyAttributes * attrs, size_t * attrsIdxs, size_t numAttrs, size_t * failIdx, hipStream_t stream)
- cuda.bindings.driver.cuMemcpy3DBatchAsync(numOps, opList, flags, stream)#
Perform Batch of 3D copies
- Args:
- numOps (
int) – IN: Total number of memcpy operations.
- opList (
hipMemcpy3DBatchOp/object) – IN: Array of size numOps containing the actual memcpy operations.
- flags (
int) – IN: Flags for future use, must be zero now.
- stream (
ihipStream_t/object) – IN: The stream to enqueue the operations in.
- numOps (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Pointer to a location to return the index of the copy where a failure
was encountered.
C signature
hipError_t hipMemcpy3DBatchAsync(size_t numOps, struct hipMemcpy3DBatchOp * opList, size_t * failIdx, unsigned long long flags, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpy3DBatchAsync(numOps, opList, flags, stream)#
Perform Batch of 3D copies
- Args:
- numOps (
int) – IN: Total number of memcpy operations.
- opList (
hipMemcpy3DBatchOp/object) – IN: Array of size numOps containing the actual memcpy operations.
- flags (
int) – IN: Flags for future use, must be zero now.
- stream (
ihipStream_t/object) – IN: The stream to enqueue the operations in.
- numOps (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Pointer to a location to return the index of the copy where a failure
was encountered.
C signature
hipError_t hipMemcpy3DBatchAsync(size_t numOps, struct hipMemcpy3DBatchOp * opList, size_t * failIdx, unsigned long long flags, hipStream_t stream)
- cuda.bindings.driver.cudaMemcpy3DPeer(p)#
Performs 3D memory copies between devices This API is asynchronous with respect to host
- Args:
- p (
hipMemcpy3DPeerParms/object) – IN: Parameters for memory copy
- p (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue, hipErrorInvalidDevice
C signature
hipError_t hipMemcpy3DPeer(hipMemcpy3DPeerParms * p)
- cuda.bindings.driver.cudaMemcpy3DPeerAsync(p, stream)#
Performs 3D memory copies between devices asynchronously
- Args:
- p (
hipMemcpy3DPeerParms/object) – IN: Parameters for memory copy
- stream (
ihipStream_t/object) – IN: Stream to enqueue operation in.
- p (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue, hipErrorInvalidDevice
C signature
hipError_t hipMemcpy3DPeerAsync(hipMemcpy3DPeerParms * p, hipStream_t stream)
- cuda.bindings.driver.cuDeviceCanAccessPeer(deviceId, peerDeviceId)#
Determines if a device can access a peer device’s memory.
This section describes the PeerToPeer device memory access functions of HIP runtime API.
The value of
canAccessPeer,Returns “1” if the specified
deviceIdis capable of directly accessing memory physically located onpeerDeviceId,Returns “0” if the specified
deviceIdis not capable of directly accessing memory physically located onpeerDeviceId.Returns “0” if
deviceId==peerDeviceId,both are valid devices, however, a device is not a peer of itself.Returns
hipErrorInvalidDeviceif deviceId or peerDeviceId are not valid devices- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:Returns the peer access capability (0 or 1)
C signature
hipError_t hipDeviceCanAccessPeer(int * canAccessPeer, int deviceId, int peerDeviceId)
- cuda.bindings.driver.cudaDeviceCanAccessPeer(deviceId, peerDeviceId)#
Determines if a device can access a peer device’s memory.
This section describes the PeerToPeer device memory access functions of HIP runtime API.
The value of
canAccessPeer,Returns “1” if the specified
deviceIdis capable of directly accessing memory physically located onpeerDeviceId,Returns “0” if the specified
deviceIdis not capable of directly accessing memory physically located onpeerDeviceId.Returns “0” if
deviceId==peerDeviceId,both are valid devices, however, a device is not a peer of itself.Returns
hipErrorInvalidDeviceif deviceId or peerDeviceId are not valid devices- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceint:Returns the peer access capability (0 or 1)
C signature
hipError_t hipDeviceCanAccessPeer(int * canAccessPeer, int deviceId, int peerDeviceId)
- cuda.bindings.driver.cudaDeviceEnablePeerAccess(peerDeviceId, flags)#
Enables direct access to memory allocations on a peer device.
When this API is successful, all memory allocations on peer device will be mapped into the address space of the current device. In addition, any future memory allocation on the peer device will remain accessible from the current device, until the access is disabled using hipDeviceDisablePeerAccess or device is reset using hipDeviceReset.
- Args:
- Returns:
hipError_t: One of:py:obj:
hipSuccess,hipErrorInvalidDevice,hipErrorInvalidValue,py:obj:
hipErrorPeerAccessAlreadyEnabledif peer access is already enabled for this device.
C signature
hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags)
- cuda.bindings.driver.cudaDeviceDisablePeerAccess(peerDeviceId)#
Disables direct access to memory allocations on a peer device.
If direct access to memory allocations on peer device has not been enabled yet from the current device, it returns
hipErrorPeerAccessNotEnabled.- Args:
- peerDeviceId (
int) – IN: Peer device to disable direct access to
- peerDeviceId (
- Returns:
C signature
hipError_t hipDeviceDisablePeerAccess(int peerDeviceId)
- cuda.bindings.driver.cudaMemcpyPeer(dst, dstDeviceId, src, srcDeviceId, sizeBytes)#
Copies memory between two peer accessible devices.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDevice
C signature
hipError_t hipMemcpyPeer(void * dst, int dstDeviceId, const void * src, int srcDeviceId, size_t sizeBytes)
- cuda.bindings.driver.cudaMemcpyPeerAsync(dst, dstDeviceId, src, srcDevice, sizeBytes, stream)#
Copies memory between two peer accessible devices asynchronously.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDevice
C signature
hipError_t hipMemcpyPeerAsync(void * dst, int dstDeviceId, const void * src, int srcDevice, size_t sizeBytes, hipStream_t stream)
- cuda.bindings.driver.cuCtxCreate(flags, device)#
Create a context and set it as current/default context
- See:
hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccessihipCtx_t:Context to create
C signature
hipError_t hipCtxCreate(hipCtx_t * ctx, unsigned int flags, hipDevice_t device)
- cuda.bindings.driver.cuCtxCreate_v2(flags, device)#
Create a context and set it as current/default context
- See:
hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccessihipCtx_t:Context to create
C signature
hipError_t hipCtxCreate(hipCtx_t * ctx, unsigned int flags, hipDevice_t device)
- cuda.bindings.driver.cuCtxDestroy(ctx)#
Destroy a HIP context [Deprecated]
- See:
hipCtxCreate,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,:py:obj:hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipCtxDestroy(hipCtx_t ctx)
- cuda.bindings.driver.cuCtxDestroy_v2(ctx)#
Destroy a HIP context [Deprecated]
- See:
hipCtxCreate,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,:py:obj:hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipCtxDestroy(hipCtx_t ctx)
- cuda.bindings.driver.cuCtxPopCurrent()#
Pop the current/default context and return the popped context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxSetCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidContextihipCtx_t:The current context to pop
C signature
hipError_t hipCtxPopCurrent(hipCtx_t * ctx)
- cuda.bindings.driver.cuCtxPopCurrent_v2()#
Pop the current/default context and return the popped context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxSetCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidContextihipCtx_t:The current context to pop
C signature
hipError_t hipCtxPopCurrent(hipCtx_t * ctx)
- cuda.bindings.driver.cuCtxPushCurrent(ctx)#
Push the context to be set as current/ default context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidContext
C signature
hipError_t hipCtxPushCurrent(hipCtx_t ctx)
- cuda.bindings.driver.cuCtxPushCurrent_v2(ctx)#
Push the context to be set as current/ default context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidContext
C signature
hipError_t hipCtxPushCurrent(hipCtx_t ctx)
- cuda.bindings.driver.cuCtxSetCurrent(ctx)#
Set the passed context as current/default [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidContext
C signature
hipError_t hipCtxSetCurrent(hipCtx_t ctx)
- cuda.bindings.driver.cuCtxGetCurrent()#
Get the handle of the current/ default context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetDevice,hipCtxGetFlags,hipCtxPopCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidContextihipCtx_t:The context to get as current
C signature
hipError_t hipCtxGetCurrent(hipCtx_t * ctx)
- cuda.bindings.driver.cuCtxGetDevice()#
Get the handle of the device associated with current/default context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidContextint:The device from the current context
C signature
hipError_t hipCtxGetDevice(hipDevice_t * device)
- cuda.bindings.driver.cuCtxGetApiVersion(ctx)#
Returns the approximate HIP api version.
- Warning:
The HIP feature set does not correspond to an exact CUDA SDK api revision. This function always set *apiVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the api revision number here and should use arch feature flags to test device capabilities or conditional compilation.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetDevice,hipCtxGetFlags,hipCtxPopCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccessint:API version to get
C signature
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, unsigned int * apiVersion)
- cuda.bindings.driver.cuCtxGetCacheConfig()#
Get Cache configuration for a specific function [Deprecated]
- Warning:
AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccesshipFuncCache_t:Cache configuration
C signature
hipError_t hipCtxGetCacheConfig(hipFuncCache_t * cacheConfig)
- cuda.bindings.driver.cuCtxSetCacheConfig(cacheConfig)#
Set L1/Shared cache partition [Deprecated]
- Warning:
AMD devices and some Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- cacheConfig (
hipFuncCache_t) – IN: Cache configuration to set
- cacheConfig (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig)
Set Shared memory bank configuration [Deprecated]
- Warning:
AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- config (
hipSharedMemConfig) – IN: Shared memory configuration to set
- config (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config)
Get Shared memory bank configuration [Deprecated]
- Warning:
AMD devices and some Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccesshipSharedMemConfig:Pointer of shared memory configuration
C signature
hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig * pConfig)
- cuda.bindings.driver.cuCtxSynchronize()#
Blocks until the default context has completed all preceding requested tasks [Deprecated]
- Warning:
This function waits for all streams on the default context to complete execution, and then returns.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipCtxSynchronize()
- cuda.bindings.driver.cuCtxGetFlags()#
Return flags used for creating default context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccessint:Pointer of flags
C signature
hipError_t hipCtxGetFlags(unsigned int * flags)
- cuda.bindings.driver.cuCtxEnablePeerAccess(peerCtx, flags)#
Enables direct access to memory allocations in a peer context [Deprecated]
Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
PeerToPeer support is experimental.
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
C signature
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags)
- cuda.bindings.driver.cuCtxDisablePeerAccess(peerCtx)#
Disable direct access from current context’s virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations [Deprecated]
Returns
hipErrorPeerAccessNotEnabledif direct access to memory on peerDevice has not yet been enabled from the current device.- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
PeerToPeer support is experimental.
- Warning:
This API is deprecated on the AMD platform, only for equivalent cuCtx driver API on the NVIDIA platform.
- Args:
- Returns:
C signature
hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx)
- cuda.bindings.driver.cuDevicePrimaryCtxGetState(dev)#
Get the state of the primary context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int) – IN: Device to get primary context flags for
- dev (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccessint:Pointer to store flags
int:Pointer to store context state; 0 = inactive, 1 = active
C signature
hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int * flags, int * active)
- cuda.bindings.driver.cuDevicePrimaryCtxRelease(dev)#
Release the primary context on the GPU.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This function return
hipSuccessthough doesn’t release the primaryCtx by design on HIP/HIP-CLANG path.- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int) – IN: Device which primary context is released [Deprecated]
- dev (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
- cuda.bindings.driver.cuDevicePrimaryCtxRelease_v2(dev)#
Release the primary context on the GPU.
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This function return
hipSuccessthough doesn’t release the primaryCtx by design on HIP/HIP-CLANG path.- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int) – IN: Device which primary context is released [Deprecated]
- dev (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
- cuda.bindings.driver.cuDevicePrimaryCtxRetain(dev)#
Retain the primary context on the GPU [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int) – IN: Device which primary context is released
- dev (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccessihipCtx_t:Returned context handle of the new context
C signature
hipError_t hipDevicePrimaryCtxRetain(hipCtx_t * pctx, hipDevice_t dev)
- cuda.bindings.driver.cuDevicePrimaryCtxReset(dev)#
Resets the primary context on the GPU [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int) – IN: Device which primary context is reset
- dev (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
- cuda.bindings.driver.cuDevicePrimaryCtxReset_v2(dev)#
Resets the primary context on the GPU [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- dev (
int) – IN: Device which primary context is reset
- dev (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
- cuda.bindings.driver.cuDevicePrimaryCtxSetFlags(dev, flags)#
Set flags for the primary context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- Returns:
C signature
hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
- cuda.bindings.driver.cuDevicePrimaryCtxSetFlags_v2(dev, flags)#
Set flags for the primary context [Deprecated]
- See:
hipCtxCreate,hipCtxDestroy,hipCtxGetFlags,hipCtxPopCurrent,hipCtxGetCurrent,hipCtxSetCurrent,hipCtxPushCurrent,hipCtxSetCacheConfig,hipCtxSynchronize,hipCtxGetDevice- Warning:
This API is deprecated on the AMD platform, only for equivalent driver API on the NVIDIA platform.
- Args:
- Returns:
C signature
hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
- cuda.bindings.driver.cuModuleLoadFatBinary(fatbin)#
Loads fatbin object
This section describes the module management functions of HIP runtime API.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipModuleLoadFatBinary(hipModule_t * module, const void * fatbin)
- cuda.bindings.driver.cuModuleLoad(fname)#
Loads code object from file into a module the currrent context.
- Warning:
File/memory resources allocated in this function are released only in hipModuleUnload.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipModuleLoad(hipModule_t * module, const char * fname)
- cuda.bindings.driver.cuModuleUnload(module)#
Frees the module
The module is freed, and the code objects associated with it are destroyed.
- Args:
- module (
ihipModule_t/object) – IN: Module to free
- module (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidResourceHandle
C signature
hipError_t hipModuleUnload(hipModule_t module)
- cuda.bindings.driver.cuModuleGetFunction(module, kname)#
Function with kname will be extracted if present in module
- Args:
- module (
ihipModule_t/object) – IN: Module to get function from
- kname (
CStr/object) – IN: Pointer to the name of function
- module (
- Returns:
A
tupleof size 2 that contains (in that order):ihipModuleSymbol_t:Pointer to function handle
C signature
hipError_t hipModuleGetFunction(hipFunction_t * function, hipModule_t module, const char * kname)
- cuda.bindings.driver.cuModuleGetFunctionCount(mod)#
Returns the number of functions within a module.
- Args:
- mod (
ihipModule_t/object) – IN: Module to get function count from
- mod (
- Returns:
A
tupleof size 2 that contains (in that order):int:function count from module
C signature
hipError_t hipModuleGetFunctionCount(unsigned int * count, hipModule_t mod)
- cuda.bindings.driver.cuLibraryLoadData(code, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#
Load hip Library from inmemory object
- Args:
- code (
Pointer/object) – IN: In memory object
- jitOptionsValues (
ListOfPointer/object) – IN: JIT options values, CUDA only
- numJitOptions (
int) – IN: Number of JIT options
- libraryOptionValues (
ListOfPointer/object) – IN: Library options values
- numLibraryOptions (
int) – IN: Number of library options
- code (
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,ihipLibrary_t:Output Library
hipJitOption:JIT options, CUDA only
hipLibraryOption_e:Library options
C signature
hipError_t hipLibraryLoadData(hipLibrary_t * library, const void * code, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
- cuda.bindings.driver.cudaLibraryLoadData(code, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#
Load hip Library from inmemory object
- Args:
- code (
Pointer/object) – IN: In memory object
- jitOptionsValues (
ListOfPointer/object) – IN: JIT options values, CUDA only
- numJitOptions (
int) – IN: Number of JIT options
- libraryOptionValues (
ListOfPointer/object) – IN: Library options values
- numLibraryOptions (
int) – IN: Number of library options
- code (
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,ihipLibrary_t:Output Library
hipJitOption:JIT options, CUDA only
hipLibraryOption_e:Library options
C signature
hipError_t hipLibraryLoadData(hipLibrary_t * library, const void * code, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
- cuda.bindings.driver.cuLibraryLoadFromFile(fileName, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#
Load hip Library from file
- Args:
- fileName (
CStr/object) – IN: file which contains code object
- jitOptionsValues (
ListOfPointer/object) – IN: JIT options values, CUDA only
- numJitOptions (
int) – IN: Number of JIT options
- libraryOptionValues (
ListOfPointer/object) – IN: Library options values
- numLibraryOptions (
int) – IN: Number of library options
- fileName (
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipLibrary_t:Output Library
hipJitOption:JIT options, CUDA only
hipLibraryOption_e:Library options
C signature
hipError_t hipLibraryLoadFromFile(hipLibrary_t * library, const char * fileName, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
- cuda.bindings.driver.cudaLibraryLoadFromFile(fileName, jitOptionsValues, numJitOptions, libraryOptionValues, numLibraryOptions)#
Load hip Library from file
- Args:
- fileName (
CStr/object) – IN: file which contains code object
- jitOptionsValues (
ListOfPointer/object) – IN: JIT options values, CUDA only
- numJitOptions (
int) – IN: Number of JIT options
- libraryOptionValues (
ListOfPointer/object) – IN: Library options values
- numLibraryOptions (
int) – IN: Number of library options
- fileName (
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipLibrary_t:Output Library
hipJitOption:JIT options, CUDA only
hipLibraryOption_e:Library options
C signature
hipError_t hipLibraryLoadFromFile(hipLibrary_t * library, const char * fileName, hipJitOption * jitOptions, void ** jitOptionsValues, unsigned int numJitOptions, hipLibraryOption * libraryOptions, void ** libraryOptionValues, unsigned int numLibraryOptions)
- cuda.bindings.driver.cuLibraryUnload(library)#
Unload HIP Library
- Args:
- library (
ihipLibrary_t/object) – IN: Input created hip library
- library (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipLibraryUnload(hipLibrary_t library)
- cuda.bindings.driver.cudaLibraryUnload(library)#
Unload HIP Library
- Args:
- library (
ihipLibrary_t/object) – IN: Input created hip library
- library (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipLibraryUnload(hipLibrary_t library)
- cuda.bindings.driver.cuLibraryGetKernel(library, name)#
Get Kernel object from library
- Args:
- library (
ihipLibrary_t/object) – IN: Input hip library
- name (
CStr/object) – IN: kernel name to be searched for
- library (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipKernel_t:Output kernel object
C signature
hipError_t hipLibraryGetKernel(hipKernel_t * pKernel, hipLibrary_t library, const char * name)
- cuda.bindings.driver.cudaLibraryGetKernel(library, name)#
Get Kernel object from library
- Args:
- library (
ihipLibrary_t/object) – IN: Input hip library
- name (
CStr/object) – IN: kernel name to be searched for
- library (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipKernel_t:Output kernel object
C signature
hipError_t hipLibraryGetKernel(hipKernel_t * pKernel, hipLibrary_t library, const char * name)
- cuda.bindings.driver.cuLibraryGetKernelCount(library)#
Get Kernel count in library
- Args:
- library (
ihipLibrary_t/object) – IN: Input created hip library
- library (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Count of kernels in library
C signature
hipError_t hipLibraryGetKernelCount(unsigned int * count, hipLibrary_t library)
- cuda.bindings.driver.cudaLibraryGetKernelCount(library)#
Get Kernel count in library
- Args:
- library (
ihipLibrary_t/object) – IN: Input created hip library
- library (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Count of kernels in library
C signature
hipError_t hipLibraryGetKernelCount(unsigned int * count, hipLibrary_t library)
- cuda.bindings.driver.cuLibraryEnumerateKernels(numKernels, library)#
Retrieve kernel handles within a library
- Args:
- numKernels (
int) – IN: Maximum number of kernel handles to return to buffer @oaram [in] library Library handle to query from
- library (
ihipLibrary_t/object): (undocumented)
- numKernels (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipKernel_t:Buffer for kernel handles
C signature
hipError_t hipLibraryEnumerateKernels(hipKernel_t * kernels, unsigned int numKernels, hipLibrary_t library)
- cuda.bindings.driver.cudaLibraryEnumerateKernels(numKernels, library)#
Retrieve kernel handles within a library
- Args:
- numKernels (
int) – IN: Maximum number of kernel handles to return to buffer @oaram [in] library Library handle to query from
- library (
ihipLibrary_t/object): (undocumented)
- numKernels (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipKernel_t:Buffer for kernel handles
C signature
hipError_t hipLibraryEnumerateKernels(hipKernel_t * kernels, unsigned int numKernels, hipLibrary_t library)
- cuda.bindings.driver.cuKernelGetLibrary(kernel)#
Returns a Library Handle
- Args:
- kernel (
ihipKernel_t/object) – IN: Kernel to retrieve library Handle
- kernel (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipLibrary_t:Returned Library handle
C signature
hipError_t hipKernelGetLibrary(hipLibrary_t * library, hipKernel_t kernel)
- cuda.bindings.driver.cuKernelGetName(kernel)#
Returns a Kernel Name
- Args:
- kernel (
ihipKernel_t/object) – IN: Kernel handle to retrieve name
- kernel (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipKernelGetName(const char ** name, hipKernel_t kernel)
- cuda.bindings.driver.cudaFuncGetAttributes(func)#
Find out attributes for a given function.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionhipFuncAttributes:Attributes of funtion
C signature
hipError_t hipFuncGetAttributes(struct hipFuncAttributes * attr, const void * func)
- cuda.bindings.driver.cuFuncGetAttribute(attrib, hfunc)#
Find out a specific attribute for a given function.
- Args:
- attrib (
hipFunction_attribute) – IN: Attributes of the given funtion
- hfunc (
ihipModuleSymbol_t/object) – IN: Function to get attributes from
- attrib (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionint:Pointer to the value
C signature
hipError_t hipFuncGetAttribute(int * value, hipFunction_attribute attrib, hipFunction_t hfunc)
- cuda.bindings.driver.cudaGetFuncBySymbol(symbolPtr)#
Gets pointer to device entry function that matches entry function symbolPtr.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceFunctionihipModuleSymbol_t:Device entry function
C signature
hipError_t hipGetFuncBySymbol(hipFunction_t * functionPtr, const void * symbolPtr)
- cuda.bindings.driver.cudaGetDriverEntryPoint(symbol, flags)#
Gets function pointer of a requested HIP API
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipDriverEntryPointQueryResult:Optional returned status of the search
C signature
hipError_t hipGetDriverEntryPoint(const char * symbol, void ** funcPtr, unsigned long long flags, hipDriverEntryPointQueryResult * driverStatus)
- cuda.bindings.driver.cuModuleGetTexRef(hmod, name)#
returns the handle of the texture reference with the name from the module.
- Args:
- hmod (
ihipModule_t/object) – IN: Module
- name (
CStr/object) – IN: Pointer of name of texture reference
- hmod (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorNotFound,hipErrorInvalidValuetextureReference:Pointer of texture reference
C signature
hipError_t hipModuleGetTexRef(textureReference ** texRef, hipModule_t hmod, const char * name)
- cuda.bindings.driver.cuModuleLoadData(image)#
builds module from code object data which resides in host memory.
The “image” is a pointer to the location of code object data. This data can be either a single code object or a fat binary (fatbin), which serves as the entry point for loading and launching device-specific kernel executions.
By default, the following command generates a fatbin:
“amdclang++ -O3 -c –offload-device-only –offload-arch=<GPU_ARCH> <input_file> -o <output_file>”
For more details, refer to: <a href= “https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/kernel_language_cpp_support.html:py:obj:
kernel-compilation”> Kernel Compilation</a> in the HIP kernel language C++ support, or <a href=”https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_rtc.html”>HIP runtime compilation (HIP RTC)</a>.- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitializedihipModule_t:Retuned module
C signature
hipError_t hipModuleLoadData(hipModule_t * module, const void * image)
- cuda.bindings.driver.cuModuleLoadDataEx(image, numOptions, optionValues)#
builds module from code object which resides in host memory. Image is pointer to that location. Options are not used. hipModuleLoadData is called.
- Args:
- image (
Pointer/object) – IN: The pointer to the location of data
- numOptions (
int) – IN: Number of options
- optionValues (
ListOfPointer/object) – IN: Option values for JIT
- image (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitializedihipModule_t:Retuned module
hipJitOption:Options for JIT
C signature
hipError_t hipModuleLoadDataEx(hipModule_t * module, const void * image, unsigned int numOptions, hipJitOption * options, void ** optionValues)
- cuda.bindings.driver.cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams, extra)#
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32. So gridDim.x * blockDim.x, gridDim.y * blockDim.y and gridDim.z * blockDim.z are always less than 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel to launch.
- gridDimX (
int) – IN: X grid dimension specified as multiple of blockDimX.
- gridDimY (
int) – IN: Y grid dimension specified as multiple of blockDimY.
- gridDimZ (
int) – IN: Z grid dimension specified as multiple of blockDimZ.
- blockDimX (
int) – IN: X block dimensions specified in work-items
- blockDimY (
int) – IN: Y grid dimension specified in work-items
- blockDimZ (
int) – IN: Z grid dimension specified in work-items
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case th default stream is used with associated synchronization rules.
- kernelParams (
ListOfPointer/object) – IN: Kernel parameters to launch
- extra (
HipModuleLaunchKernel_extra/object) – IN: Pointer to kernel arguments. These are passed directly to the kernel and must be in the memory layout and alignment expected by the kernel. All passed arguments must be naturally aligned according to their type. The memory address of each argument should be a multiple of its size in bytes. Please refer to hip_porting_driver_api.md for sample usage.
- f (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorInvalidValue
C signature
hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void ** kernelParams, void ** extra)
- cuda.bindings.driver.cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, stream, kernelParams)#
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelParams, where thread blocks can cooperate and synchronize as they execute
Please note, HIP does not support kernel launch with total work items defined in dimension with size \(gridDim \cdot blockDim \geq 2^{32}\).
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel to launch.
- gridDimX (
int) – IN: X grid dimension specified as multiple of blockDimX.
- gridDimY (
int) – IN: Y grid dimension specified as multiple of blockDimY.
- gridDimZ (
int) – IN: Z grid dimension specified as multiple of blockDimZ.
- blockDimX (
int) – IN: X block dimension specified in work-items.
- blockDimY (
int) – IN: Y block dimension specified in work-items.
- blockDimZ (
int) – IN: Z block dimension specified in work-items.
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.
- kernelParams (
ListOfPointer/object) – IN: A list of kernel arguments.
- f (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorDeinitialized,hipErrorNotInitialized,hipErrorInvalidContext,hipErrorInvalidHandle,hipErrorInvalidImage,hipErrorInvalidValue,hipErrorInvalidConfiguration,hipErrorLaunchFailure,hipErrorLaunchOutOfResources,hipErrorLaunchTimeOut,hipErrorCooperativeLaunchTooLarge,hipErrorSharedObjectInitFailed
C signature
hipError_t hipModuleLaunchCooperativeKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void ** kernelParams)
- cuda.bindings.driver.cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)#
Launches kernels on multiple devices where thread blocks can cooperate and synchronize as they execute.
- Args:
- launchParamsList (
hipFunctionLaunchParams_t/object) – IN: List of launch parameters, one per device.
- numDevices (
int) – IN: Size of the launchParamsList array.
- flags (
int) – IN: Flags to control launch behavior.
- launchParamsList (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorDeinitialized,hipErrorNotInitialized,hipErrorInvalidContext,hipErrorInvalidHandle,hipErrorInvalidImage,hipErrorInvalidValue,hipErrorInvalidConfiguration,hipErrorInvalidResourceHandle,hipErrorLaunchFailure,hipErrorLaunchOutOfResources,hipErrorLaunchTimeOut,hipErrorCooperativeLaunchTooLarge,hipErrorSharedObjectInitFailed
C signature
hipError_t hipModuleLaunchCooperativeKernelMultiDevice(hipFunctionLaunchParams * launchParamsList, unsigned int numDevices, unsigned int flags)
- cuda.bindings.driver.cudaLaunchCooperativeKernel(f, gridDim, blockDimX, kernelParams, sharedMemBytes, stream)#
Launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra, where thread blocks can cooperate and synchronize as they execute.
Please note, HIP does not support kernel launch with total work items defined in dimension with size \(gridDim \cdot blockDim \geq 2^{32}\).
- Args:
- f (
Pointer/object) – IN: Kernel to launch.
- gridDim (
dim3) – IN: Grid dimensions specified as multiple of blockDim.
- blockDimX (
dim3) – IN: Block dimensions specified in work-items
- kernelParams (
ListOfPointer/object) – IN: Pointer of arguments passed to the kernel. If the kernel has multiple
parameters, ‘kernelParams’ should be array of pointers, each points the corresponding argument.
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The
HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case th
default stream is used with associated synchronization rules.
- f (
- Returns:
C signature
hipError_t hipLaunchCooperativeKernel(const void * f, dim3 gridDim, dim3 blockDimX, void ** kernelParams, unsigned int sharedMemBytes, hipStream_t stream)
- cuda.bindings.driver.cudaLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags)#
Launches kernels on multiple devices where thread blocks can cooperate and synchronize as they execute.
- Args:
- launchParamsList (
hipLaunchParams_t/object) – IN: List of launch parameters, one per device.
- numDevices (
int) – IN: Size of the launchParamsList array.
- flags (
int) – IN: Flags to control launch behavior.
- launchParamsList (
- Returns:
C signature
hipError_t hipLaunchCooperativeKernelMultiDevice(hipLaunchParams * launchParamsList, int numDevices, unsigned int flags)
- cuda.bindings.driver.cudaLaunchKernelExC(config, fPtr, args)#
Launches a HIP kernel using a generic function pointer and the specified configuration.
This function is equivalent to hipLaunchKernelEx but accepts the kernel as a generic function pointer.
- Args:
- config (
hipLaunchConfig_st/object) – IN: Pointer to the kernel launch configuration structure.
- fPtr (
Pointer/object) – IN: Pointer to the device kernel function.
- args (
ListOfPointer/object) – IN: Array of pointers to the kernel arguments.
- config (
- Returns:
hipError_t: py:obj:hipSuccessif the kernel is launched successfully, otherwise an appropriate error code.
C signature
hipError_t hipLaunchKernelExC(const hipLaunchConfig_t * config, const void * fPtr, void ** args)
- cuda.bindings.driver.cuLaunchKernelEx(config, f, params, extra)#
Launches a HIP kernel using the driver API with the specified configuration.
This function dispatches the device kernel represented by a HIP function object. It passes both the kernel parameters and any extra configuration arguments to the kernel launch.
- Args:
- config (
HIP_LAUNCH_CONFIG_st/object) – IN: Pointer to the kernel launch configuration structure.
- f (
ihipModuleSymbol_t/object) – IN: HIP function object representing the device kernel to be launched.
- params (
ListOfPointer/object) – IN: Array of pointers to the kernel parameters.
- extra (
ListOfPointer/object) – IN: Array of pointers for additional launch parameters or extra configuration data.
- config (
- Returns:
hipError_t: py:obj:hipSuccessif the kernel is launched successfully, otherwise an appropriate error code.
C signature
hipError_t hipDrvLaunchKernelEx(const HIP_LAUNCH_CONFIG * config, hipFunction_t f, void ** params, void ** extra)
- cuda.bindings.driver.cuMemGetHandleForAddressRange(handle, dptr, size, handleType, flags)#
Returns a handle for the address range requested.
This function returns a handle to a device pointer created using either hipMalloc set of APIs or through hipMemAddressReserve (as long as the ptr is mapped).
- Args:
- handle (
Pointer/object) – OUT: Ptr to the handle where the fd or other types will be returned.
- dptr (
Pointer/object) – IN: Device ptr for which we get the handle.
- size (
int) – IN: Size of the address range.
- handleType (
hipMemRangeHandleType) – IN: Type of the handle requested for the address range.
- flags (
int) – IN: Any flags set regarding the handle requested.
- handle (
- Returns:
hipError_t: py:obj:hipSuccessif the kernel is launched successfully, otherwise an appropriate error code.
C signature
hipError_t hipMemGetHandleForAddressRange(void * handle, hipDeviceptr_t dptr, size_t size, hipMemRangeHandleType handleType, unsigned long long flags)
- cuda.bindings.driver.cuOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)#
determine the grid and block sizes to achieves maximum occupancy for a kernel
This section describes the occupancy functions of HIP runtime API.
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: kernel function for which occupancy is calculated
- dynSharedMemPerBlk (
int) – IN: dynamic shared memory usage (in bytes) intended for each block
- blockSizeLimit (
int) – IN: the maximum block size for the kernel, use 0 for no limit
- f (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:minimum grid size for maximum potential occupancy
int:block size for maximum potential occupancy
C signature
hipError_t hipModuleOccupancyMaxPotentialBlockSize(int * gridSize, int * blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit)
- cuda.bindings.driver.cuOccupancyMaxPotentialBlockSizeWithFlags(f, dynSharedMemPerBlk, blockSizeLimit, flags)#
determine the grid and block sizes to achieves maximum occupancy for a kernel
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: kernel function for which occupancy is calculated
- dynSharedMemPerBlk (
int) – IN: dynamic shared memory usage (in bytes) intended for each block
- blockSizeLimit (
int) – IN: the maximum block size for the kernel, use 0 for no limit
- flags (
int) – IN: Extra flags for occupancy calculation (only default supported)
- f (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:minimum grid size for maximum potential occupancy
int:block size for maximum potential occupancy
C signature
hipError_t hipModuleOccupancyMaxPotentialBlockSizeWithFlags(int * gridSize, int * blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit, unsigned int flags)
- cuda.bindings.driver.cuOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)#
Returns occupancy for a device function.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel function (hipFunction) for which occupancy is calculated
- blockSize (
int) – IN: Block size the kernel is intended to be launched with
- dynSharedMemPerBlk (
int) – IN: Dynamic shared memory usage (in bytes) intended for each block
- f (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Returned occupancy
C signature
hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(int * numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk)
- cuda.bindings.driver.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)#
Returns occupancy for a device function.
- Args:
- f (
ihipModuleSymbol_t/object) – IN: Kernel function(hipFunction_t) for which occupancy is calculated
- blockSize (
int) – IN: Block size the kernel is intended to be launched with
- dynSharedMemPerBlk (
int) – IN: Dynamic shared memory usage (in bytes) intended for each block
- flags (
int) – IN: Extra flags for occupancy calculation (only default supported)
- f (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Returned occupancy
C signature
hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int * numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
- cuda.bindings.driver.cudaOccupancyMaxActiveBlocksPerMultiprocessor(f, blockSize, dynSharedMemPerBlk)#
Returns occupancy for a device function.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceFunction,hipErrorInvalidValueint:Returned occupancy
C signature
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessor(int * numBlocks, const void * f, int blockSize, size_t dynSharedMemPerBlk)
- cuda.bindings.driver.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(f, blockSize, dynSharedMemPerBlk, flags)#
Returns occupancy for a device function.
- Args:
- f (
Pointer/object) – IN: Kernel function for which occupancy is calculated
- blockSize (
int) – IN: Block size the kernel is intended to be launched with
- dynSharedMemPerBlk (
int) – IN: Dynamic shared memory usage (in bytes) intended for each block
- flags (
int) – IN: Extra flags for occupancy calculation (currently ignored)
- f (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidDeviceFunction,hipErrorInvalidValueint:Returned occupancy
C signature
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int * numBlocks, const void * f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
- cuda.bindings.driver.cudaOccupancyMaxPotentialBlockSize(f, dynSharedMemPerBlk, blockSizeLimit)#
determine the grid and block sizes to achieves maximum occupancy for a kernel
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:minimum grid size for maximum potential occupancy
int:block size for maximum potential occupancy
C signature
hipError_t hipOccupancyMaxPotentialBlockSize(int * gridSize, int * blockSize, const void * f, size_t dynSharedMemPerBlk, int blockSizeLimit)
- cuda.bindings.driver.cuOccupancyAvailableDynamicSMemPerBlock(f, numBlocks, blockSize)#
Returns dynamic shared memory available per block when launching numBlocks blocks on SM.
Returns in
*dynamicSmemSizethe maximum size of dynamic shared memory / to allow numBlocks blocks per SM.- Args:
- Returns:
A
tupleof size 2 that contains (in that order):int:Returned maximum dynamic shared memory.
C signature
hipError_t hipOccupancyAvailableDynamicSMemPerBlock(size_t * dynamicSmemSize, const void * f, int numBlocks, int blockSize)
- cuda.bindings.driver.cudaOccupancyAvailableDynamicSMemPerBlock(f, numBlocks, blockSize)#
Returns dynamic shared memory available per block when launching numBlocks blocks on SM.
Returns in
*dynamicSmemSizethe maximum size of dynamic shared memory / to allow numBlocks blocks per SM.- Args:
- Returns:
A
tupleof size 2 that contains (in that order):int:Returned maximum dynamic shared memory.
C signature
hipError_t hipOccupancyAvailableDynamicSMemPerBlock(size_t * dynamicSmemSize, const void * f, int numBlocks, int blockSize)
- cuda.bindings.driver.cuProfilerStart()#
Start recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
hipError_t: py:obj:hipErrorNotSupported
C signature
hipError_t hipProfilerStart()
- cuda.bindings.driver.cudaProfilerStart()#
Start recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
hipError_t: py:obj:hipErrorNotSupported
C signature
hipError_t hipProfilerStart()
- cuda.bindings.driver.cuProfilerStop()#
Stop recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
hipError_t: py:obj:hipErrorNotSupported
C signature
hipError_t hipProfilerStop()
- cuda.bindings.driver.cudaProfilerStop()#
Stop recording of profiling information [Deprecated] When using this API, start the profiler with profiling disabled. (–startdisabled)
- Warning:
hipProfilerStart API is deprecated, use roctracer/rocTX instead.
- Returns:
hipError_t: py:obj:hipErrorNotSupported
C signature
hipError_t hipProfilerStop()
- cuda.bindings.driver.cudaConfigureCall(gridDim, blockDim, sharedMem, stream)#
Configure a kernel launch.
This section describes the API to support the triple-chevron syntax.
Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.
- Args:
- gridDim (
dim3) – IN: grid dimension specified as multiple of blockDim.
- blockDim (
dim3) – IN: block dimensions specified in work-items
- sharedMem (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.
- gridDim (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorInvalidValue
C signature
hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem, hipStream_t stream)
- cuda.bindings.driver.cudaSetupArgument(arg, size, offset)#
Set a kernel argument.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorInvalidValue
C signature
hipError_t hipSetupArgument(const void * arg, size_t size, size_t offset)
- cuda.bindings.driver.cudaLaunch(func)#
Launch a kernel.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorNotInitialized,hipErrorInvalidValue
C signature
hipError_t hipLaunchByPtr(const void * func)
- cuda.bindings.driver.cudaLaunchKernel(function_address, numBlocks, dimBlocks, args, sharedMemBytes, stream)#
C compliant kernel launch API
- Args:
- function_address (
Pointer/object) – IN: Kernel stub function pointer.
- numBlocks (
dim3) – IN: Number of blocks.
- dimBlocks (
dim3) – IN: Dimension of a block
- args (
ListOfPointer/object) – IN: Pointer of arguments passed to the kernel. If the kernel has multiple
parameters, ‘args’ should be array of pointers, each points the corresponding argument.
- sharedMemBytes (
int) – IN: Amount of dynamic shared memory to allocate for this kernel. The
HIP-Clang compiler provides support for extern shared declarations.
- stream (
ihipStream_t/object) – IN: Stream where the kernel should be dispatched. May be 0, in which case th
default stream is used with associated synchronization rules.
- function_address (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipLaunchKernel(const void * function_address, dim3 numBlocks, dim3 dimBlocks, void ** args, size_t sharedMemBytes, hipStream_t stream)
- cuda.bindings.driver.cuLaunchHostFunc(stream, fn, userData)#
Enqueues a host function call in a stream.
The host function to call in this API will be executed after the preceding operations in the stream are complete. The function is a blocking operation that blocks operations in the stream that follow it, until the function is returned. Event synchronization and internal callback functions make sure enqueued operations will execute in order, in the stream.
The host function must not make any HIP API calls. The host function is non-reentrant. It must not perform sychronization with any operation that may depend on other processing execution but is not enqueued to run earlier in the stream.
Host functions that are enqueued respectively in different non-blocking streams can run concurrently.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: The stream to enqueue work in.
- fn (
hipHostFn_t/object) – IN: The function to call once enqueued preceeding operations are complete.
- userData (
Pointer/object) – IN: User-specified data to be passed to the function.
- stream (
- Returns:
C signature
hipError_t hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void * userData)
- cuda.bindings.driver.cudaLaunchHostFunc(stream, fn, userData)#
Enqueues a host function call in a stream.
The host function to call in this API will be executed after the preceding operations in the stream are complete. The function is a blocking operation that blocks operations in the stream that follow it, until the function is returned. Event synchronization and internal callback functions make sure enqueued operations will execute in order, in the stream.
The host function must not make any HIP API calls. The host function is non-reentrant. It must not perform sychronization with any operation that may depend on other processing execution but is not enqueued to run earlier in the stream.
Host functions that are enqueued respectively in different non-blocking streams can run concurrently.
- Warning:
This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: The stream to enqueue work in.
- fn (
hipHostFn_t/object) – IN: The function to call once enqueued preceeding operations are complete.
- userData (
Pointer/object) – IN: User-specified data to be passed to the function.
- stream (
- Returns:
C signature
hipError_t hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void * userData)
- cuda.bindings.driver.cuMemcpy2DUnaligned(pCopy)#
Copies memory for 2D arrays.
- Args:
- pCopy (
hip_Memcpy2D/object): Parameters for the memory copy
- pCopy (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D * pCopy)
- cuda.bindings.driver.cuMemcpy2DUnaligned_v2(pCopy)#
Copies memory for 2D arrays.
- Args:
- pCopy (
hip_Memcpy2D/object): Parameters for the memory copy
- pCopy (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D * pCopy)
- cuda.bindings.driver.cudaCreateTextureObject(pResDesc, pTexDesc, pResViewDesc)#
Creates a texture object.
- Note:
3D linear filter isn’t supported on GFX90A boards, on which the API
hipCreateTextureObjectwill return hipErrorNotSupported.- Args:
- pResDesc (
hipResourceDesc/object) – IN: pointer to resource descriptor
- pTexDesc (
hipTextureDesc/object) – IN: pointer to texture descriptor
- pResViewDesc (
hipResourceViewDesc/object) – IN: pointer to resource view descriptor
- pResDesc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported,hipErrorOutOfMemory__hip_texture:pointer to the texture object to create
C signature
hipError_t hipCreateTextureObject(hipTextureObject_t * pTexObject, const hipResourceDesc * pResDesc, const hipTextureDesc * pTexDesc, const struct hipResourceViewDesc * pResViewDesc)
- cuda.bindings.driver.cudaDestroyTextureObject(textureObject)#
Destroys a texture object.
- Args:
- textureObject (
__hip_texture/object) – IN: texture object to destroy
- textureObject (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDestroyTextureObject(hipTextureObject_t textureObject)
- cuda.bindings.driver.cudaGetChannelDesc(desc)#
Gets the channel descriptor in an array.
- Args:
- desc (
hipChannelFormatDesc/object) – IN: pointer to channel format descriptor
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipArray:memory array on the device
C signature
hipError_t hipGetChannelDesc(hipChannelFormatDesc * desc, hipArray_const_t array)
- cuda.bindings.driver.cudaGetTextureObjectResourceDesc(textureObject)#
Gets resource descriptor for the texture object.
- Args:
- textureObject (
__hip_texture/object) – IN: texture object
- textureObject (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipResourceDesc:pointer to resource descriptor
C signature
hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc * pResDesc, hipTextureObject_t textureObject)
- cuda.bindings.driver.cudaGetTextureObjectResourceViewDesc(textureObject)#
Gets resource view descriptor for the texture object.
- Args:
- textureObject (
__hip_texture/object) – IN: texture object
- textureObject (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipResourceViewDesc:pointer to resource view descriptor
C signature
hipError_t hipGetTextureObjectResourceViewDesc(struct hipResourceViewDesc * pResViewDesc, hipTextureObject_t textureObject)
- cuda.bindings.driver.cudaGetTextureObjectTextureDesc(textureObject)#
Gets texture descriptor for the texture object.
- Args:
- textureObject (
__hip_texture/object) – IN: texture object
- textureObject (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipTextureDesc:pointer to texture descriptor
C signature
hipError_t hipGetTextureObjectTextureDesc(hipTextureDesc * pTexDesc, hipTextureObject_t textureObject)
- cuda.bindings.driver.cuTexObjectCreate(pResDesc, pTexDesc, pResViewDesc)#
Creates a texture object.
- Args:
- pResDesc (
HIP_RESOURCE_DESC_st/object) – IN: pointer to resource descriptor
- pTexDesc (
HIP_TEXTURE_DESC_st/object) – IN: pointer to texture descriptor
- pResViewDesc (
HIP_RESOURCE_VIEW_DESC_st/object) – IN: pointer to resource view descriptor
- pResDesc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue__hip_texture:pointer to texture object to create
C signature
hipError_t hipTexObjectCreate(hipTextureObject_t * pTexObject, const HIP_RESOURCE_DESC * pResDesc, const HIP_TEXTURE_DESC * pTexDesc, const HIP_RESOURCE_VIEW_DESC * pResViewDesc)
- cuda.bindings.driver.cuTexObjectDestroy(texObject)#
Destroys a texture object.
- Args:
- texObject (
__hip_texture/object) – IN: texture object to destroy
- texObject (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexObjectDestroy(hipTextureObject_t texObject)
- cuda.bindings.driver.cuTexObjectGetResourceDesc(texObject)#
Gets resource descriptor of a texture object.
- Args:
- texObject (
__hip_texture/object) – IN: texture object
- texObject (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotSupported,hipErrorInvalidValueHIP_RESOURCE_DESC_st:pointer to resource descriptor
C signature
hipError_t hipTexObjectGetResourceDesc(HIP_RESOURCE_DESC * pResDesc, hipTextureObject_t texObject)
- cuda.bindings.driver.cuTexObjectGetResourceViewDesc(texObject)#
Gets resource view descriptor of a texture object.
- Args:
- texObject (
__hip_texture/object) – IN: texture object
- texObject (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotSupported,hipErrorInvalidValueHIP_RESOURCE_VIEW_DESC_st:pointer to resource view descriptor
C signature
hipError_t hipTexObjectGetResourceViewDesc(HIP_RESOURCE_VIEW_DESC * pResViewDesc, hipTextureObject_t texObject)
- cuda.bindings.driver.cuTexObjectGetTextureDesc(texObject)#
Gets texture descriptor of a texture object.
- Args:
- texObject (
__hip_texture/object) – IN: texture object
- texObject (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotSupported,hipErrorInvalidValueHIP_TEXTURE_DESC_st:pointer to texture descriptor
C signature
hipError_t hipTexObjectGetTextureDesc(HIP_TEXTURE_DESC * pTexDesc, hipTextureObject_t texObject)
- cuda.bindings.driver.cudaMallocMipmappedArray(desc, extent, numLevels, flags)#
Allocate a mipmapped array on the device.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- desc (
hipChannelFormatDesc/object) – IN: Requested channel format
- extent (
hipExtent) – IN: Requested allocation size (width field in elements)
- numLevels (
int) – IN: Number of mipmap levels to allocate
- flags (
int) – IN: Flags for extensions
- desc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationhipMipmappedArray:Pointer to allocated mipmapped array in device memory
C signature
hipError_t hipMallocMipmappedArray(hipMipmappedArray_t * mipmappedArray, const struct hipChannelFormatDesc * desc, struct hipExtent extent, unsigned int numLevels, unsigned int flags)
- cuda.bindings.driver.cudaFreeMipmappedArray(mipmappedArray)#
Frees a mipmapped array on the device.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mipmappedArray (
hipMipmappedArray/object) – IN: Pointer to mipmapped array to free
- mipmappedArray (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray)
- cuda.bindings.driver.cudaGetMipmappedArrayLevel(mipmappedArray, level)#
Gets a mipmap level of a HIP mipmapped array.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- mipmappedArray (
hipMipmappedArray/object) – IN: HIP mipmapped array
- level (
int) – IN: Mipmap level
- mipmappedArray (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipArray:Returned mipmap level HIP array
C signature
hipError_t hipGetMipmappedArrayLevel(hipArray_t * levelArray, hipMipmappedArray_const_t mipmappedArray, unsigned int level)
- cuda.bindings.driver.cuMipmappedArrayCreate(pMipmappedArrayDesc, numMipmapLevels)#
Create a mipmapped array.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- pMipmappedArrayDesc (
HIP_ARRAY3D_DESCRIPTOR/object) – IN: mipmapped array descriptor
- numMipmapLevels (
int) – IN: mipmap level
- pMipmappedArrayDesc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorNotSupported,hipErrorInvalidValuehipMipmappedArray:pointer to mipmapped array
C signature
hipError_t hipMipmappedArrayCreate(hipMipmappedArray_t * pHandle, HIP_ARRAY3D_DESCRIPTOR * pMipmappedArrayDesc, unsigned int numMipmapLevels)
- cuda.bindings.driver.cuMipmappedArrayDestroy()#
Destroy a mipmapped array.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMipmappedArray:pointer to mipmapped array to destroy
C signature
hipError_t hipMipmappedArrayDestroy(hipMipmappedArray_t hMipmappedArray)
- cuda.bindings.driver.cuMipmappedArrayGetLevel(pLevelArray, level)#
Get a mipmapped array on a mipmapped level.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMipmappedArray:Pointer of mipmapped array on the requested mipmap level
C signature
hipError_t hipMipmappedArrayGetLevel(hipArray_t * pLevelArray, hipMipmappedArray_t hMipMappedArray, unsigned int level)
- cuda.bindings.driver.cudaBindTextureToMipmappedArray(tex, mipmappedArray, desc)#
Binds a mipmapped array to a texture [Deprecated]
- Args:
- tex (
textureReference/object) – IN: pointer to the texture reference to bind
- mipmappedArray (
hipMipmappedArray/object) – IN: memory mipmapped array on the device
- desc (
hipChannelFormatDesc/object) – IN: opointer to the channel format
- tex (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipBindTextureToMipmappedArray(const textureReference * tex, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc * desc)
- cuda.bindings.driver.cudaGetTextureReference(symbol)#
Gets the texture reference related with the symbol [Deprecated]
- Warning:
This API is deprecated.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuetextureReference:texture reference
C signature
hipError_t hipGetTextureReference(const textureReference ** texref, const void * symbol)
- cuda.bindings.driver.cuTexRefGetBorderColor(texRef)#
Gets the border color used by a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuefloat:Returned Type and Value of RGBA color.
C signature
hipError_t hipTexRefGetBorderColor(float * pBorderColor, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetArray(pArray, texRef)#
Gets the array bound to a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- pArray (
Pointer/object) – IN: Returned array.
- texRef (
textureReference/object) – IN: texture reference.
- pArray (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefGetArray(hipArray_t * pArray, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefSetAddressMode(texRef, dim, am)#
Sets address mode for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: texture reference.
- dim (
int) – IN: Dimension of the texture.
- am (
hipTextureAddressMode) – IN: Value of the texture address mode.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefSetAddressMode(textureReference * texRef, int dim, enum hipTextureAddressMode am)
- cuda.bindings.driver.cuTexRefSetArray(tex, array, flags)#
Binds an array as a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Pointer texture reference.
- array (
hipArray/object) – IN: Array to bind.
- flags (
int) – IN: Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.
- tex (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefSetArray(textureReference * tex, hipArray_const_t array, unsigned int flags)
- cuda.bindings.driver.cuTexRefSetFilterMode(texRef, fm)#
Set filter mode for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer texture reference.
- fm (
hipTextureFilterMode) – IN: Value of texture filter mode.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefSetFilterMode(textureReference * texRef, enum hipTextureFilterMode fm)
- cuda.bindings.driver.cuTexRefSetFlags(texRef, Flags)#
Set flags for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer texture reference.
- Flags (
int) – IN: Value of flags.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefSetFlags(textureReference * texRef, unsigned int Flags)
- cuda.bindings.driver.cuTexRefSetFormat(texRef, fmt, NumPackedComponents)#
Set format for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer texture reference.
- fmt (
hipArray_Format) – IN: Value of format.
- NumPackedComponents (
int) – IN: Number of components per array.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefSetFormat(textureReference * texRef, hipArray_Format fmt, int NumPackedComponents)
- cuda.bindings.driver.cudaBindTexture(tex, devPtr, desc, size)#
Binds a memory area to a texture [Deprecated]
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Texture to bind.
- devPtr (
Pointer/object) – IN: Pointer of memory on the device.
- desc (
hipChannelFormatDesc/object) – IN: Pointer of channel format descriptor.
- size (
int) – IN: Size of memory in bites.
- tex (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Offset in bytes.
C signature
hipError_t hipBindTexture(size_t * offset, const textureReference * tex, const void * devPtr, const hipChannelFormatDesc * desc, size_t size)
- cuda.bindings.driver.cudaBindTexture2D(tex, devPtr, desc, width, height, pitch)#
Binds a 2D memory area to a texture [Deprecated]
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Texture to bind.
- devPtr (
Pointer/object) – IN: Pointer of 2D memory area on the device.
- desc (
hipChannelFormatDesc/object) – IN: Pointer of channel format descriptor.
- width (
int) – IN: Width in texel units.
- height (
int) – IN: Height in texel units.
- pitch (
int) – IN: Pitch in bytes.
- tex (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Offset in bytes.
C signature
hipError_t hipBindTexture2D(size_t * offset, const textureReference * tex, const void * devPtr, const hipChannelFormatDesc * desc, size_t width, size_t height, size_t pitch)
- cuda.bindings.driver.cudaBindTextureToArray(tex, array, desc)#
Binds a memory area to a texture [Deprecated]
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Pointer of texture reference.
- array (
hipArray/object) – IN: Array to bind.
- desc (
hipChannelFormatDesc/object) – IN: Pointer of channel format descriptor.
- tex (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipBindTextureToArray(const textureReference * tex, hipArray_const_t array, const hipChannelFormatDesc * desc)
- cuda.bindings.driver.cudaGetTextureAlignmentOffset(texref)#
Get the offset of the alignment in a texture [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texref (
textureReference/object) – IN: Pointer of texture reference.
- texref (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Offset in bytes.
C signature
hipError_t hipGetTextureAlignmentOffset(size_t * offset, const textureReference * texref)
- cuda.bindings.driver.cudaUnbindTexture(tex)#
Unbinds a texture [Deprecated]
- Warning:
This API is deprecated.
- Args:
- tex (
textureReference/object) – IN: Texture to unbind.
- tex (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipUnbindTexture(const textureReference * tex)
- cuda.bindings.driver.cuTexRefGetAddress(texRef)#
Gets the address for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipTexRefGetAddress(hipDeviceptr_t * dev_ptr, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetAddress_v2(texRef)#
Gets the address for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipTexRefGetAddress(hipDeviceptr_t * dev_ptr, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetAddressMode(texRef, dim)#
Gets the address mode for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- dim (
int) – IN: Dimension.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipTextureAddressMode:Pointer of address mode.
C signature
hipError_t hipTexRefGetAddressMode(enum hipTextureAddressMode * pam, const textureReference * texRef, int dim)
- cuda.bindings.driver.cuTexRefGetFilterMode(texRef)#
Gets filter mode for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipTextureFilterMode:Pointer of filter mode.
C signature
hipError_t hipTexRefGetFilterMode(enum hipTextureFilterMode * pfm, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetFlags(texRef)#
Gets flags for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:Pointer of flags.
C signature
hipError_t hipTexRefGetFlags(unsigned int * pFlags, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetFormat(texRef)#
Gets texture format for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipArray_Format:Pointer of the format.
int:Pointer of number of channels.
C signature
hipError_t hipTexRefGetFormat(hipArray_Format * pFormat, int * pNumChannels, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetMaxAnisotropy(texRef)#
Gets the maximum anisotropy for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipErrorInvalidValue,hipErrorNotSupportedint:Pointer of the maximum anisotropy.
C signature
hipError_t hipTexRefGetMaxAnisotropy(int * pmaxAnsio, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetMipmapFilterMode(texRef)#
Gets the mipmap filter mode for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipErrorInvalidValue,hipErrorNotSupportedhipTextureFilterMode:Pointer of the mipmap filter mode.
C signature
hipError_t hipTexRefGetMipmapFilterMode(enum hipTextureFilterMode * pfm, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetMipmapLevelBias(texRef)#
Gets the mipmap level bias for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipErrorInvalidValue,hipErrorNotSupportedfloat:Pointer of the mipmap level bias.
C signature
hipError_t hipTexRefGetMipmapLevelBias(float * pbias, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetMipmapLevelClamp(texRef)#
Gets the minimum and maximum mipmap level clamps for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipErrorInvalidValue,hipErrorNotSupportedfloat:Pointer of the minimum mipmap level clamp.
float:Pointer of the maximum mipmap level clamp.
C signature
hipError_t hipTexRefGetMipmapLevelClamp(float * pminMipmapLevelClamp, float * pmaxMipmapLevelClamp, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefGetMipmappedArray(texRef)#
Gets the mipmapped array bound to a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipMipmappedArray:Pointer of the mipmapped array.
C signature
hipError_t hipTexRefGetMipMappedArray(hipMipmappedArray_t * pArray, const textureReference * texRef)
- cuda.bindings.driver.cuTexRefSetAddress(texRef, dptr, bytes)#
Sets an bound address for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- bytes (
int) – IN: Size in bytes.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Pointer of the offset in bytes.
C signature
hipError_t hipTexRefSetAddress(size_t * ByteOffset, textureReference * texRef, hipDeviceptr_t dptr, size_t bytes)
- cuda.bindings.driver.cuTexRefSetAddress_v2(texRef, dptr, bytes)#
Sets an bound address for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- bytes (
int) – IN: Size in bytes.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Pointer of the offset in bytes.
C signature
hipError_t hipTexRefSetAddress(size_t * ByteOffset, textureReference * texRef, hipDeviceptr_t dptr, size_t bytes)
- cuda.bindings.driver.cuTexRefSetAddress2D(texRef, desc, dptr, Pitch)#
Set a bind an address as a 2D texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- desc (
HIP_ARRAY_DESCRIPTOR/object) – IN: Pointer of array descriptor.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- Pitch (
int) – IN: Pitch in bytes.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetAddress2D(textureReference * texRef, const HIP_ARRAY_DESCRIPTOR * desc, hipDeviceptr_t dptr, size_t Pitch)
- cuda.bindings.driver.cuTexRefSetAddress2D_v2(texRef, desc, dptr, Pitch)#
Set a bind an address as a 2D texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- desc (
HIP_ARRAY_DESCRIPTOR/object) – IN: Pointer of array descriptor.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- Pitch (
int) – IN: Pitch in bytes.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetAddress2D(textureReference * texRef, const HIP_ARRAY_DESCRIPTOR * desc, hipDeviceptr_t dptr, size_t Pitch)
- cuda.bindings.driver.cuTexRefSetAddress2D_v3(texRef, desc, dptr, Pitch)#
Set a bind an address as a 2D texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- desc (
HIP_ARRAY_DESCRIPTOR/object) – IN: Pointer of array descriptor.
- dptr (
Pointer/object) – IN: Pointer of device address to bind.
- Pitch (
int) – IN: Pitch in bytes.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetAddress2D(textureReference * texRef, const HIP_ARRAY_DESCRIPTOR * desc, hipDeviceptr_t dptr, size_t Pitch)
- cuda.bindings.driver.cuTexRefSetMaxAnisotropy(texRef, maxAniso)#
Sets the maximum anisotropy for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- maxAniso (
int) – OUT: Value of the maximum anisotropy.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetMaxAnisotropy(textureReference * texRef, unsigned int maxAniso)
- cuda.bindings.driver.cuTexRefSetBorderColor(texRef)#
Sets border color for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- texRef (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedfloat:Pointer of border color.
C signature
hipError_t hipTexRefSetBorderColor(textureReference * texRef, float * pBorderColor)
- cuda.bindings.driver.cuTexRefSetMipmapFilterMode(texRef, fm)#
Sets mipmap filter mode for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- fm (
hipTextureFilterMode) – IN: Value of filter mode.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetMipmapFilterMode(textureReference * texRef, enum hipTextureFilterMode fm)
- cuda.bindings.driver.cuTexRefSetMipmapLevelBias(texRef, bias)#
Sets mipmap level bias for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference.
- bias (
float/int) – IN: Value of mipmap bias.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetMipmapLevelBias(textureReference * texRef, float bias)
- cuda.bindings.driver.cuTexRefSetMipmapLevelClamp(texRef, minMipMapLevelClamp, maxMipMapLevelClamp)#
Sets mipmap level clamp for a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipTexRefSetMipmapLevelClamp(textureReference * texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp)
- cuda.bindings.driver.cuTexRefSetMipmappedArray(texRef, mipmappedArray, Flags)#
Binds mipmapped array to a texture reference [Deprecated]
- Warning:
This API is deprecated.
- Args:
- texRef (
textureReference/object) – IN: Pointer of texture reference to bind.
- mipmappedArray (
hipMipmappedArray/object) – IN: Pointer of mipmapped array to bind.
- Flags (
int) – IN: Flags should be set as HIP_TRSA_OVERRIDE_FORMAT, as a valid value.
- texRef (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipTexRefSetMipmappedArray(textureReference * texRef, struct hipMipmappedArray * mipmappedArray, unsigned int Flags)
- cuda.bindings.driver.cuStreamBeginCapture(stream, mode)#
Begins graph capture on a stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
- cuda.bindings.driver.cuStreamBeginCapture_v2(stream, mode)#
Begins graph capture on a stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
- cuda.bindings.driver.cudaStreamBeginCapture(stream, mode)#
Begins graph capture on a stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
- cuda.bindings.driver.cuStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode)#
Begins graph capture on a stream to an existing graph.
- Warning:
param “const hipGraphEdgeData* dependencyData” is currently not supported and has to be passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- graph (
ihipGraph/object) – IN: Graph to capture into.
- dependencies (
Pointer/object) – IN: Dependencies of the first node captured in the stream. Can be NULL if
numDependencies is 0.
- dependencyData (
hipGraphEdgeData/object) – IN: Optional array of data associated with each dependency.
- numDependencies (
int) – IN: Number of dependencies.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBeginCaptureToGraph(hipStream_t stream, hipGraph_t graph, const hipGraphNode_t * dependencies, const hipGraphEdgeData * dependencyData, size_t numDependencies, hipStreamCaptureMode mode)
- cuda.bindings.driver.cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode)#
Begins graph capture on a stream to an existing graph.
- Warning:
param “const hipGraphEdgeData* dependencyData” is currently not supported and has to be passed as nullptr. This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to initiate capture.
- graph (
ihipGraph/object) – IN: Graph to capture into.
- dependencies (
Pointer/object) – IN: Dependencies of the first node captured in the stream. Can be NULL if
numDependencies is 0.
- dependencyData (
hipGraphEdgeData/object) – IN: Optional array of data associated with each dependency.
- numDependencies (
int) – IN: Number of dependencies.
- mode (
hipStreamCaptureMode) – IN: Controls the interaction of this capture sequence with other API calls that
are not safe.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipStreamBeginCaptureToGraph(hipStream_t stream, hipGraph_t graph, const hipGraphNode_t * dependencies, const hipGraphEdgeData * dependencyData, size_t numDependencies, hipStreamCaptureMode mode)
- cuda.bindings.driver.cuStreamEndCapture(stream)#
Ends capture on a stream, returning the captured graph.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to end capture.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipGraph:Captured graph.
C signature
hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t * pGraph)
- cuda.bindings.driver.cudaStreamEndCapture(stream)#
Ends capture on a stream, returning the captured graph.
- Args:
- stream (
ihipStream_t/object) – IN: Stream to end capture.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipGraph:Captured graph.
C signature
hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t * pGraph)
- cuda.bindings.driver.cuStreamGetCaptureInfo(stream)#
Get capture status of a stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream of which to get capture status from.
- stream (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorStreamCaptureImplicithipStreamCaptureStatus:Returns current capture status.
int:Unique capture ID.
C signature
hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus, unsigned long long * pId)
- cuda.bindings.driver.cudaStreamGetCaptureInfo(stream)#
Get capture status of a stream.
- Args:
- stream (
ihipStream_t/object) – IN: Stream of which to get capture status from.
- stream (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorStreamCaptureImplicithipStreamCaptureStatus:Returns current capture status.
int:Unique capture ID.
C signature
hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus, unsigned long long * pId)
- cuda.bindings.driver.cuStreamGetCaptureInfo_v2(stream, dependencies_out)#
Get stream’s capture state
- Args:
- stream (
ihipStream_t/object) – IN: Stream of which to get capture status from.
- dependencies_out (
Pointer/object) – OUT: Pointer to an array of nodes representing the graphs
dependencies.
- stream (
- Returns:
A
tupleof size 5 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorStreamCaptureImplicithipStreamCaptureStatus:Returns current capture status.
int:Unique capture ID.
ihipGraph:Returns the graph being captured into.
int:Returns size of the array returned in dependencies_out.
C signature
hipError_t hipStreamGetCaptureInfo_v2(hipStream_t stream, hipStreamCaptureStatus * captureStatus_out, unsigned long long * id_out, hipGraph_t * graph_out, const hipGraphNode_t ** dependencies_out, size_t * numDependencies_out)
- cuda.bindings.driver.cuStreamIsCapturing(stream)#
Get stream’s capture state
- Args:
- stream (
ihipStream_t/object) – IN: Stream of which to get capture status from.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorStreamCaptureImplicithipStreamCaptureStatus:Returns current capture status.
C signature
hipError_t hipStreamIsCapturing(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus)
- cuda.bindings.driver.cudaStreamIsCapturing(stream)#
Get stream’s capture state
- Args:
- stream (
ihipStream_t/object) – IN: Stream of which to get capture status from.
- stream (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorStreamCaptureImplicithipStreamCaptureStatus:Returns current capture status.
C signature
hipError_t hipStreamIsCapturing(hipStream_t stream, hipStreamCaptureStatus * pCaptureStatus)
- cuda.bindings.driver.cuStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags)#
Update the set of dependencies in a capturing stream
- Args:
- stream (
ihipStream_t/object) – IN: Stream that is being captured.
- dependencies (
Pointer/object) – IN: Pointer to an array of nodes to add/replace.
- numDependencies (
int) – IN: Size of the dependencies array.
- flags (
int) – IN: Flag to update dependency set. Should be one of the values in enum
hipStreamUpdateCaptureDependenciesFlags.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorIllegalState
C signature
hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t * dependencies, size_t numDependencies, unsigned int flags)
- cuda.bindings.driver.cudaStreamUpdateCaptureDependencies(stream, dependencies, numDependencies, flags)#
Update the set of dependencies in a capturing stream
- Args:
- stream (
ihipStream_t/object) – IN: Stream that is being captured.
- dependencies (
Pointer/object) – IN: Pointer to an array of nodes to add/replace.
- numDependencies (
int) – IN: Size of the dependencies array.
- flags (
int) – IN: Flag to update dependency set. Should be one of the values in enum
hipStreamUpdateCaptureDependenciesFlags.
- stream (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorIllegalState
C signature
hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t * dependencies, size_t numDependencies, unsigned int flags)
- cuda.bindings.driver.cuThreadExchangeStreamCaptureMode()#
Swaps the stream capture mode of a thread.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipStreamCaptureMode:Pointer to mode value to swap with the current mode.
C signature
hipError_t hipThreadExchangeStreamCaptureMode(hipStreamCaptureMode * mode)
- cuda.bindings.driver.cudaThreadExchangeStreamCaptureMode()#
Swaps the stream capture mode of a thread.
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipStreamCaptureMode:Pointer to mode value to swap with the current mode.
C signature
hipError_t hipThreadExchangeStreamCaptureMode(hipStreamCaptureMode * mode)
- cuda.bindings.driver.cuGraphCreate(flags)#
Creates a graph
- Args:
- flags (
int) – IN: flags for graph creation, must be 0.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:pointer to graph to create.
C signature
hipError_t hipGraphCreate(hipGraph_t * pGraph, unsigned int flags)
- cuda.bindings.driver.cudaGraphCreate(flags)#
Creates a graph
- Args:
- flags (
int) – IN: flags for graph creation, must be 0.
- flags (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:pointer to graph to create.
C signature
hipError_t hipGraphCreate(hipGraph_t * pGraph, unsigned int flags)
- cuda.bindings.driver.cuGraphDestroy(graph)#
Destroys a graph
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphDestroy(hipGraph_t graph)
- cuda.bindings.driver.cudaGraphDestroy(graph)#
Destroys a graph
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphDestroy(hipGraph_t graph)
- cuda.bindings.driver.cuGraphAddDependencies(graph, from_, to, numDependencies)#
Adds dependency edges to a graph.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
- cuda.bindings.driver.cudaGraphAddDependencies(graph, from_, to, numDependencies)#
Adds dependency edges to a graph.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
- cuda.bindings.driver.cuGraphRemoveDependencies(graph, from_, to, numDependencies)#
Removes dependency edges from a graph.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphRemoveDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
- cuda.bindings.driver.cudaGraphRemoveDependencies(graph, from_, to, numDependencies)#
Removes dependency edges from a graph.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphRemoveDependencies(hipGraph_t graph, const hipGraphNode_t * from, const hipGraphNode_t * to, size_t numDependencies)
- cuda.bindings.driver.cuGraphGetEdges(graph)#
Returns a graph’s dependency edges.
from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges.
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to the graph nodes to return edge endpoints.
hipGraphNode:Pointer to the graph nodes to return edge endpoints.
int:Returns number of edges.
C signature
hipError_t hipGraphGetEdges(hipGraph_t graph, hipGraphNode_t * from, hipGraphNode_t * to, size_t * numEdges)
- cuda.bindings.driver.cudaGraphGetEdges(graph)#
Returns a graph’s dependency edges.
from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges.
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to the graph nodes to return edge endpoints.
hipGraphNode:Pointer to the graph nodes to return edge endpoints.
int:Returns number of edges.
C signature
hipError_t hipGraphGetEdges(hipGraph_t graph, hipGraphNode_t * from, hipGraphNode_t * to, size_t * numEdges)
- cuda.bindings.driver.cuGraphGetNodes(graph)#
Returns a graph’s nodes.
nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the graph nodes.
int:Returns the number of graph nodes.
C signature
hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t * nodes, size_t * numNodes)
- cuda.bindings.driver.cudaGraphGetNodes(graph)#
Returns a graph’s nodes.
nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in numNodes.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the graph nodes.
int:Returns the number of graph nodes.
C signature
hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t * nodes, size_t * numNodes)
- cuda.bindings.driver.cuGraphGetRootNodes(graph)#
Returns a graph’s root nodes.
pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the graph’s root nodes.
int:Returns the number of graph’s root nodes.
C signature
hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t * pRootNodes, size_t * pNumRootNodes)
- cuda.bindings.driver.cudaGraphGetRootNodes(graph)#
Returns a graph’s root nodes.
pRootNodes may be NULL, in which case this function will return the number of root nodes in pNumRootNodes. Otherwise, pNumRootNodes entries will be filled in. If pNumRootNodes is higher than the actual number of root nodes, the remaining entries in pRootNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumRootNodes.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the graph’s root nodes.
int:Returns the number of graph’s root nodes.
C signature
hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t * pRootNodes, size_t * pNumRootNodes)
- cuda.bindings.driver.cuGraphNodeGetDependencies(node)#
Returns a node’s dependencies.
pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.
- Args:
- node (
hipGraphNode/object) – IN: Graph node to get the dependencies from.
- node (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the dependencies.
int:Returns the number of graph node dependencies.
C signature
hipError_t hipGraphNodeGetDependencies(hipGraphNode_t node, hipGraphNode_t * pDependencies, size_t * pNumDependencies)
- cuda.bindings.driver.cudaGraphNodeGetDependencies(node)#
Returns a node’s dependencies.
pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.
- Args:
- node (
hipGraphNode/object) – IN: Graph node to get the dependencies from.
- node (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the dependencies.
int:Returns the number of graph node dependencies.
C signature
hipError_t hipGraphNodeGetDependencies(hipGraphNode_t node, hipGraphNode_t * pDependencies, size_t * pNumDependencies)
- cuda.bindings.driver.cuGraphNodeGetDependentNodes(node)#
Returns a node’s dependent nodes.
pDependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.
- Args:
- node (
hipGraphNode/object) – IN: Graph node to get the dependent nodes from.
- node (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the graph dependent nodes.
int:Returns the number of graph node dependent nodes.
C signature
hipError_t hipGraphNodeGetDependentNodes(hipGraphNode_t node, hipGraphNode_t * pDependentNodes, size_t * pNumDependentNodes)
- cuda.bindings.driver.cudaGraphNodeGetDependentNodes(node)#
Returns a node’s dependent nodes.
pDependentNodes may be NULL, in which case this function will return the number of dependent nodes in pNumDependentNodes. Otherwise, pNumDependentNodes entries will be filled in. If pNumDependentNodes is higher than the actual number of dependent nodes, the remaining entries in pDependentNodes will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependentNodes.
- Args:
- node (
hipGraphNode/object) – IN: Graph node to get the dependent nodes from.
- node (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to return the graph dependent nodes.
int:Returns the number of graph node dependent nodes.
C signature
hipError_t hipGraphNodeGetDependentNodes(hipGraphNode_t node, hipGraphNode_t * pDependentNodes, size_t * pNumDependentNodes)
- cuda.bindings.driver.cuGraphNodeGetType(node)#
Returns a node’s type.
- Args:
- node (
hipGraphNode/object) – IN: Node to get type of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNodeType:Returns the node’s type.
C signature
hipError_t hipGraphNodeGetType(hipGraphNode_t node, hipGraphNodeType * pType)
- cuda.bindings.driver.cudaGraphNodeGetType(node)#
Returns a node’s type.
- Args:
- node (
hipGraphNode/object) – IN: Node to get type of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNodeType:Returns the node’s type.
C signature
hipError_t hipGraphNodeGetType(hipGraphNode_t node, hipGraphNodeType * pType)
- cuda.bindings.driver.cuGraphDestroyNode(node)#
Remove a node from the graph.
- Args:
- node (
hipGraphNode/object) – IN: graph node to remove
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphDestroyNode(hipGraphNode_t node)
- cuda.bindings.driver.cudaGraphDestroyNode(node)#
Remove a node from the graph.
- Args:
- node (
hipGraphNode/object) – IN: graph node to remove
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphDestroyNode(hipGraphNode_t node)
- cuda.bindings.driver.cuGraphClone(originalGraph)#
Clones a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:Returns newly created cloned graph.
C signature
hipError_t hipGraphClone(hipGraph_t * pGraphClone, hipGraph_t originalGraph)
- cuda.bindings.driver.cudaGraphClone(originalGraph)#
Clones a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorMemoryAllocationihipGraph:Returns newly created cloned graph.
C signature
hipError_t hipGraphClone(hipGraph_t * pGraphClone, hipGraph_t originalGraph)
- cuda.bindings.driver.cuGraphNodeFindInClone(originalNode, clonedGraph)#
Finds a cloned version of a node.
- Args:
- originalNode (
hipGraphNode/object) – IN: original node handle.
- clonedGraph (
ihipGraph/object) – IN: Cloned graph to query.
- originalNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Returns the cloned node.
C signature
hipError_t hipGraphNodeFindInClone(hipGraphNode_t * pNode, hipGraphNode_t originalNode, hipGraph_t clonedGraph)
- cuda.bindings.driver.cudaGraphNodeFindInClone(originalNode, clonedGraph)#
Finds a cloned version of a node.
- Args:
- originalNode (
hipGraphNode/object) – IN: original node handle.
- clonedGraph (
ihipGraph/object) – IN: Cloned graph to query.
- originalNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Returns the cloned node.
C signature
hipError_t hipGraphNodeFindInClone(hipGraphNode_t * pNode, hipGraphNode_t originalNode, hipGraph_t clonedGraph)
- cuda.bindings.driver.cuGraphInstantiate(graph, bufferSize)#
Creates an executable graph from a graph
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemoryhipGraphExec:Pointer to instantiated executable graph.
hipGraphNode:Pointer to error node. In case an error occured during
graph instantiation, it could modify the corresponding node.
C signature
hipError_t hipGraphInstantiate(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphNode_t * pErrorNode, char * pLogBuffer, size_t bufferSize)
- cuda.bindings.driver.cuGraphInstantiate_v2(graph, bufferSize)#
Creates an executable graph from a graph
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemoryhipGraphExec:Pointer to instantiated executable graph.
hipGraphNode:Pointer to error node. In case an error occured during
graph instantiation, it could modify the corresponding node.
C signature
hipError_t hipGraphInstantiate(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphNode_t * pErrorNode, char * pLogBuffer, size_t bufferSize)
- cuda.bindings.driver.cudaGraphInstantiate(graph, bufferSize)#
Creates an executable graph from a graph
- Args:
- Returns:
A
tupleof size 4 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorOutOfMemoryhipGraphExec:Pointer to instantiated executable graph.
hipGraphNode:Pointer to error node. In case an error occured during
graph instantiation, it could modify the corresponding node.
C signature
hipError_t hipGraphInstantiate(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphNode_t * pErrorNode, char * pLogBuffer, size_t bufferSize)
- cuda.bindings.driver.cuGraphInstantiateWithFlags(graph, flags)#
Creates an executable graph from a graph.
- Warning:
This API does not support any of flag and is behaving as hipGraphInstantiate.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphExec:Pointer to instantiated executable graph.
C signature
hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t * pGraphExec, hipGraph_t graph, unsigned long long flags)
- cuda.bindings.driver.cudaGraphInstantiateWithFlags(graph, flags)#
Creates an executable graph from a graph.
- Warning:
This API does not support any of flag and is behaving as hipGraphInstantiate.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphExec:Pointer to instantiated executable graph.
C signature
hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t * pGraphExec, hipGraph_t graph, unsigned long long flags)
- cuda.bindings.driver.cuGraphInstantiateWithParams(graph, instantiateParams)#
Creates an executable graph from a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to instantiate.
- instantiateParams (
hipGraphInstantiateParams/object) – IN: Graph instantiation Params
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphExec:Pointer to instantiated executable graph.
C signature
hipError_t hipGraphInstantiateWithParams(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphInstantiateParams * instantiateParams)
- cuda.bindings.driver.cudaGraphInstantiateWithParams(graph, instantiateParams)#
Creates an executable graph from a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to instantiate.
- instantiateParams (
hipGraphInstantiateParams/object) – IN: Graph instantiation Params
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphExec:Pointer to instantiated executable graph.
C signature
hipError_t hipGraphInstantiateWithParams(hipGraphExec_t * pGraphExec, hipGraph_t graph, hipGraphInstantiateParams * instantiateParams)
- cuda.bindings.driver.cuGraphLaunch(graphExec, stream)#
Launches an executable graph in the specified stream.
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of executable graph to launch.
- stream (
ihipStream_t/object) – IN: Instance of stream in which to launch executable graph.
- graphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream)
- cuda.bindings.driver.cudaGraphLaunch(graphExec, stream)#
Launches an executable graph in the specified stream.
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of executable graph to launch.
- stream (
ihipStream_t/object) – IN: Instance of stream in which to launch executable graph.
- graphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream)
- cuda.bindings.driver.cuGraphUpload(graphExec, stream)#
Uploads an executable graph to a stream
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of executable graph to be uploaded.
- stream (
ihipStream_t/object) – IN: Instance of stream to which the executable graph is uploaded to.
- graphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream)
- cuda.bindings.driver.cudaGraphUpload(graphExec, stream)#
Uploads an executable graph to a stream
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of executable graph to be uploaded.
- stream (
ihipStream_t/object) – IN: Instance of stream to which the executable graph is uploaded to.
- graphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream)
- cuda.bindings.driver.cuGraphAddNode(graph, pDependencies, numDependencies, nodeParams)#
Creates a kernel execution node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: Pointer to the dependencies on the kernel execution node.
- numDependencies (
int) – IN: Number of dependencies.
- nodeParams (
hipGraphNodeParams/object) – IN: Pointer to the node parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue.hipGraphNode:Pointer to kernel graph node that is created.
C signature
hipError_t hipGraphAddNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraphNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphAddNode(graph, pDependencies, numDependencies, nodeParams)#
Creates a kernel execution node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: Pointer to the dependencies on the kernel execution node.
- numDependencies (
int) – IN: Number of dependencies.
- nodeParams (
hipGraphNodeParams/object) – IN: Pointer to the node parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue.hipGraphNode:Pointer to kernel graph node that is created.
C signature
hipError_t hipGraphAddNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraphNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExecGetFlags(graphExec)#
Return the flags of an executable graph.
- Args:
- graphExec (
hipGraphExec/object) – IN: Executable graph to get the flags from.
- graphExec (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue.int:Flags used to instantiate this executable graph.
C signature
hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long * flags)
- cuda.bindings.driver.cudaGraphExecGetFlags(graphExec)#
Return the flags of an executable graph.
- Args:
- graphExec (
hipGraphExec/object) – IN: Executable graph to get the flags from.
- graphExec (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue.int:Flags used to instantiate this executable graph.
C signature
hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long * flags)
- cuda.bindings.driver.cuGraphNodeSetParams(node, nodeParams)#
Updates parameters of a graph’s node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters for.
- nodeParams (
hipGraphNodeParams/object) – IN: Pointer to the parameters to be set.
- node (
- Returns:
C signature
hipError_t hipGraphNodeSetParams(hipGraphNode_t node, hipGraphNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphNodeSetParams(node, nodeParams)#
Updates parameters of a graph’s node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters for.
- nodeParams (
hipGraphNodeParams/object) – IN: Pointer to the parameters to be set.
- node (
- Returns:
C signature
hipError_t hipGraphNodeSetParams(hipGraphNode_t node, hipGraphNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExecNodeSetParams(graphExec, node, nodeParams)#
Updates parameters of an executable graph’s node.
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of the executable graph.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters to.
- nodeParams (
hipGraphNodeParams/object) – IN: Pointer to the parameters to be set.
- graphExec (
- Returns:
C signature
hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphExecNodeSetParams(graphExec, node, nodeParams)#
Updates parameters of an executable graph’s node.
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of the executable graph.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters to.
- nodeParams (
hipGraphNodeParams/object) – IN: Pointer to the parameters to be set.
- graphExec (
- Returns:
C signature
hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExecDestroy(graphExec)#
Destroys an executable graph
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of executable graph to destroy.
- graphExec (
- Returns:
hipError_t: py:obj:hipSuccess.
C signature
hipError_t hipGraphExecDestroy(hipGraphExec_t graphExec)
- cuda.bindings.driver.cudaGraphExecDestroy(graphExec)#
Destroys an executable graph
- Args:
- graphExec (
hipGraphExec/object) – IN: Instance of executable graph to destroy.
- graphExec (
- Returns:
hipError_t: py:obj:hipSuccess.
C signature
hipError_t hipGraphExecDestroy(hipGraphExec_t graphExec)
- cuda.bindings.driver.cuGraphExecUpdate(hGraphExec, hGraph, hErrorNode_out)#
Check whether an executable graph can be updated with a graph and perform the update if * possible.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorGraphExecUpdateFailurehipGraphExecUpdateResult:Return code whether the graph update was performed.
C signature
hipError_t hipGraphExecUpdate(hipGraphExec_t hGraphExec, hipGraph_t hGraph, hipGraphNode_t * hErrorNode_out, hipGraphExecUpdateResult * updateResult_out)
- cuda.bindings.driver.cudaGraphExecUpdate(hGraphExec, hGraph, hErrorNode_out)#
Check whether an executable graph can be updated with a graph and perform the update if * possible.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorGraphExecUpdateFailurehipGraphExecUpdateResult:Return code whether the graph update was performed.
C signature
hipError_t hipGraphExecUpdate(hipGraphExec_t hGraphExec, hipGraph_t hGraph, hipGraphNode_t * hErrorNode_out, hipGraphExecUpdateResult * updateResult_out)
- cuda.bindings.driver.cuGraphAddKernelNode(graph, pDependencies, numDependencies, pNodeParams)#
Creates a kernel execution node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: Pointer to the dependencies of the kernel execution node.
- numDependencies (
int) – IN: The number of the dependencies.
- pNodeParams (
hipKernelNodeParams/object) – IN: Pointer to the parameters of the kernel execution node.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionhipGraphNode:Pointer to graph node that is created
C signature
hipError_t hipGraphAddKernelNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphAddKernelNode(graph, pDependencies, numDependencies, pNodeParams)#
Creates a kernel execution node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: Pointer to the dependencies of the kernel execution node.
- numDependencies (
int) – IN: The number of the dependencies.
- pNodeParams (
hipKernelNodeParams/object) – IN: Pointer to the parameters of the kernel execution node.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorInvalidDeviceFunctionhipGraphNode:Pointer to graph node that is created
C signature
hipError_t hipGraphAddKernelNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphKernelNodeGetParams(node)#
Gets kernel node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipKernelNodeParams:pointer to the parameters
C signature
hipError_t hipGraphKernelNodeGetParams(hipGraphNode_t node, hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphKernelNodeGetParams(node)#
Gets kernel node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipKernelNodeParams:pointer to the parameters
C signature
hipError_t hipGraphKernelNodeGetParams(hipGraphNode_t node, hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphKernelNodeSetParams(node, pNodeParams)#
Sets a kernel node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphKernelNodeSetParams(node, pNodeParams)#
Sets a kernel node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)#
Sets the parameters for a kernel node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the kernel node parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams)#
Sets the parameters for a kernel node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipKernelNodeParams/object) – IN: const pointer to the kernel node parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphAddMemcpyNode(hGraph, dependencies, numDependencies, copyParams, ctx)#
Creates a memcpy node and adds it to a graph.
- Args:
- hGraph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- dependencies (
Pointer/object) – IN: const pointer to the dependencies of the memcpy execution node.
- numDependencies (
int) – IN: The number of dependencies.
- copyParams (
HIP_MEMCPY3D/object) – IN: const pointer to the parameters for the memory copy.
- ctx (
ihipCtx_t/object) – IN: context related to current device.
- hGraph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipDrvGraphAddMemcpyNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, const HIP_MEMCPY3D * copyParams, hipCtx_t ctx)
- cuda.bindings.driver.cudaGraphAddMemcpyNode(graph, pDependencies, numDependencies, pCopyParams)#
Creates a memcpy node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies of the memcpy execution node.
- numDependencies (
int) – IN: The number of dependencies.
- pCopyParams (
hipMemcpy3DParms/object) – IN: const pointer to the parameters for the memory copy.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddMemcpyNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipMemcpy3DParms * pCopyParams)
- cuda.bindings.driver.cudaGraphMemcpyNodeGetParams(node)#
Gets a memcpy node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemcpy3DParms:pointer to the parameters.
C signature
hipError_t hipGraphMemcpyNodeGetParams(hipGraphNode_t node, hipMemcpy3DParms * pNodeParams)
- cuda.bindings.driver.cudaGraphMemcpyNodeSetParams(node, pNodeParams)#
Sets a memcpy node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- pNodeParams (
hipMemcpy3DParms/object) – IN: const pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemcpyNodeSetParams(hipGraphNode_t node, const hipMemcpy3DParms * pNodeParams)
- cuda.bindings.driver.cuGraphKernelNodeSetAttribute(hNode, attr, value)#
Sets a node’s attribute.
- Args:
- hNode (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- attr (
hipLaunchAttributeID) – IN: The attribute type to be set.
- value (
hipLaunchAttributeValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphKernelNodeSetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
- cuda.bindings.driver.cudaGraphKernelNodeSetAttribute(hNode, attr, value)#
Sets a node’s attribute.
- Args:
- hNode (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- attr (
hipLaunchAttributeID) – IN: The attribute type to be set.
- value (
hipLaunchAttributeValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphKernelNodeSetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, const hipLaunchAttributeValue * value)
- cuda.bindings.driver.cuGraphKernelNodeGetAttribute(hNode, attr, value)#
Gets a node’s attribute.
- Args:
- hNode (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- attr (
hipLaunchAttributeID) – IN: The attribute type to be set.
- value (
hipLaunchAttributeValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphKernelNodeGetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, hipLaunchAttributeValue * value)
- cuda.bindings.driver.cudaGraphKernelNodeGetAttribute(hNode, attr, value)#
Gets a node’s attribute.
- Args:
- hNode (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- attr (
hipLaunchAttributeID) – IN: The attribute type to be set.
- value (
hipLaunchAttributeValue/object) – IN: const pointer to the parameters.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphKernelNodeGetAttribute(hipGraphNode_t hNode, hipLaunchAttributeID attr, hipLaunchAttributeValue * value)
- cuda.bindings.driver.cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams)#
Sets the parameters of a memcpy node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipMemcpy3DParms/object) – IN: const pointer to the kernel node parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipMemcpy3DParms * pNodeParams)
- cuda.bindings.driver.cudaGraphAddMemcpyNode1D(graph, pDependencies, numDependencies, dst, src, count, kind)#
Creates a 1D memcpy node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies of the memcpy execution node.
- numDependencies (
int) – IN: The number of dependencies.
- dst (
Pointer/object) – IN: Pointer to memory address of the destination.
- src (
Pointer/object) – IN: Pointer to memory address of the source.
- count (
int) – IN: Size of the memory to copy.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddMemcpyNode1D(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, void * dst, const void * src, size_t count, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind)#
Sets a memcpy node’s parameters to perform a 1-dimensional copy.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- dst (
Pointer/object) – IN: Pointer to memory address of the destination.
- src (
Pointer/object) – IN: Pointer to memory address of the source.
- count (
int) – IN: Size of the memory to copy.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemcpyNodeSetParams1D(hipGraphNode_t node, void * dst, const void * src, size_t count, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind)#
Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- dst (
Pointer/object) – IN: Pointer to memory address of the destination.
- src (
Pointer/object) – IN: Pointer to memory address of the source.
- count (
int) – IN: Size of the memory to copy.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecMemcpyNodeSetParams1D(hipGraphExec_t hGraphExec, hipGraphNode_t node, void * dst, const void * src, size_t count, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphAddMemcpyNodeFromSymbol(graph, pDependencies, numDependencies, dst, symbol, count, offset, kind)#
Creates a memcpy node to copy from a symbol on the device and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies of the memcpy execution node.
- numDependencies (
int) – IN: Number of the dependencies.
- dst (
Pointer/object) – IN: Pointer to memory address of the destination.
- symbol (
Pointer/object) – IN: Device symbol address.
- count (
int) – IN: Size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddMemcpyNodeFromSymbol(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, void * dst, const void * symbol, size_t count, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphMemcpyNodeSetParamsFromSymbol(node, dst, symbol, count, offset, kind)#
Sets a memcpy node’s parameters to copy from a symbol on the device.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- dst (
Pointer/object) – IN: Pointer to memory address of the destination.
- symbol (
Pointer/object) – IN: Device symbol address.
- count (
int) – IN: Size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemcpyNodeSetParamsFromSymbol(hipGraphNode_t node, void * dst, const void * symbol, size_t count, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphExecMemcpyNodeSetParamsFromSymbol(hGraphExec, node, dst, symbol, count, offset, kind)#
Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the * device.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- dst (
Pointer/object) – IN: Pointer to memory address of the destination.
- symbol (
Pointer/object) – IN: Device symbol address.
- count (
int) – IN: Size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecMemcpyNodeSetParamsFromSymbol(hipGraphExec_t hGraphExec, hipGraphNode_t node, void * dst, const void * symbol, size_t count, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphAddMemcpyNodeToSymbol(graph, pDependencies, numDependencies, symbol, src, count, offset, kind)#
Creates a memcpy node to copy to a symbol on the device and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies on the memcpy execution node.
- numDependencies (
int) – IN: Number of dependencies.
- symbol (
Pointer/object) – IN: Device symbol address.
- src (
Pointer/object) – IN: Pointer to memory address of the src.
- count (
int) – IN: Size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddMemcpyNodeToSymbol(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const void * symbol, const void * src, size_t count, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphMemcpyNodeSetParamsToSymbol(node, symbol, src, count, offset, kind)#
Sets a memcpy node’s parameters to copy to a symbol on the device.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- symbol (
Pointer/object) – IN: Device symbol address.
- src (
Pointer/object) – IN: Pointer to memory address of the src.
- count (
int) – IN: Size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemcpyNodeSetParamsToSymbol(hipGraphNode_t node, const void * symbol, const void * src, size_t count, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphExecMemcpyNodeSetParamsToSymbol(hGraphExec, node, symbol, src, count, offset, kind)#
Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- symbol (
Pointer/object) – IN: Device symbol address.
- src (
Pointer/object) – IN: Pointer to memory address of the src.
- count (
int) – IN: Size of the memory to copy.
- offset (
int) – IN: Offset from start of symbol in bytes.
- kind (
hipMemcpyKind) – IN: Type of memory copy.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecMemcpyNodeSetParamsToSymbol(hipGraphExec_t hGraphExec, hipGraphNode_t node, const void * symbol, const void * src, size_t count, size_t offset, hipMemcpyKind kind)
- cuda.bindings.driver.cudaGraphAddMemsetNode(graph, pDependencies, numDependencies, pMemsetParams)#
Creates a memset node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of the graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies on the memset execution node.
- numDependencies (
int) – IN: Number of dependencies.
- pMemsetParams (
hipMemsetParams/object) – IN: const pointer to the parameters for the memory set.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddMemsetNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipMemsetParams * pMemsetParams)
- cuda.bindings.driver.cuGraphMemsetNodeGetParams(node)#
Gets a memset node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get parameters of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemsetParams:Pointer to the parameters.
C signature
hipError_t hipGraphMemsetNodeGetParams(hipGraphNode_t node, hipMemsetParams * pNodeParams)
- cuda.bindings.driver.cudaGraphMemsetNodeGetParams(node)#
Gets a memset node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get parameters of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemsetParams:Pointer to the parameters.
C signature
hipError_t hipGraphMemsetNodeGetParams(hipGraphNode_t node, hipMemsetParams * pNodeParams)
- cuda.bindings.driver.cuGraphMemsetNodeSetParams(node, pNodeParams)#
Sets a memset node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipMemsetParams/object) – IN: Pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams * pNodeParams)
- cuda.bindings.driver.cudaGraphMemsetNodeSetParams(node, pNodeParams)#
Sets a memset node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipMemsetParams/object) – IN: Pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams * pNodeParams)
- cuda.bindings.driver.cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams)#
Sets the parameters for a memset node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipMemsetParams/object) – IN: Pointer to the parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipMemsetParams * pNodeParams)
- cuda.bindings.driver.cuGraphAddHostNode(graph, pDependencies, numDependencies, pNodeParams)#
Creates a host execution node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of the graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies of the memset execution node.
- numDependencies (
int) – IN: Number of dependencies.
- pNodeParams (
hipHostNodeParams/object) – IN: Pointer to the parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddHostNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphAddHostNode(graph, pDependencies, numDependencies, pNodeParams)#
Creates a host execution node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: Instance of the graph to add the created node to.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies of the memset execution node.
- numDependencies (
int) – IN: Number of dependencies.
- pNodeParams (
hipHostNodeParams/object) – IN: Pointer to the parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddHostNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphHostNodeGetParams(node)#
Returns a host node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get parameters of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipHostNodeParams:Pointer to the parameters.
C signature
hipError_t hipGraphHostNodeGetParams(hipGraphNode_t node, hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphHostNodeGetParams(node)#
Returns a host node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get parameters of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipHostNodeParams:Pointer to the parameters.
C signature
hipError_t hipGraphHostNodeGetParams(hipGraphNode_t node, hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphHostNodeSetParams(node, pNodeParams)#
Sets a host node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipHostNodeParams/object) – IN: Pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphHostNodeSetParams(hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphHostNodeSetParams(node, pNodeParams)#
Sets a host node’s parameters.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipHostNodeParams/object) – IN: Pointer to the parameters.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphHostNodeSetParams(hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)#
Sets the parameters for a host node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipHostNodeParams/object) – IN: Pointer to the parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecHostNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams)#
Sets the parameters for a host node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: Instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: Instance of the node to set parameters of.
- pNodeParams (
hipHostNodeParams/object) – IN: Pointer to the parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecHostNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipHostNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphAddChildGraphNode(graph, pDependencies, numDependencies, childGraph)#
Creates a child graph node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddChildGraphNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraph_t childGraph)
- cuda.bindings.driver.cudaGraphAddChildGraphNode(graph, pDependencies, numDependencies, childGraph)#
Creates a child graph node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddChildGraphNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipGraph_t childGraph)
- cuda.bindings.driver.cuGraphChildGraphNodeGetGraph(node)#
Gets a handle to the embedded graph of a child graph node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get child graph of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipGraph:Pointer to get the graph.
C signature
hipError_t hipGraphChildGraphNodeGetGraph(hipGraphNode_t node, hipGraph_t * pGraph)
- cuda.bindings.driver.cudaGraphChildGraphNodeGetGraph(node)#
Gets a handle to the embedded graph of a child graph node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get child graph of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipGraph:Pointer to get the graph.
C signature
hipError_t hipGraphChildGraphNodeGetGraph(hipGraphNode_t node, hipGraph_t * pGraph)
- cuda.bindings.driver.cuGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)#
Updates node parameters in the child graph node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- childGraph (
ihipGraph/object) – IN: child graph with updated parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecChildGraphNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipGraph_t childGraph)
- cuda.bindings.driver.cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)#
Updates node parameters in the child graph node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- node (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- childGraph (
ihipGraph/object) – IN: child graph with updated parameters.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecChildGraphNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipGraph_t childGraph)
- cuda.bindings.driver.cuGraphAddEmptyNode(graph, pDependencies, numDependencies)#
Creates an empty node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddEmptyNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies)
- cuda.bindings.driver.cudaGraphAddEmptyNode(graph, pDependencies, numDependencies)#
Creates an empty node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddEmptyNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies)
- cuda.bindings.driver.cuGraphAddEventRecordNode(graph, pDependencies, numDependencies, event)#
Creates an event record node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddEventRecordNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
- cuda.bindings.driver.cudaGraphAddEventRecordNode(graph, pDependencies, numDependencies, event)#
Creates an event record node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddEventRecordNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
- cuda.bindings.driver.cuGraphEventRecordNodeGetEvent(node)#
Returns the event associated with an event record node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get event of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipEvent_t:Pointer to return the event.
C signature
hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
- cuda.bindings.driver.cudaGraphEventRecordNodeGetEvent(node)#
Returns the event associated with an event record node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get event of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipEvent_t:Pointer to return the event.
C signature
hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
- cuda.bindings.driver.cuGraphEventRecordNodeSetEvent(node, event)#
Sets an event record node’s event.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set event to.
- event (
ihipEvent_t/object) – IN: Pointer to the event.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphEventRecordNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
- cuda.bindings.driver.cudaGraphEventRecordNodeSetEvent(node, event)#
Sets an event record node’s event.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set event to.
- event (
ihipEvent_t/object) – IN: Pointer to the event.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphEventRecordNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
- cuda.bindings.driver.cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)#
Sets the event for an event record node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecEventRecordNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
- cuda.bindings.driver.cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)#
Sets the event for an event record node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecEventRecordNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
- cuda.bindings.driver.cuGraphAddEventWaitNode(graph, pDependencies, numDependencies, event)#
Creates an event wait node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddEventWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
- cuda.bindings.driver.cudaGraphAddEventWaitNode(graph, pDependencies, numDependencies, event)#
Creates an event wait node and adds it to a graph.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to graph node that is created.
C signature
hipError_t hipGraphAddEventWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipEvent_t event)
- cuda.bindings.driver.cuGraphEventWaitNodeGetEvent(node)#
Returns the event associated with an event wait node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get event of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipEvent_t:Pointer to return the event.
C signature
hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
- cuda.bindings.driver.cudaGraphEventWaitNodeGetEvent(node)#
Returns the event associated with an event wait node.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to get event of.
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueihipEvent_t:Pointer to return the event.
C signature
hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t * event_out)
- cuda.bindings.driver.cuGraphEventWaitNodeSetEvent(node, event)#
Sets an event wait node’s event.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set event of.
- event (
ihipEvent_t/object) – IN: Pointer to the event.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphEventWaitNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
- cuda.bindings.driver.cudaGraphEventWaitNodeSetEvent(node, event)#
Sets an event wait node’s event.
- Args:
- node (
hipGraphNode/object) – IN: Instance of the node to set event of.
- event (
ihipEvent_t/object) – IN: Pointer to the event.
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphEventWaitNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
- cuda.bindings.driver.cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)#
Sets the event for an event record node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecEventWaitNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
- cuda.bindings.driver.cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)#
Sets the event for an event record node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: node from the graph which was used to instantiate graphExec.
- event (
ihipEvent_t/object) – IN: pointer to the event.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecEventWaitNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
- cuda.bindings.driver.cuGraphAddMemAllocNode(graph, pDependencies, numDependencies, pNodeParams)#
Creates a memory allocation node and adds it to a graph
- Args:
- graph (
ihipGraph/object) – IN: Instance of the graph node to be added
- pDependencies (
Pointer/object) – IN: Const pointer to the node dependencies
- numDependencies (
int) – IN: The number of dependencies
- pNodeParams (
hipMemAllocNodeParams/object) – IN,OUT: Node parameters for memory allocation, returns a pointer to the
allocated memory.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to the graph node to create and add to the graph
C signature
hipError_t hipGraphAddMemAllocNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipMemAllocNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphAddMemAllocNode(graph, pDependencies, numDependencies, pNodeParams)#
Creates a memory allocation node and adds it to a graph
- Args:
- graph (
ihipGraph/object) – IN: Instance of the graph node to be added
- pDependencies (
Pointer/object) – IN: Const pointer to the node dependencies
- numDependencies (
int) – IN: The number of dependencies
- pNodeParams (
hipMemAllocNodeParams/object) – IN,OUT: Node parameters for memory allocation, returns a pointer to the
allocated memory.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to the graph node to create and add to the graph
C signature
hipError_t hipGraphAddMemAllocNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, hipMemAllocNodeParams * pNodeParams)
- cuda.bindings.driver.cuGraphMemAllocNodeGetParams(node)#
Returns parameters for memory allocation node
- Args:
- node (
hipGraphNode/object) – IN: Memory allocation node to query
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemAllocNodeParams:Parameters for the specified memory allocation node
C signature
hipError_t hipGraphMemAllocNodeGetParams(hipGraphNode_t node, hipMemAllocNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphMemAllocNodeGetParams(node)#
Returns parameters for memory allocation node
- Args:
- node (
hipGraphNode/object) – IN: Memory allocation node to query
- node (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipMemAllocNodeParams:Parameters for the specified memory allocation node
C signature
hipError_t hipGraphMemAllocNodeGetParams(hipGraphNode_t node, hipMemAllocNodeParams * pNodeParams)
- cuda.bindings.driver.cudaGraphAddMemFreeNode(graph, pDependencies, numDependencies, dev_ptr)#
Creates a memory free node and adds it to a graph
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to the graph node to create and add to the graph
C signature
hipError_t hipGraphAddMemFreeNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, void * dev_ptr)
- cuda.bindings.driver.cuGraphMemFreeNodeGetParams(node, dev_ptr)#
Returns parameters for memory free node
- Args:
- node (
hipGraphNode/object) – IN: Memory free node to query
- dev_ptr (
Pointer/object) – OUT: Device pointer of the specified memory free node
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemFreeNodeGetParams(hipGraphNode_t node, void * dev_ptr)
- cuda.bindings.driver.cudaGraphMemFreeNodeGetParams(node, dev_ptr)#
Returns parameters for memory free node
- Args:
- node (
hipGraphNode/object) – IN: Memory free node to query
- dev_ptr (
Pointer/object) – OUT: Device pointer of the specified memory free node
- node (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphMemFreeNodeGetParams(hipGraphNode_t node, void * dev_ptr)
- cuda.bindings.driver.cuDeviceGetGraphMemAttribute(device, attr, value)#
Get the mem attribute for graphs.
- Args:
- device (
int) – IN: Device to get attributes from
- attr (
hipGraphMemAttributeType) – IN: Attribute type to be queried
- value (
Pointer/object) – OUT: Value of the queried attribute
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
- cuda.bindings.driver.cudaDeviceGetGraphMemAttribute(device, attr, value)#
Get the mem attribute for graphs.
- Args:
- device (
int) – IN: Device to get attributes from
- attr (
hipGraphMemAttributeType) – IN: Attribute type to be queried
- value (
Pointer/object) – OUT: Value of the queried attribute
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
- cuda.bindings.driver.cuDeviceSetGraphMemAttribute(device, attr, value)#
Set the mem attribute for graphs.
- Args:
- device (
int) – IN: Device to set attribute of.
- attr (
hipGraphMemAttributeType) – IN: Attribute type to be set.
- value (
Pointer/object) – IN: Value of the attribute.
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceSetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
- cuda.bindings.driver.cudaDeviceSetGraphMemAttribute(device, attr, value)#
Set the mem attribute for graphs.
- Args:
- device (
int) – IN: Device to set attribute of.
- attr (
hipGraphMemAttributeType) – IN: Attribute type to be set.
- value (
Pointer/object) – IN: Value of the attribute.
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceSetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void * value)
- cuda.bindings.driver.cuDeviceGraphMemTrim(device)#
Free unused memory reserved for graphs on a specific device and return it back to the OS.
- Args:
- device (
int) – IN: Device for which memory should be trimmed
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGraphMemTrim(int device)
- cuda.bindings.driver.cudaDeviceGraphMemTrim(device)#
Free unused memory reserved for graphs on a specific device and return it back to the OS.
- Args:
- device (
int) – IN: Device for which memory should be trimmed
- device (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidDevice
C signature
hipError_t hipDeviceGraphMemTrim(int device)
- cuda.bindings.driver.cuUserObjectCreate(ptr, destroy, initialRefcount, flags)#
Create an instance of userObject to manage lifetime of a resource.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipUserObject:pointer to instace of userobj.
C signature
hipError_t hipUserObjectCreate(hipUserObject_t * object_out, void * ptr, hipHostFn_t destroy, unsigned int initialRefcount, unsigned int flags)
- cuda.bindings.driver.cudaUserObjectCreate(ptr, destroy, initialRefcount, flags)#
Create an instance of userObject to manage lifetime of a resource.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipUserObject:pointer to instace of userobj.
C signature
hipError_t hipUserObjectCreate(hipUserObject_t * object_out, void * ptr, hipHostFn_t destroy, unsigned int initialRefcount, unsigned int flags)
- cuda.bindings.driver.cuUserObjectRelease(object, count)#
Release number of references to resource.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipUserObjectRelease(hipUserObject_t object, unsigned int count)
- cuda.bindings.driver.cudaUserObjectRelease(object, count)#
Release number of references to resource.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipUserObjectRelease(hipUserObject_t object, unsigned int count)
- cuda.bindings.driver.cuUserObjectRetain(object, count)#
Retain number of references to resource.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipUserObjectRetain(hipUserObject_t object, unsigned int count)
- cuda.bindings.driver.cudaUserObjectRetain(object, count)#
Retain number of references to resource.
- Args:
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- object (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipUserObjectRetain(hipUserObject_t object, unsigned int count)
- cuda.bindings.driver.cuGraphRetainUserObject(graph, object, count, flags)#
Retain user object for graphs.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphRetainUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count, unsigned int flags)
- cuda.bindings.driver.cudaGraphRetainUserObject(graph, object, count, flags)#
Retain user object for graphs.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphRetainUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count, unsigned int flags)
- cuda.bindings.driver.cuGraphReleaseUserObject(graph, object, count)#
Release user object from graphs.
- Args:
- graph (
ihipGraph/object) – IN: pointer to graph to retain the user object for.
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- graph (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphReleaseUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count)
- cuda.bindings.driver.cudaGraphReleaseUserObject(graph, object, count)#
Release user object from graphs.
- Args:
- graph (
ihipGraph/object) – IN: pointer to graph to retain the user object for.
- object (
hipUserObject/object) – IN: pointer to instace of userobj.
- count (
int) – IN: reference to resource to be retained.
- graph (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphReleaseUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count)
- cuda.bindings.driver.cuGraphDebugDotPrint(graph, path, flags)#
Write a DOT file describing graph structure.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOperatingSystem
C signature
hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char * path, unsigned int flags)
- cuda.bindings.driver.cudaGraphDebugDotPrint(graph, path, flags)#
Write a DOT file describing graph structure.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorOperatingSystem
C signature
hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char * path, unsigned int flags)
- cuda.bindings.driver.cuGraphKernelNodeCopyAttributes(hSrc)#
Copies attributes from source node to destination node.
Copies attributes from source node to destination node. Both node must have the same context.
- Args:
- hSrc (
hipGraphNode/object) – IN: Source node.
For list of attributes see ::hipKernelNodeAttrID.
- hSrc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidContexthipGraphNode:Destination node.
C signature
hipError_t hipGraphKernelNodeCopyAttributes(hipGraphNode_t hSrc, hipGraphNode_t hDst)
- cuda.bindings.driver.cudaGraphKernelNodeCopyAttributes(hSrc)#
Copies attributes from source node to destination node.
Copies attributes from source node to destination node. Both node must have the same context.
- Args:
- hSrc (
hipGraphNode/object) – IN: Source node.
For list of attributes see ::hipKernelNodeAttrID.
- hSrc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidContexthipGraphNode:Destination node.
C signature
hipError_t hipGraphKernelNodeCopyAttributes(hipGraphNode_t hSrc, hipGraphNode_t hDst)
- cuda.bindings.driver.cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)#
Enables or disables the specified node in the given graphExec
Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.
The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- isEnabled (
int) – IN: Node is enabled if != 0, otherwise the node is disabled.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,
C signature
hipError_t hipGraphNodeSetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int isEnabled)
- cuda.bindings.driver.cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled)#
Enables or disables the specified node in the given graphExec
Sets hNode to be either enabled or disabled. Disabled nodes are functionally equivalent to empty nodes until they are reenabled. Existing node parameters are not affected by disabling/enabling the node.
The node is identified by the corresponding hNode in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- isEnabled (
int) – IN: Node is enabled if != 0, otherwise the node is disabled.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,
C signature
hipError_t hipGraphNodeSetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int isEnabled)
- cuda.bindings.driver.cuGraphNodeGetEnabled(hGraphExec, hNode)#
Query whether a node in the given graphExec is enabled
Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.
The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hGraphExec (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Location to return the enabled status of the node.
C signature
hipError_t hipGraphNodeGetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int * isEnabled)
- cuda.bindings.driver.cudaGraphNodeGetEnabled(hGraphExec, hNode)#
Query whether a node in the given graphExec is enabled
Sets isEnabled to 1 if hNode is enabled, or 0 if it is disabled.
The node is identified by the corresponding node in the non-executable graph, from which the executable graph was instantiated.
hNode must not have been removed from the original graph.
- Note:
Currently only kernel, memset and memcpy nodes are supported.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hGraphExec (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Location to return the enabled status of the node.
C signature
hipError_t hipGraphNodeGetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int * isEnabled)
- cuda.bindings.driver.cuGraphAddExternalSemaphoresWaitNode(graph, pDependencies, numDependencies, nodeParams)#
Creates a external semaphor wait node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies on the memset execution node.
- numDependencies (
int) – IN: the number of the dependencies.
- nodeParams (
hipExternalSemaphoreWaitNodeParams/object) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:pointer to the graph node to create.
C signature
hipError_t hipGraphAddExternalSemaphoresWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreWaitNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies, numDependencies, nodeParams)#
Creates a external semaphor wait node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies on the memset execution node.
- numDependencies (
int) – IN: the number of the dependencies.
- nodeParams (
hipExternalSemaphoreWaitNodeParams/object) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:pointer to the graph node to create.
C signature
hipError_t hipGraphAddExternalSemaphoresWaitNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreWaitNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphAddExternalSemaphoresSignalNode(graph, pDependencies, numDependencies, nodeParams)#
Creates a external semaphor signal node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies on the memset execution node.
- numDependencies (
int) – IN: the number of the dependencies.
- nodeParams (
hipExternalSemaphoreSignalNodeParams/object) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:pointer to the graph node to create.
C signature
hipError_t hipGraphAddExternalSemaphoresSignalNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreSignalNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies, numDependencies, nodeParams)#
Creates a external semaphor signal node and adds it to a graph.
- Args:
- graph (
ihipGraph/object) – IN: instance of the graph to add the created node.
- pDependencies (
Pointer/object) – IN: const pointer to the dependencies on the memset execution node.
- numDependencies (
int) – IN: the number of the dependencies.
- nodeParams (
hipExternalSemaphoreSignalNodeParams/object) – IN: -pointer to the parameters.
- graph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:pointer to the graph node to create.
C signature
hipError_t hipGraphAddExternalSemaphoresSignalNode(hipGraphNode_t * pGraphNode, hipGraph_t graph, const hipGraphNode_t * pDependencies, size_t numDependencies, const hipExternalSemaphoreSignalNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams)#
Updates node parameters in the external semaphore signal node.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams/object) – IN: Pointer to the params to be set.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExternalSemaphoresSignalNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams)#
Updates node parameters in the external semaphore signal node.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams/object) – IN: Pointer to the params to be set.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExternalSemaphoresSignalNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams)#
Updates node parameters in the external semaphore wait node.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams/object) – IN: Pointer to the params to be set.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExternalSemaphoresWaitNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams)#
Updates node parameters in the external semaphore wait node.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams/object) – IN: Pointer to the params to be set.
- hNode (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExternalSemaphoresWaitNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExternalSemaphoresSignalNodeGetParams(hNode)#
Returns external semaphore signal node params.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipExternalSemaphoreSignalNodeParams:Pointer to params.
C signature
hipError_t hipGraphExternalSemaphoresSignalNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreSignalNodeParams * params_out)
- cuda.bindings.driver.cudaGraphExternalSemaphoresSignalNodeGetParams(hNode)#
Returns external semaphore signal node params.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipExternalSemaphoreSignalNodeParams:Pointer to params.
C signature
hipError_t hipGraphExternalSemaphoresSignalNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreSignalNodeParams * params_out)
- cuda.bindings.driver.cuGraphExternalSemaphoresWaitNodeGetParams(hNode)#
Returns external semaphore wait node params.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipExternalSemaphoreWaitNodeParams:Pointer to params.
C signature
hipError_t hipGraphExternalSemaphoresWaitNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreWaitNodeParams * params_out)
- cuda.bindings.driver.cudaGraphExternalSemaphoresWaitNodeGetParams(hNode)#
Returns external semaphore wait node params.
- Args:
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- hNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipExternalSemaphoreWaitNodeParams:Pointer to params.
C signature
hipError_t hipGraphExternalSemaphoresWaitNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreWaitNodeParams * params_out)
- cuda.bindings.driver.cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams)#
Updates node parameters in the external semaphore signal node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams/object) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams)#
Updates node parameters in the external semaphore signal node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreSignalNodeParams/object) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams)#
Updates node parameters in the external semaphore wait node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams/object) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
- cuda.bindings.driver.cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams)#
Updates node parameters in the external semaphore wait node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: The executable graph in which to set the specified node.
- hNode (
hipGraphNode/object) – IN: Node from the graph from which graphExec was instantiated.
- nodeParams (
hipExternalSemaphoreWaitNodeParams/object) – IN: Pointer to the params to be set.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams * nodeParams)
- cuda.bindings.driver.cuGraphMemcpyNodeGetParams(hNode)#
Gets a memcpy node’s parameters.
- Args:
- hNode (
hipGraphNode/object) – IN: instance of the node to get parameters from.
- hNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueHIP_MEMCPY3D:pointer to the parameters.
C signature
hipError_t hipDrvGraphMemcpyNodeGetParams(hipGraphNode_t hNode, HIP_MEMCPY3D * nodeParams)
- cuda.bindings.driver.cuGraphMemcpyNodeSetParams(hNode)#
Sets a memcpy node’s parameters.
- Args:
- hNode (
hipGraphNode/object) – IN: instance of the node to Set parameters for.
- hNode (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueHIP_MEMCPY3D:pointer to the parameters.
C signature
hipError_t hipDrvGraphMemcpyNodeSetParams(hipGraphNode_t hNode, const HIP_MEMCPY3D * nodeParams)
- cuda.bindings.driver.cuGraphAddMemsetNode(hGraph, dependencies, numDependencies, memsetParams, ctx)#
Creates a memset node and adds it to a graph.
- Args:
- hGraph (
ihipGraph/object) – IN: instance of graph to add the created node to.
- dependencies (
Pointer/object) – IN: const pointer to the dependencies on the memset execution node.
- numDependencies (
int) – IN: number of the dependencies.
- memsetParams (
hipMemsetParams/object) – IN: const pointer to the parameters for the memory set.
- ctx (
ihipCtx_t/object) – IN: cotext related to current device.
- hGraph (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:pointer to graph node to create.
C signature
hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, const hipMemsetParams * memsetParams, hipCtx_t ctx)
- cuda.bindings.driver.cuGraphAddMemFreeNode(hGraph, dependencies, numDependencies, dptr)#
Creates a memory free node and adds it to a graph
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipGraphNode:Pointer to the graph node to create and add to the graph
C signature
hipError_t hipDrvGraphAddMemFreeNode(hipGraphNode_t * phGraphNode, hipGraph_t hGraph, const hipGraphNode_t * dependencies, size_t numDependencies, hipDeviceptr_t dptr)
- cuda.bindings.driver.cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams, ctx)#
Sets the parameters for a memcpy node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- copyParams (
HIP_MEMCPY3D/object) – IN: const pointer to the memcpy node params.
- ctx (
ihipCtx_t/object) – IN: cotext related to current device.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDrvGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const HIP_MEMCPY3D * copyParams, hipCtx_t ctx)
- cuda.bindings.driver.cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams, ctx)#
Sets the parameters for a memset node in the given graphExec.
- Args:
- hGraphExec (
hipGraphExec/object) – IN: instance of the executable graph with the node.
- hNode (
hipGraphNode/object) – IN: instance of the node to set parameters to.
- memsetParams (
hipMemsetParams/object) – IN: pointer to the parameters.
- ctx (
ihipCtx_t/object) – IN: cotext related to current device.
- hGraphExec (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDrvGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipMemsetParams * memsetParams, hipCtx_t ctx)
- cuda.bindings.driver.cuMemAddressFree(devPtr, size)#
Frees an address range reservation made via hipMemAddressReserve
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemAddressFree(void * devPtr, size_t size)
- cuda.bindings.driver.cuMemAddressReserve(size, alignment, addr, flags)#
Reserves an address range
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
hipError_t hipMemAddressReserve(void ** ptr, size_t size, size_t alignment, void * addr, unsigned long long flags)
- cuda.bindings.driver.cuMemCreate(size, prop, flags)#
Creates a memory handle for the allocation described by the properties and given size
This API creates a memory allocation on the target device specified through the prop structure. The prop allocation type must be specified as either
hipMemAllocationTypePinnedorhipMemAllocationTypeUncached. The prop location type must be specified ashipMemLocationTypeDeviceorhipMemLocationTypeHost. Any other value results inhipErrorInvalidValue.- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- size (
int) – IN: size of the allocation.
- prop (
hipMemAllocationProp/object) – IN: properties of the allocation.
- flags (
int) – IN: currently unused, must be zero.
- size (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemGenericAllocationHandle:value of the returned handle.
C signature
hipError_t hipMemCreate(hipMemGenericAllocationHandle_t * handle, size_t size, const hipMemAllocationProp * prop, unsigned long long flags)
Exports an allocation to a requested shareable handle type.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- shareableHandle (
Pointer/object) – OUT: value of the returned handle.
- handle (
ihipMemGenericAllocationHandle/object) – IN: handle to share.
- handleType (
hipMemAllocationHandleType) – IN: type of the shareable handle.
- flags (
int) – IN: currently unused, must be zero.
- shareableHandle (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemExportToShareableHandle(void * shareableHandle, hipMemGenericAllocationHandle_t handle, hipMemAllocationHandleType handleType, unsigned long long flags)
- cuda.bindings.driver.cuMemGetAccess(location, ptr)#
Get the access flags set for the given location and ptr.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- location (
hipMemLocation/object) – IN: target location.
- ptr (
Pointer/object) – IN: address to check the access flags.
- location (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:flags for this location.
C signature
hipError_t hipMemGetAccess(unsigned long long * flags, const hipMemLocation * location, void * ptr)
- cuda.bindings.driver.cuMemGetAllocationGranularity(prop, option)#
Calculates either the minimal or recommended granularity.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- prop (
hipMemAllocationProp/object) – IN: location properties.
- option (
hipMemAllocationGranularity_flags) – IN: determines which granularity to return.
- prop (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedint:returned granularity.
C signature
hipError_t hipMemGetAllocationGranularity(size_t * granularity, const hipMemAllocationProp * prop, hipMemAllocationGranularity_flags option)
- cuda.bindings.driver.cuMemGetAllocationPropertiesFromHandle(handle)#
Retrieve the property structure of the given handle.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- handle (
ihipMemGenericAllocationHandle/object) – IN: handle to perform the query on.
- handle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedhipMemAllocationProp:properties of the given handle.
C signature
hipError_t hipMemGetAllocationPropertiesFromHandle(hipMemAllocationProp * prop, hipMemGenericAllocationHandle_t handle)
Imports an allocation from a requested shareable handle type.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- osHandle (
Pointer/object) – IN: shareable handle representing the memory allocation.
- shHandleType (
hipMemAllocationHandleType) – IN: handle type.
- osHandle (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemGenericAllocationHandle:returned value.
C signature
hipError_t hipMemImportFromShareableHandle(hipMemGenericAllocationHandle_t * handle, void * osHandle, hipMemAllocationHandleType shHandleType)
- cuda.bindings.driver.cuMemMap(ptr, size, offset, handle, flags)#
Maps an allocation handle to a reserved virtual address range.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- ptr (
Pointer/object) – IN: address where the memory will be mapped.
- size (
int) – IN: size of the mapping.
- offset (
int) – IN: offset into the memory, currently must be zero.
- handle (
ihipMemGenericAllocationHandle/object) – IN: memory allocation to be mapped.
- flags (
int) – IN: currently unused, must be zero.
- ptr (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemMap(void * ptr, size_t size, size_t offset, hipMemGenericAllocationHandle_t handle, unsigned long long flags)
- cuda.bindings.driver.cuMemMapArrayAsync(mapInfoList, count, stream)#
Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.
- Args:
- mapInfoList (
hipArrayMapInfo/object) – IN: list of hipArrayMapInfo.
- count (
int) – IN: number of hipArrayMapInfo in mapInfoList.
- stream (
ihipStream_t/object) – IN: stream identifier for the stream to use for map or unmap operations.
- mapInfoList (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemMapArrayAsync(hipArrayMapInfo * mapInfoList, unsigned int count, hipStream_t stream)
- cuda.bindings.driver.cuMemRelease(handle)#
Release a memory handle representing a memory allocation which was previously allocated through hipMemCreate.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- handle (
ihipMemGenericAllocationHandle/object) – IN: handle of the memory allocation.
- handle (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemRelease(hipMemGenericAllocationHandle_t handle)
- cuda.bindings.driver.cuMemRetainAllocationHandle(addr)#
Returns the allocation handle of the backing memory allocation given the address.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupportedihipMemGenericAllocationHandle:handle representing addr.
C signature
hipError_t hipMemRetainAllocationHandle(hipMemGenericAllocationHandle_t * handle, void * addr)
- cuda.bindings.driver.cuMemSetAccess(ptr, size, desc, count)#
Set the access flags for each location specified in desc for the given virtual address range.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemSetAccess(void * ptr, size_t size, const hipMemAccessDesc * desc, size_t count)
- cuda.bindings.driver.cuMemUnmap(ptr, size)#
Unmap memory allocation of a given address range.
- Note:
This API is implemented on Linux and is under development on Microsoft Windows.
- Args:
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorNotSupported
C signature
hipError_t hipMemUnmap(void * ptr, size_t size)
- cuda.bindings.driver.cuGraphicsMapResources(count, resources, stream)#
Maps a graphics resource for access.
- Args:
- count (
int) – IN: Number of resources to map.
- resources (
Pointer/object) – IN: Pointer of resources to map.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorInvalidResourceHandle
C signature
hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
- cuda.bindings.driver.cudaGraphicsMapResources(count, resources, stream)#
Maps a graphics resource for access.
- Args:
- count (
int) – IN: Number of resources to map.
- resources (
Pointer/object) – IN: Pointer of resources to map.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorInvalidResourceHandle
C signature
hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
- cuda.bindings.driver.cuGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)#
Get an array through which to access a subresource of a mapped graphics resource.
- Note:
In this API, the value of arrayIndex higher than zero is currently not supported.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipArray:Pointer of array through which a subresource of resource may be accessed.
C signature
hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t * array, hipGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel)
- cuda.bindings.driver.cudaGraphicsSubResourceGetMappedArray(resource, arrayIndex, mipLevel)#
Get an array through which to access a subresource of a mapped graphics resource.
- Note:
In this API, the value of arrayIndex higher than zero is currently not supported.
- Args:
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValuehipArray:Pointer of array through which a subresource of resource may be accessed.
C signature
hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t * array, hipGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel)
- cuda.bindings.driver.cuGraphicsResourceGetMappedPointer(resource)#
Gets device accessible address of a graphics resource.
- Args:
- resource (
_hipGraphicsResource/object) – IN: Mapped resource to access.
- resource (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Size of the buffer accessible from devPtr.
C signature
hipError_t hipGraphicsResourceGetMappedPointer(void ** devPtr, size_t * size, hipGraphicsResource_t resource)
- cuda.bindings.driver.cuGraphicsResourceGetMappedPointer_v2(resource)#
Gets device accessible address of a graphics resource.
- Args:
- resource (
_hipGraphicsResource/object) – IN: Mapped resource to access.
- resource (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Size of the buffer accessible from devPtr.
C signature
hipError_t hipGraphicsResourceGetMappedPointer(void ** devPtr, size_t * size, hipGraphicsResource_t resource)
- cuda.bindings.driver.cudaGraphicsResourceGetMappedPointer(resource)#
Gets device accessible address of a graphics resource.
- Args:
- resource (
_hipGraphicsResource/object) – IN: Mapped resource to access.
- resource (
- Returns:
A
tupleof size 3 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValueint:Size of the buffer accessible from devPtr.
C signature
hipError_t hipGraphicsResourceGetMappedPointer(void ** devPtr, size_t * size, hipGraphicsResource_t resource)
- cuda.bindings.driver.cuGraphicsUnmapResources(count, resources, stream)#
Unmaps graphics resources.
- Args:
- count (
int) – IN: Number of resources to unmap.
- resources (
Pointer/object) – IN: Pointer of resources to unmap.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorContextIsDestroyed
C signature
hipError_t hipGraphicsUnmapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
- cuda.bindings.driver.cudaGraphicsUnmapResources(count, resources, stream)#
Unmaps graphics resources.
- Args:
- count (
int) – IN: Number of resources to unmap.
- resources (
Pointer/object) – IN: Pointer of resources to unmap.
- stream (
ihipStream_t/object) – IN: Stream for synchronization.
- count (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue,hipErrorUnknown,hipErrorContextIsDestroyed
C signature
hipError_t hipGraphicsUnmapResources(int count, hipGraphicsResource_t * resources, hipStream_t stream)
- cuda.bindings.driver.cuGraphicsUnregisterResource(resource)#
Unregisters a graphics resource.
- Args:
- resource (
_hipGraphicsResource/object) – IN: Graphics resources to unregister.
- resource (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource)
- cuda.bindings.driver.cudaGraphicsUnregisterResource(resource)#
Unregisters a graphics resource.
- Args:
- resource (
_hipGraphicsResource/object) – IN: Graphics resources to unregister.
- resource (
- Returns:
hipError_t: py:obj:hipSuccess
C signature
hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource)
- cuda.bindings.driver.cudaCreateSurfaceObject(pResDesc)#
Create a surface object.
- Args:
- pResDesc (
hipResourceDesc/object) – IN: Pointer of suface object descriptor.
- pResDesc (
- Returns:
A
tupleof size 2 that contains (in that order):hipError_t: py:obj:hipSuccess,hipErrorInvalidValue__hip_surface:Pointer of surface object to be created.
C signature
hipError_t hipCreateSurfaceObject(hipSurfaceObject_t * pSurfObject, const hipResourceDesc * pResDesc)
- cuda.bindings.driver.cudaDestroySurfaceObject(surfaceObject)#
Destroy a surface object.
- Args:
- surfaceObject (
__hip_surface/object) – IN: Surface object to be destroyed.
- surfaceObject (
- Returns:
hipError_t: py:obj:hipSuccess,hipErrorInvalidValue
C signature
hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObject)
- cuda.bindings.driver.HIP_PYTHON_cublasDataType_t_HALLUCINATE: Any#
- class cuda.bindings.driver.cublasDataType_t#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaDataType_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaDataType#
Bases:
enum.IntEnum(No short description)
- cuda.bindings.driver.HIP_PYTHON_cudaDataType_t_HALLUCINATE: Any#
- class cuda.bindings.driver.cudaDataType_t#
Bases:
enum.IntEnum(No short description)