hi_mpi_vb_get_block

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Obtains a memory block.

Prototype

hi_vb_blk hi_mpi_vb_get_block(hi_vb_pool pool, hi_u64 blk_size, const hi_char *mmz_name)

Parameters

Parameter

Input/Output

Description

pool

Input

Memory pool ID, which is returned by the hi_mpi_vb_create_pool API.

blk_size

Input

Size of the memory block.

mmz_name

Input

Name of the memory pool. When pool is set to -1, the memory block can be obtained based on the memory name.

Returns

  • Returns the memory block handle if the call is successful.
  • Returns HI_VB_INVALID_HANDLE that indicates an invalid memory block handle if the call fails.