OpenCV  5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
cann_call.hpp File Reference
#include <vector>
#include <set>
#include <string>
#include <acl/acl_base.h>
#include "cann.hpp"
#include "stream_accessor.hpp"
#include "ascendc_kernels.hpp"
Include dependency graph for cann_call.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  cv::cann::AscendTensor
 Parameter type for call_call interfaces. More...
 
class  cv::cann::AscendStream::Impl
 Warpper of CANN streams. More...
 
class  cv::cann::AscendEvent::Impl
 Warpper of CANN event. More...
 
class  cv::cann::OperatorRunner
 Interface to call operators in CANN package. More...
 

Namespaces

namespace  cv
 
namespace  cv::cann
 

Macros

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

Functions

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)
 Type mapping between opencv and 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)
 Malloc and upload raw data to devices.
 

Macro Definition Documentation

◆ 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)
Value:
({ \
auto ptr = (expr); \
checkAclPtr(ptr, __FILE__, __LINE__, CV_Func); \
ptr; \
})