跳到主要内容

接口列表,Atlas 200/500 A2推理产品

接口列表,Atlas 200/500 A2推理产品

针对Atlas 200/500 A2推理产品,在V1.5.0版本第一次发布。

Atlas 200/500 A2推理产品对AscendCL接口的支持情况如下所示,各标识的含义如下:

一级节点

二级节点

三级节点

Atlas 200/500 A2推理产品

系统配置

aclInit

  

aclFinalize

  

aclrtGetVersion

  

aclSetCompileopt

  

aclGetCompileopt

  

aclGetCompileoptSize

  

aclrtGetSocName

  

aclGetRecentErrMsg

  

aclrtSetDeviceSatMode

  

x

aclrtGetDeviceSatMode

  

x

Device管理

该章节下的所有接口

  

Context管理

该章节下的所有接口

  

算力Group查询与设置

该章节下的所有接口

  

x

Stream管理

aclrtCreateStream

  

aclrtCreateStreamWithConfig

  

aclrtDestroyStream

  

aclrtDestroyStreamForce

  

aclrtSetStreamOverflowSwitch

  

x

aclrtGetStreamOverflowSwitch

  

x

aclrtSetStreamFailureMode

  

同步等待

aclrtCreateEvent

  

aclrtCreateEventWithFlag

  

aclrtDestroyEvent

  

aclrtRecordEvent

  

aclrtResetEvent

  

aclrtQueryEvent

  

废弃

aclrtQueryEventStatus

  

aclrtQueryEventWaitStatus

  

aclrtSynchronizeEvent

  

aclrtSynchronizeEventWithTimeout

  

aclrtEventElapsedTime

  

aclrtStreamWaitEvent

  

aclrtSynchronizeDevice

  

aclrtSynchronizeStream

  

aclrtSubscribeReport

  

aclrtLaunchCallback

  

aclrtProcessReport

  

aclrtUnSubscribeReport

  

aclrtSetExceptionInfoCallback

  

aclrtGetTaskIdFromExceptionInfo

  

aclrtGetStreamIdFromExceptionInfo

  

aclrtGetThreadIdFromExceptionInfo

  

aclrtGetDeviceIdFromExceptionInfo

  

aclrtGetErrorCodeFromExceptionInfo

  

aclrtSetOpWaitTimeout

  

内存管理

aclrtMalloc

  

aclrtMallocCached

  

aclrtMemFlush

  

aclrtMemInvalidate

  

aclrtFree

  

aclrtMallocHost

  

aclrtFreeHost

  

aclrtMemset

  

aclrtMemsetAsync

  

aclrtMemcpy

  

aclrtMemcpyAsync

  

aclrtGetMemInfo

  

aclrtDeviceCanAccessPeer

  

x

aclrtDeviceEnablePeerAccess

  

x

aclrtDeviceDisablePeerAccess

  

x

aclrtMemcpy2d

  

RC形态不支持调用本接口。

aclrtMemcpy2dAsync

  

RC形态不支持调用本接口。

模型加载与执行

该章节下的所有接口

  

算子编译

该章节下的所有接口

  

算子加载与执行

aclopSetModelDir

  

aclopLoad

  

aclopExecute

  

废弃

aclopExecuteV2

  

aclopCompileAndExecute

  

aclopCompileAndExecuteV2

  

aclopExecWithHandle

  

aclopInferShape

  

aclrtSetOpExecuteTimeOut

  

CBLAS接口

该章节下的所有接口

  

媒体数据处理V1

内存申请与释放

acldvppMalloc

acldvppFree

通道创建与释放

acldvppCreateChannel

acldvppDestroyChannel

aclvdecCreateChannel

aclvdecDestroyChannel

aclvencCreateChannel

aclvencDestroyChannel

VPC功能

acldvppVpcResizeAsync

acldvppVpcCropAsync

acldvppVpcCropResizeAsync

acldvppVpcBatchCropAsync

acldvppVpcBatchCropResizeAsync

acldvppVpcCropAndPasteAsync

acldvppVpcCropResizePasteAsync

acldvppVpcBatchCropAndPasteAsync

acldvppVpcBatchCropResizePasteAsync

acldvppVpcBatchCropResizeMakeBorderAsync

acldvppVpcConvertColorAsync

acldvppVpcPyrDownAsync

x

acldvppVpcEqualizeHistAsync

