vpc_create_chn
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Description
Creates an image processing channel based on the configured channel attributes. The channel ID is specified by the user.
Prototype
- C Prototype
1hi_s32 hi_mpi_vpc_create_chn(hi_vpc_chn chn, const hi_vpc_chn_attr *attr);
- Python Function
1ret = acl.himpi.vpc_create_chn(chn, attr)
Parameters
|
Parameter |
Description |
|---|---|
|
chn |
Int, channel ID for image processing.
NOTE:
For the For the For the To view the computing power specifications of Ascend virtual instances in different scenarios, run the npu-smi info -t template-info command on the server where the AI processor is installed. |
|
attr |
Dict, dictionary of the attributes of an image processing channel. For details, see hi_vpc_chn_attr. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
Restrictions
- The channel ID of a single device must not be greater than the maximum channel ID on the
Atlas inference product . When the VPC (used internally) or VDEC function is used, the VPC channel ID is occupied. To prevent the conflict between the VPC channel IDs and the VDEC channel IDs, the value range of the VPC channel ID is [0, 255]. When the VDEC function is used, the VPC channel ID range used in the VDEC is [256, 511]. - If attr is left empty, the error code HI_ERR_VPC_NULL_PTR is returned.
- Before this API call, ensure that a channel has not been created yet or has been destroyed. Otherwise, a failure is returned.