vpc_create_chn
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Function Usage
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)
Parameter Description
|
Parameter |
Description |
|---|---|
|
chn |
Int, channel ID for image processing.
NOTE:
For Ascend virtual instances on the For Ascend virtual instances on the For Ascend virtual instances on the You can run the npu-smi info -t template-info command on the server where Ascend AI Processor is installed to view the computing power specifications of the Ascend virtual instance in each scenario. |
|
attr |
Dict, dictionary of the attributes of an image processing channel. For details, see hi_vpc_chn_attr. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
- The channel ID of a single device must not exceed the maximum channel ID on
Atlas inference products . 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.