acldvppVpcMakeBorderAsync

acldvppVpcCalcHistAsync

JPEGD功能

acldvppJpegDecodeAsync

acldvppJpegGetImageInfo

acldvppJpegGetImageInfoV2

acldvppJpegPredictDecSize

JPEGE功能

acldvppJpegEncodeAsync

acldvppJpegPredictEncSize

PNGD功能

acldvppPngDecodeAsync

acldvppPngGetImageInfo

acldvppPngPredictDecSize

VDEC功能

aclvdecSendFrame

aclvdecSendSkippedFrame

aclvdecCallback

VENC功能

aclvencSendFrame

aclvencCallback

媒体数据处理V2

公共接口

hi_mpi_sys_init

hi_mpi_sys_exit

hi_mpi_dvpp_malloc

hi_mpi_dvpp_free

hi_mpi_dvpp_get_image_info

hi_mpi_dvpp_get_version

hi_mpi_sys_create_epoll

hi_mpi_sys_ctl_epoll

hi_mpi_sys_wait_epoll

hi_mpi_sys_close_epoll

hi_mpi_sys_set_chn_csc_matrix

hi_mpi_sys_get_chn_csc_matrix

hi_mpi_sys_get_image_align_info

hi_mpi_sys_bind

hi_mpi_sys_unbind

AI音频输入/AO音频输出

该章节下的所有接口

AENC音频编码/ADEC音频解码

该章节下的所有接口

音量调节

ISP系统控制及3A算法注册

该章节下的命令字

该章节下的所有接口

MIPI Rx ioctl命令字

该章节下的命令字

VI视频输入功能

该章节下的所有接口

Region区域管理

该章节下的所有接口

VPSS视频处理功能

该章节下的所有接口

VO视频输出功能

该章节下的所有接口

TDE图形绘制功能

该章节下的所有接口

HIFB叠加图形层管理功能

该章节下的所有接口

HDMI外设

该章节下的所有接口

VPC功能

hi_mpi_vpc_create_chn

hi_mpi_vpc_destroy_chn

hi_mpi_vpc_resize

hi_mpi_vpc_crop

hi_mpi_vpc_crop_resize

hi_mpi_vpc_crop_resize_paste

hi_mpi_vpc_convert_color

hi_mpi_vpc_convert_color_to_yuv420

hi_mpi_vpc_copy_make_border

hi_mpi_vpc_pyrdown

hi_mpi_vpc_calc_hist

hi_mpi_vpc_equalize_hist

hi_mpi_vpc_crop_resize_make_border

hi_mpi_vpc_batch_crop_resize_paste

hi_mpi_vpc_batch_crop_resize_make_border

hi_mpi_vpc_get_process_result

hi_mpi_vpc_sys_create_chn

hi_mpi_vpc_set_roundview_stitching_param

x

hi_mpi_vpc_get_roundview_stitching_param

x

hi_mpi_vpc_roundview_stitching

x

hi_vpc_crop_resize_resize_paste

x

hi_mpi_vpc_set_chn_workspace

hi_mpi_vpc_get_lut_mem_size

hi_mpi_vpc_get_affine_lut

hi_mpi_vpc_get_perspective_lut

hi_mpi_vpc_get_remap_lut

hi_mpi_vpc_lut_remap

hi_mpi_vpc_median_blur

hi_mpi_vpc_erode

hi_mpi_vpc_dilate

hi_mpi_vpc_blur

hi_mpi_vpc_gaussian_blur

hi_mpi_vpc_filter2d

hi_mpi_vpc_rotate

hi_mpi_vpc_draw_mosaic

hi_mpi_vpc_draw_cover

hi_mpi_vpc_draw_line

hi_mpi_vpc_draw_osd

hi_mpi_vpc_get_affine_transform

hi_mpi_vpc_get_rotation_matrix

hi_mpi_vpc_warp_affine

hi_mpi_vpc_flip

VDEC功能/JPEGD功能

hi_mpi_vdec_create_chn

hi_mpi_vdec_destroy_chn

hi_mpi_vdec_get_chn_attr

hi_mpi_vdec_set_chn_attr

hi_mpi_vdec_start_recv_stream

hi_mpi_vdec_stop_recv_stream

hi_mpi_vdec_query_status

hi_mpi_vdec_reset_chn

