cuda.bindings._v2.driver.mem_batch_decompress_async#
- cuda.bindings._v2.driver.mem_batch_decompress_async(
- params_array,
- size_t count,
- unsigned int flags,
- intptr_t stream,
Submit a batch of
countindependent decompression operations.Each of the
countdecompression operations is described by a single entry in theparams_arrayarray. Once the batch has been submitted, the function will return, and decompression will happen asynchronously w.r.t. the CPU. To the work completion tracking mechanisms in the CUDA driver, the batch will be considered a single unit of work and processed according to stream semantics, i.e., it is not possible to query the completion of individual decompression operations within a batch. The memory pointed to by each ofCUmemDecompressParams.src,CUmemDecompressParams.dst, andCUmemDecompressParams.dstActBytes, must be capable of usage with the hardware decompress feature. That is, for each of said pointers, the pointer attributeCU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLEshould give a non-zero value. To ensure this, the memory backing the pointers should have been allocated using one of the following CUDA memory allocators:.cuMemAlloc().mem_create()with the usage flagCU_MEM_CREATE_USAGE_HW_DECOMPRESS.mem_alloc_from_pool_async()from a pool that was created with the usage flagCU_MEM_POOL_CREATE_USAGE_HW_DECOMPRESSAdditionally,CUmemDecompressParams.src,CUmemDecompressParams.dst, andCUmemDecompressParams.dstActBytes, must all be accessible from the device associated with the context wherestreamwas created. For information on how to ensure this, see the documentation for the allocator of interest.
- Parameters:
params_array (intptr_t) – The array of structures describing the independent decompression operations.
count (size_t) – The number of entries in
params_arrayarray.flags (unsigned int) – Must be 0.
stream (intptr_t) – The stream where the work will be enqueued.
- Returns:
- The index into
params_arrayof the decompression operation for which the error returned by this function pertains to. If
indexis SIZE_MAX and the value returned is notCUDA_SUCCESS, then the error returned by this function should be considered a general error that does not pertain to a particular decompression operation. May beNULL, in which case, no index will be recorded in the event of error.
- The index into
- Return type:
size_t
See also
cuMemBatchDecompressAsync