OpenCV 4.11.0
开源计算机视觉库
加载中…
搜索中…
无匹配项
cann_call.hpp 文件参考
#include <vector>
#include <set>
#include <string>
#include <acl/acl_base.h>
#include "cann.hpp"
#include "stream_accessor.hpp"
#include "ascendc_kernels.hpp"
cann_call.hpp 文件的包含依赖图
此图显示直接或间接包含此文件的文件。

结构体  cv::cann::AscendTensor
 call_call 接口的参数类型。 更多…
 
类  cv::cann::AscendStream::Impl
 CANN 流的包装器。 更多…
 
类  cv::cann::AscendEvent::Impl
 CANN 事件的包装器。 更多…
 
类  cv::cann::OperatorRunner
 调用CANN包中操作符的接口。 更多…
 

命名空间

命名空间  cv
 
命名空间  cv::cann
 

#define CV_ACL_SAFE_CALL(expr)
 
#define CV_ACL_SAFE_CALL_PTR(expr)
 

函数

void cv::cann::aclrtFreeWarpper (void *data)
 
void cv::cann::aclrtMallocWarpper (void **data, size_t size)
 
void cv::cann::aclrtMemcpy2dWarpper (std::shared_ptr< uchar > &dst, size_t offset, size_t dpitch, const void *src, size_t spitch, size_t width, size_t length, AscendStream &stream)
 
void cv::cann::aclrtMemcpy2dWarpper (void *dst, size_t dpitch, const std::shared_ptr< uchar > &src, size_t offset, size_t spitch, size_t width, size_t length, AscendStream &stream)
 
void cv::cann::aclrtMemcpyWarpper (std::shared_ptr< uchar > &dst, size_t dstOffset, const std::shared_ptr< uchar > &src, size_t srcOffset, size_t size, AscendStream &stream)
 
void cv::cann::aclrtMemcpyWarpper (std::shared_ptr< uchar > &dst, size_t offset, const void *src, size_t size, AscendStream &stream)
 
void cv::cann::aclrtMemcpyWarpper (void *dst, const std::shared_ptr< uchar > &src, size_t offset, size_t size, AscendStream &stream)
 
void cv::cann::aclrtMemsetWarpper (std::shared_ptr< uchar > &ptr, int32_t value, size_t count, AscendStream &stream)
 
void cv::cann::checkAclError (aclError err, const char *file, const int line, const char *func)
 
void cv::cann::checkAclPtr (void *ptr, const char *file, const int line, const char *func)
 
aclDataType cv::cann::getACLType (int opencvdepth)
 opencv和cann之间的类型映射。
 
template<typename KERNEL_TYPE , typename TILING_TYPE , typename... ARGS>
void cv::cann::kernel_launch (KERNEL_TYPE kernel, AscendStream &stream, TILING_TYPE &tiling, ARGS... args)
 
std::shared_ptr< ucharcv::cann::mallocAndUpload (const void *data, size_t size, AscendStream &stream, AscendMat::Allocator *allocator)
 将原始数据分配并上传到设备。
 

宏定义文档

◆ CV_ACL_SAFE_CALL

#define CV_ACL_SAFE_CALL ( expr)
checkAclError((expr), __FILE__, __LINE__, CV_Func)

◆ CV_ACL_SAFE_CALL_PTR

#define CV_ACL_SAFE_CALL_PTR ( expr)
({ \
auto ptr = (expr); \
checkAclPtr(ptr, __FILE__, __LINE__, CV_Func); \
ptr; \
})