hi_mpi_vdec_set_chn_param

hi_mpi_vdec_get_chn_param

hi_mpi_vdec_set_protocol_param

x

hi_mpi_vdec_get_protocol_param

hi_mpi_vdec_send_stream

hi_mpi_vdec_get_frame

hi_mpi_vdec_release_frame

hi_mpi_vdec_get_fd

hi_mpi_vdec_close_fd

x

hi_vdec_get_pic_buf_size

hi_vdec_get_tmv_buf_size

hi_mpi_vdec_set_jpegd_precision_mode

hi_mpi_vdec_get_jpegd_output_info

VENC功能/JPEGE功能

hi_mpi_venc_create_chn

hi_mpi_venc_destroy_chn

hi_mpi_venc_start_chn

hi_mpi_venc_stop_chn

hi_mpi_venc_query_status

hi_mpi_venc_get_stream

hi_mpi_venc_release_stream

hi_mpi_venc_send_frame

hi_mpi_venc_set_mod_param

hi_mpi_venc_get_mod_param

hi_mpi_venc_request_idr

hi_mpi_venc_get_fd

hi_mpi_venc_close_fd

x

hi_mpi_venc_set_jpeg_param

hi_mpi_venc_get_jpeg_param

hi_mpi_venc_set_chn_param

hi_mpi_venc_set_scene_mode

hi_mpi_venc_get_scene_mode

hi_mpi_venc_set_rc_param

hi_mpi_venc_get_rc_param

hi_mpi_venc_set_jpeg_huffman_param

hi_mpi_venc_get_jpeg_huffman_param

hi_mpi_venc_compact_jpeg_tables

hi_mpi_venc_send_jpege_frame

hi_mpi_venc_get_jpege_predicted_size

hi_mpi_venc_set_roi_attr

hi_mpi_venc_get_roi_attr

hi_mpi_venc_set_ref_param

hi_mpi_venc_get_ref_param

hi_mpi_venc_set_h264_vui

hi_mpi_venc_get_h264_vui

hi_mpi_venc_set_h265_vui

hi_mpi_venc_get_h265_vui

hi_mpi_venc_set_cu_pred

hi_mpi_venc_get_cu_pred

hi_mpi_venc_set_intra_refresh

hi_mpi_venc_get_intra_refresh

PNGD功能

hi_mpi_pngd_create_chn

hi_mpi_pngd_destroy_chn

hi_mpi_pngd_send_stream

hi_mpi_pngd_get_image_data

hi_mpi_png_get_image_info

日志管理

aclAppLog

  

特征向量检索

该章节下的所有接口

  

x

Profiling数据采集

该章节下的所有接口

  

Tensor数据传输接口

该章节下的所有接口

  

x

数据类型转换及获取数据大小

aclDataTypeSize

  

aclFloat16ToFloat

  

aclFloatToFloat16

  

共享队列管理

acltdtCreateQueue

  

acltdtDestroyQueue

  

acltdtEnqueueData

  

acltdtDequeueData

  

acltdtEnqueue

  

x

acltdtDequeue

  

x

acltdtBindQueueRoutes

  

acltdtUnbindQueueRoutes

  

acltdtQueryQueueRoutes

  

acltdtGrantQueue

  

x

acltdtAttachQueue

  

x

共享Buffer管理

acltdtAllocBuf

  

acltdtFreeBuf

  

acltdtGetBufData

  

acltdtSetBufUserData

  

acltdtGetBufUserData

  

acltdtSetBufDataLen

  

acltdtGetBufDataLen

  

acltdtCopyBufRef

  

acltdtAppendBufChain

  

acltdtGetBufChainNum

  

acltdtGetBufFromChain

  

父主题: V1.5.0及以上版本

接口列表,\Atlas 200/500 A2推理产品

针对Atlas 200/300/500 推理产品、Atlas 200/500 A2推理产品,在V1.5.0基础上,新增了如下接口。

各版本对AscendCL接口的支持情况如下所示,各标识的含义如下:

一级节点

二级节点

三级节点

Atlas 200/500 A2推理产品

媒体数据处理V2

VDEC视频解码功能/JPEGD图片解码功能

hi_mpi_vdec_set_display_mode

hi_mpi_vdec_get_display_mode

AI音频输入/AO音频输出

该章节下的所有接口

音量调节

该章节下的所有接口

