V1.1.0及以上版本
- √:支持。
- x:不支持。
- 废弃:后续版本待废弃,具体废弃接口说明请参见废弃接口/返回码列表。
目录 |
接口 |
Atlas 200/300/500 推理产品 |
Atlas 训练系列产品 |
Atlas 推理系列产品 |
---|---|---|---|---|
系统配置 |
aclInit |
√ |
√ |
√ |
aclFinalize |
√ |
√ |
√ |
|
aclrtGetVersion |
√ |
√ |
√ |
|
aclSetCompileopt |
√ |
√ |
√ |
|
aclGetRecentErrMsg |
√ |
√ |
√ |
|
aclAppLog |
√ |
√ |
√ |
|
aclDataTypeSize |
√ |
√ |
√ |
|
aclFloat16ToFloat |
√ |
√ |
√ |
|
aclFloatToFloat16 |
√ |
√ |
√ |
|
aclGenGraphAndDumpForOp |
√ |
√ |
√ |
|
运行时管理>Device管理 |
aclrtSetDevice |
√ |
√ |
√ |
aclrtResetDevice |
√ |
√ |
√ |
|
aclrtGetDevice |
√ |
√ |
√ |
|
aclrtGetRunMode |
√ |
√ |
√ |
|
aclrtSetTsDevice |
√ |
√ |
√ |
|
aclrtGetDeviceCount |
√ |
√ |
√ |
|
aclrtSynchronizeDevice |
√ |
√ |
√ |
|
aclrtGetSocName |
√ |
√ |
√ |
|
运行时管理>Context管理 |
aclrtCreateContext |
√ |
√ |
√ |
aclrtDestroyContext |
√ |
√ |
√ |
|
aclrtSetCurrentContext |
√ |
√ |
√ |
|
aclrtGetCurrentContext |
√ |
√ |
√ |
|
运行时管理>Stream管理 |
aclrtCreateStream |
√ |
√ |
√ |
aclrtDestroyStream |
√ |
√ |
√ |
|
aclrtSynchronizeStream |
√ |
√ |
√ |
|
运行时管理>Event管理 |
aclrtCreateEvent |
√ |
√ |
√ |
aclrtCreateEventWithFlag |
√ |
√ |
√ |
|
aclrtDestroyEvent |
√ |
√ |
√ |
|
aclrtRecordEvent |
√ |
√ |
√ |
|
aclrtResetEvent |
√ |
√ |
√ |
|
aclrtQueryEvent |
废弃 |
废弃 |
废弃 |
|
aclrtQueryEventStatus |
√ |
√ |
√ |
|
aclrtQueryEventWaitStatus |
√ |
√ |
√ |
|
aclrtSynchronizeEvent |
√ |
√ |
√ |
|
aclrtEventElapsedTime |
√ |
√ |
√ |
|
aclrtStreamWaitEvent |
√ |
√ |
√ |
|
aclrtSetOpWaitTimeout |
√ |
√ |
x |
|
运行时管理>内存管理 |
aclrtMalloc |
√ |
√ |
√ |
aclrtMallocCached |
√ |
√ |
√ |
|
aclrtMemFlush |
√ |
√ |
√ |
|
aclrtMemInvalidate |
√ |
√ |
√ |
|
aclrtFree |
√ |
√ |
√ |
|
aclrtMallocHost |
√ |
√ |
√ |
|
aclrtFreeHost |
√ |
√ |
√ |
|
aclrtMemset |
√ |
√ |
√ |
|
aclrtMemsetAsync |
√ |
√ |
√ |
|
aclrtMemcpy |
√ |
√ |
√ |
|
aclrtMemcpyAsync |
√ |
√ |
√ |
|
aclrtGetMemInfo |
√ |
√ |
√ |
|
aclrtDeviceCanAccessPeer |
x |
√ |
√ |
|
aclrtDeviceEnablePeerAccess |
x |
√ |
√ |
|
aclrtDeviceDisablePeerAccess |
x |
√ |
√ |
|
aclrtMemcpy2d |
√ |
√ |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
aclrtMemcpy2dAsync |
√ |
√ |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
运行时管理>执行控制 |
aclrtSubscribeReport |
√ |
√ |
√ |
aclrtLaunchCallback |
√ |
√ |
√ |
|
aclrtProcessReport |
√ |
√ |
√ |
|
aclrtUnSubscribeReport |
√ |
√ |
√ |
|
运行时管理>异常处理 |
aclrtSetExceptionInfoCallback |
√ |
√ |
√ |
aclrtGetTaskIdFromExceptionInfo |
√ |
√ |
√ |
|
aclrtGetStreamIdFromExceptionInfo |
√ |
√ |
√ |
|
aclrtGetThreadIdFromExceptionInfo |
√ |
√ |
√ |
|
aclrtGetDeviceIdFromExceptionInfo |
√ |
√ |
√ |
|
运行时管理>算力Group查询与设置 |
aclrtSetGroup |
x |
x |
x |
aclrtGetGroupCount |
x |
x |
x |
|
aclrtCreateGroupInfo |
x |
x |
x |
|
aclrtDestroyGroupInfo |
x |
x |
x |
|
aclrtGetAllGroupInfo |
x |
x |
x |
|
aclrtGetGroupInfoDetail |
x |
x |
x |
|
模型推理>模型加载 |
aclmdlLoadFromFile |
√ |
√ |
√ |
aclmdlLoadFromMem |
√ |
√ |
√ |
|
aclmdlLoadFromFileWithMem |
√ |
√ |
√ |
|
aclmdlLoadFromMemWithMem |
√ |
√ |
√ |
|
aclmdlLoadFromFileWithQ |
x |
x |
x |
|
aclmdlLoadFromMemWithQ |
x |
x |
x |
|
aclmdlSetConfigOpt |
√ |
√ |
√ |
|
aclmdlLoadWithConfig |
√ |
√ |
√ |
|
模型推理>模型执行 |
aclmdlExecute |
√ |
√ |
√ |
aclmdlExecuteAsync |
√ |
√ |
√ |
|
aclmdlUnload |
√ |
√ |
√ |
|
aclmdlQuerySize |
√ |
√ |
√ |
|
aclmdlQuerySizeFromMem |
√ |
√ |
√ |
|
aclmdlSetDynamicBatchSize |
√ |
√ |
√ |
|
aclmdlSetDynamicHWSize |
√ |
√ |
√ |
|
aclmdlSetInputAIPP |
√ |
x |
√ |
|
aclmdlGetFirstAippInfo |
√ |
x |
√ |
|
aclmdlGetAippType |
√ |
x |
√ |
|
aclmdlSetAIPPByInputIndex |
√ |
x |
√ |
|
aclmdlSetInputDynamicDims |
√ |
√ |
√ |
|
aclmdlCreateAndGetOpDesc |
√ |
√ |
√ |
|
aclmdlInitDump |
√ |
√ |
√ |
|
aclmdlSetDump |
√ |
√ |
√ |
|
aclmdlFinalizeDump |
√ |
√ |
√ |
|
单算子执行>单算子模型执行 |
aclopSetModelDir |
√ |
√ |
√ |
aclopLoad |
√ |
√ |
√ |
|
aclopSetCompileFlag |
x |
√ |
√ |
|
aclopCompile |
x |
√ |
√ |
|
aclopExecute |
废弃 |
废弃 |
废弃 |
|
aclopExecuteV2 |
√ |
√ |
√ |
|
aclopCompileAndExecute |
√ |
√ |
√ |
|
aclopExecWithHandle |
√ |
√ |
√ |
|
aclopInferShape |
√ |
√ |
√ |
|
aclopRegisterCompileFunc |
√ |
√ |
√ |
|
aclopUnregisterCompileFunc |
√ |
√ |
√ |
|
aclopCreateKernel |
√ |
√ |
√ |
|
aclopSetKernelArgs |
√ |
√ |
√ |
|
aclopSetKernelWorkspaceSizes |
√ |
√ |
√ |
|
aclopUpdateParams |
√ |
√ |
√ |
|
单算子执行>CBLAS接口 |
aclblasGemvEx |
√ |
√ |
√ |
aclblasCreateHandleForGemvEx |
√ |
√ |
√ |
|
aclblasHgemv |
√ |
√ |
√ |
|
aclblasCreateHandleForHgemv |
√ |
√ |
√ |
|
aclblasS8gemv |
√ |
√ |
√ |
|
aclblasCreateHandleForS8gemv |
√ |
√ |
√ |
|
aclblasGemmEx |
√ |
√ |
√ |
|
aclblasCreateHandleForGemmEx |
√ |
√ |
√ |
|
aclblasHgemm |
√ |
√ |
√ |
|
aclblasCreateHandleForHgemm |
√ |
√ |
√ |
|
aclblasS8gemm |
√ |
√ |
√ |
|
aclblasCreateHandleForS8gemm |
√ |
√ |
√ |
|
aclopCast |
√ |
√ |
√ |
|
aclopCreateHandleForCast |
√ |
√ |
√ |
|
媒体数据处理V1>内存申请与释放 |
acldvppMalloc |
√ |
√ |
√ |
acldvppFree |
√ |
√ |
√ |
|
媒体数据处理V1>通道创建与释放 |
acldvppCreateChannel |
√ |
√ |
√ |
acldvppDestroyChannel |
√ |
√ |
√ |
|
aclvdecCreateChannel |
√ |
√ |
√ |
|
aclvdecDestroyChannel |
√ |
√ |
√ |
|
aclvencCreateChannel |
√ |
√ |
√ |
|
aclvencDestroyChannel |
√ |
√ |
√ |
|
媒体数据处理V1>VPC功能 |
acldvppVpcResizeAsync |
√ |
√ |
√ |
acldvppVpcCropAsync |
√ |
√ |
√ |
|
acldvppVpcCropResizeAsync |
√ |
√ |
√ |
|
acldvppVpcBatchCropAsync |
√ |
√ |
√ |
|
acldvppVpcBatchCropResizeAsync |
√ |
√ |
√ |
|
acldvppVpcCropAndPasteAsync |
√ |
√ |
√ |
|
acldvppVpcCropResizePasteAsync |
√ |
√ |
√ |
|
acldvppVpcBatchCropAndPasteAsync |
√ |
√ |
√ |
|
acldvppVpcBatchCropResizePasteAsync |
√ |
√ |
√ |
|
acldvppVpcBatchCropResizeMakeBorderAsync |
x |
x |
√ |
|
acldvppVpcConvertColorAsync |
x |
x |
√ |
|
acldvppVpcPyrDownAsync |
x |
x |
√ |
|
acldvppVpcEqualizeHistAsync |
x |
x |
√ |
|
acldvppVpcMakeBorderAsync |
x |
x |
√ |
|
acldvppVpcCalcHistAsync |
x |
x |
√ |
|
媒体数据处理V1>JPEGD功能 |
acldvppJpegDecodeAsync |
√ |
√ |
√ |
acldvppJpegGetImageInfo |
√ |
√ |
√ |
|
acldvppJpegGetImageInfoV2 |
√ |
√ |
√ |
|
acldvppJpegPredictDecSize |
√ |
√ |
√ |
|
媒体数据处理V1>JPEGE功能 |
acldvppJpegEncodeAsync |
√ |
√ |
√ |
acldvppJpegPredictEncSize |
√ |
√ |
√ |
|
媒体数据处理V1>PNGD功能 |
acldvppPngDecodeAsync |
√ |
√ |
x |
acldvppPngGetImageInfo |
√ |
√ |
x |
|
acldvppPngPredictDecSize |
√ |
√ |
x |
|
媒体数据处理V1>VDEC功能 |
aclvdecSendFrame |
√ |
√ |
√ |
aclvdecSendSkippedFrame |
√ |
√ |
√ |
|
aclvdecCallback |
√ |
√ |
√ |
|
媒体数据处理V1>VENC功能 |
aclvencSendFrame |
√ |
x |
√ |
aclvencCallback |
√ |
x |
√ |
|
媒体数据处理V2>公共接口 |
hi_mpi_sys_init |
x |
x |
√ |
hi_mpi_sys_exit |
x |
x |
√ |
|
hi_mpi_dvpp_malloc |
x |
x |
√ |
|
hi_mpi_dvpp_free |
x |
x |
√ |
|
hi_mpi_dvpp_get_image_info |
x |
x |
√ |
|
hi_mpi_dvpp_get_version |
x |
x |
√ |
|
hi_mpi_sys_create_epoll |
x |
x |
√ |
|
hi_mpi_sys_ctl_epoll |
x |
x |
√ |
|
hi_mpi_sys_wait_epoll |
x |
x |
√ |
|
hi_mpi_sys_close_epoll |
x |
x |
√ |
|
hi_mpi_sys_set_chn_csc_matrix |
x |
x |
√ |
|
hi_mpi_sys_get_chn_csc_matrix |
x |
x |
√ |
|
媒体数据处理V2>VPC功能 |
hi_mpi_vpc_create_chn |
x |
x |
√ |
hi_mpi_vpc_destroy_chn |
x |
x |
√ |
|
hi_mpi_vpc_resize |
x |
x |
√ |
|
hi_mpi_vpc_crop |
x |
x |
√ |
|
hi_mpi_vpc_crop_resize |
x |
x |
√ |
|
hi_mpi_vpc_crop_resize_paste |
x |
x |
√ |
|
hi_mpi_vpc_convert_color |
x |
x |
√ |
|
hi_mpi_vpc_convert_color_to_yuv420 |
x |
x |
√ |
|
hi_mpi_vpc_copy_make_border |
x |
x |
√ |
|
hi_mpi_vpc_pyrdown |
x |
x |
√ |
|
hi_mpi_vpc_calc_hist |
x |
x |
√ |
|
hi_mpi_vpc_equalize_hist |
x |
x |
√ |
|
hi_mpi_vpc_crop_resize_make_border |
x |
x |
√ |
|
hi_mpi_vpc_batch_crop_resize_paste |
x |
x |
√ |
|
hi_mpi_vpc_batch_crop_resize_make_border |
x |
x |
√ |
|
hi_mpi_vpc_get_process_result |
x |
x |
√ |
|
hi_mpi_vpc_sys_create_chn |
x |
x |
√ |
|
媒体数据处理V2>VDEC功能/JPEGD功能 |
hi_mpi_vdec_create_chn |
x |
x |
√ |
hi_mpi_vdec_destroy_chn |
x |
x |
√ |
|
hi_mpi_vdec_get_chn_attr |
x |
x |
√ |
|
hi_mpi_vdec_set_chn_attr |
x |
x |
x |
|
hi_mpi_vdec_start_recv_stream |
x |
x |
√ |
|
hi_mpi_vdec_stop_recv_stream |
x |
x |
√ |
|
hi_mpi_vdec_query_status |
x |
x |
√ |
|
hi_mpi_vdec_reset_chn |
x |
x |
√ |
|
hi_mpi_vdec_set_chn_param |
x |
x |
√ |
|
hi_mpi_vdec_get_chn_param |
x |
x |
√ |
|
hi_mpi_vdec_set_protocol_param |
x |
x |
x |
|
hi_mpi_vdec_get_protocol_param |
x |
x |
√ |
|
hi_mpi_vdec_send_stream |
x |
x |
√ |
|
hi_mpi_vdec_get_frame |
x |
x |
√ |
|
hi_mpi_vdec_release_frame |
x |
x |
√ |
|
hi_mpi_vdec_get_fd |
x |
x |
√ |
|
hi_mpi_vdec_close_fd |
x |
x |
√ |
|
hi_vdec_get_pic_buf_size |
x |
x |
√ |
|
hi_vdec_get_tmv_buf_size |
x |
x |
√ |
|
媒体数据处理V2>VENC功能/JPEGE功能 |
hi_mpi_venc_create_chn |
x |
x |
√ |
hi_mpi_venc_destroy_chn |
x |
x |
√ |
|
hi_mpi_venc_start_chn |
x |
x |
√ |
|
hi_mpi_venc_stop_chn |
x |
x |
√ |
|
hi_mpi_venc_query_status |
x |
x |
√ |
|
hi_mpi_venc_get_stream |
x |
x |
√ |
|
hi_mpi_venc_release_stream |
x |
x |
√ |
|
hi_mpi_venc_send_frame |
x |
x |
√ |
|
hi_mpi_venc_set_mod_param |
x |
x |
√ |
|
hi_mpi_venc_get_mod_param |
x |
x |
√ |
|
hi_mpi_venc_request_idr |
x |
x |
√ |
|
hi_mpi_venc_get_fd |
x |
x |
√ |
|
hi_mpi_venc_close_fd |
x |
x |
x |
|
hi_mpi_venc_set_jpeg_param |
x |
x |
√ |
|
hi_mpi_venc_get_jpeg_param |
x |
x |
√ |
|
hi_mpi_venc_set_chn_param |
x |
x |
√ |
|
hi_mpi_venc_set_scene_mode |
x |
x |
√ |
|
hi_mpi_venc_set_rc_param |
x |
x |
√ |
|
hi_mpi_venc_get_rc_param |
x |
x |
√ |
|
hi_mpi_venc_set_jpeg_huffman_param |
x |
x |
√ |
|
hi_mpi_venc_get_jpeg_huffman_param |
x |
x |
√ |
|
hi_mpi_venc_compact_jpeg_tables |
x |
x |
√ |
|
媒体数据处理V2>PNGD功能 |
hi_mpi_pngd_create_chn |
x |
x |
√ |
hi_mpi_pngd_destroy_chn |
x |
x |
√ |
|
hi_mpi_pngd_send_stream |
x |
x |
√ |
|
hi_mpi_pngd_get_image_data |
x |
x |
√ |
|
hi_mpi_png_get_image_info |
x |
x |
√ |
|
Profiling数据采集>Profiling AscendCL API(通过Profiling AscendCL API采集并落盘性能数据) |
aclprofInit |
√ |
√ |
√ |
aclprofStart |
√ |
√ |
√ |
|
aclprofStop |
√ |
√ |
√ |
|
aclprofFinalize |
√ |
√ |
√ |
|
Profiling AscendCL API for Extension(Profiling AscendCL API扩展接口) |
aclprofCreateStamp |
√ |
√ |
√ |
aclprofSetStampTraceMessage |
√ |
√ |
√ |
|
aclprofMark |
√ |
√ |
√ |
|
aclprofPush |
√ |
√ |
√ |
|
aclprofPop |
√ |
√ |
√ |
|
aclprofRangeStart |
√ |
√ |
√ |
|
aclprofRangeStop |
√ |
√ |
√ |
|
aclprofDestroyStamp |
√ |
√ |
√ |
|
Profiling AscendCL API for Subscription(订阅算子信息的Profiling AscendCL API) |
aclprofModelSubscribe |
√ |
√ |
√ |
aclprofModelUnSubscribe |
√ |
√ |
√ |
|
aclprofGetOpDescSize |
√ |
√ |
√ |
|
aclprofGetOpNum |
√ |
√ |
√ |
|
aclprofGetOpTypeLen |
√ |
√ |
√ |
|
aclprofGetOpType |
√ |
√ |
√ |
|
aclprofGetOpNameLen |
√ |
√ |
√ |
|
aclprofGetOpName |
√ |
√ |
√ |
|
aclprofGetOpStart |
√ |
√ |
√ |
|
aclprofGetOpEnd |
√ |
√ |
√ |
|
aclprofGetOpDuration |
√ |
√ |
√ |
|
aclprofGetModelId |
√ |
√ |
√ |
|
Profiling AscendCL API(PyTorch场景标记迭代时间) |
aclprOFGETSTEPTIMESTAMp |
√ |
√ |
√ |
数据传输>Tensor数据传输 |
acltdtCreateChannel |
x |
√ |
x |
acltdtSendTensor |
x |
√ |
x |
|
acltdtReceiveTensor |
x |
√ |
x |
|
acltdtStopChannel |
x |
√ |
x |
|
acltdtDestroyChannel |
x |
√ |
x |
|
acltdtCreateChannelWithCapacity |
x |
√ |
x |
|
acltdtQueryChannelSize |
x |
√ |
x |
|
数据传输>共享队列管理 |
acltdtCreateQueue |
√ |
√ |
√ |
acltdtDestroyQueue |
√ |
√ |
√ |
|
acltdtEnqueueData |
√ |
√ |
√ |
|
acltdtDequeueData |
√ |
√ |
√ |
|
acltdtEnqueue |
x |
x |
x |
|
acltdtDequeue |
x |
x |
x |
|
acltdtBindQueueRoutes |
√ |
√ |
√ |
|
acltdtUnbindQueueRoutes |
√ |
√ |
√ |
|
acltdtQueryQueueRoutes |
√ |
√ |
√ |
|
acltdtGrantQueue |
x |
x |
x |
|
acltdtAttachQueue |
x |
x |
x |
|
数据传输>共享Buffer管理 |
acltdtAllocBuf |
√ |
√ |
√ |
acltdtFreeBuf |
√ |
√ |
√ |
|
acltdtGetBufData |
√ |
√ |
√ |
|
特征向量检索 |
aclfvInit |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
aclfvRelease |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
aclfvRepoAdd |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
aclfvRepoDel |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
aclfvDel |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
aclfvModify |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |
|
aclfvSearch |
x |
x |
仅Atlas 推理系列加速卡产品支持该接口,Atlas 推理系列加速模块产品不支持该接口。 |