AENC音频编码/ADEC音频解码

该章节下的所有接口

Region区域管理

该章节下的所有接口

VO视频输出功能

该章节下的所有接口

TDE图形绘制功能

该章节下的所有接口

HIFB叠加图形层管理功能

该章节下的所有接口

HDMI外设

该章节下的所有接口

VENC视频编码功能/JPEGE图片编码功能

hi_mpi_venc_set_chn_attr

hi_mpi_venc_get_chn_attr

VI视频输入功能

hi_mpi_vi_set_pipe_attr

hi_mpi_vi_get_pipe_attr

hi_mpi_vi_set_pipe_vc_number

hi_mpi_vi_get_pipe_vc_number

hi_mpi_vi_set_chn_low_delay_attr

hi_mpi_vi_get_chn_low_delay_attr

hi_mpi_vi_set_vi_vpss_mode

hi_mpi_vi_get_vi_vpss_mode

hi_mpi_vi_set_pipe_pre_be_crop

hi_mpi_vi_set_pipe_bind_strobe

VO视频输出功能

hi_mpi_vo_set_chn_param

hi_mpi_vo_set_chn_frame_rate

hi_mpi_vo_pause_chn

hi_mpi_vo_resume_chn

hi_mpi_vo_hide_chn

hi_mpi_vo_show_chn

hi_mpi_vo_bind_layer

hi_mpi_vo_unbind_layer

算子加载与执行

aclrtSetOpExecuteTimeOut

  

系统配置

aclGetCompileopt

  

aclGetCompileoptSize

  

Stream管理

aclrtSetStreamFailureMode

  

aclrtSetStreamConfigOpt

  

x

aclrtCreateStreamV2

  

x

同步等待

aclrtSynchronizeEventWithTimeout

  

模型加载与执行

aclmdlSetExecConfigOpt

  

aclmdlExecuteV2

  

aclmdlExecuteAsyncV2

  

内存管理

aclrtAllocatorRegister

  

x

aclrtAllocatorUnregister

  

x

aclrtMallocAlign32

  

Context管理

aclrtCtxSetSysParamOpt

  

aclrtCtxGetSysParamOpt

  

aclrtGetOverflowStatus

  

aclrtResetOverflowStatus

  

Device管理

aclrtGetDeviceUtilizationRate

  

单算子API执行

公共接口(AscendCL meta)

定义算子时依赖的一些AscendCL元接口,通过这些元接口可以构建所需的数据结构,如aclTensor、aclScalar、aclIntArray等。

  

NN类算子接口(aclnn)

aclnn提供的核心功能接口,包括张量基础计算(加/减/乘/除等)以及NN相关的如卷积、池化、激活函数等操作。

该章节下的所有接口

x

父主题: V1.6.0及以上版本

V1.7.0及以上版本

针对Atlas 200/300/500 推理产品、Atlas 200/500 A2推理产品,在V1.6.0基础上,新增了如下接口。

各版本对AscendCL接口的支持情况如下所示,各标识的含义如下:

一级节点

二级节点

三级节点

Atlas 200/500 A2推理产品

算子加载与执行

aclopStartDumpArgs

  

x

aclopStopDumpArgs

  

x

同步等待

aclrtSubscribeHostFunc

  

x

aclrtProcessHostFunc

  

x

aclrtUnSubscribeHostFunc

  

x

单算子API执行

DVPP类算子接口

acldvppNormalize

x

acldvppDecodeJpeg

x

acldvppResize

x

acldvppImgToTensor

x

acldvppAdjustBrightness

x

acldvppAdjustHue

x

acldvppAdjustSaturation

x

acldvppAdjustContrast

x

融合类算子接口

aclnnPromptFlashAttention

x

aclnnIncreFlashAttention

x

aclnnFlashAttentionScore

x

aclnnFlashAttentionScoreGrad

x

aclnnMoeFFN

x

媒体数据处理V2

VPC图像处理功能

hi_mpi_vpc_set_chn_opt_attr

x

Stream管理

aclrtStreamQuery

  

内存管理

aclrtReserveMemAddress

  

aclrtReleaseMemAddress

  

aclrtMallocPhysical

  

aclrtFreePhysical

  

aclrtMapMem

  

aclrtUnmapMem

  

Device管理

aclrtQueryDeviceStatus

  

父主题: 接口列表

在线提单