ACL_REQUIRES_OK(acl::GetAlignedAndPaddingSize(size, isPadding, alignedSize)); uint32_t flags = RT_MEMORY_DEFAULT; if (policy == ACL_MEM_MALLOC_HUGE_FIRST) { flags |= RT_MEMORY_POLICY_HUGE_PAGE_FIRST; } else if (policy == ACL_MEM_MALLOC_HUGE_ONLY) { flags |= RT_MEMORY_...
ACL_RT_DEVICE_STATUS_NORMAL = 0, ACL_RT_DEVICE_STATUS_ABNORMAL, ACL_RT_DEVICE_STATUS_END = 0xFFFF, } aclrtDeviceStatus; typedef void* aclrtBinary; typedef void* aclrtBinHandle; typedef void* aclrtFuncHandle; #define MAX_MEM_UCE_INFO_ARRAY_SIZE 128 #define UCE_INFO_RESERVED...
mdl.get_num_outputs(self.model_desc) # 获取模型输出个数 self.output_dataset = acl.mdl.create_dataset() # 创建输出dataset结构 for i in range(self._output_num): temp_buffer_size = acl.mdl.get_output_size_by_index(self.model_desc, i) # 获取模型输出个数 temp_buffer, ret = acl.rt....
return_expr;\}\}while(0)#defineLOG_PRINT(message,...)\do{\printf(message,##__VA_ARGS__);\}while(0)int64_tGetShapeSize(conststd::vector<int64_t>&shape){int64_t shapeSize=1;for(auto i:shape){shapeSize*=i;}returnshapeSize;}intInit(int32_t deviceId,aclrtStream*stream){// 固定...
XingQiYi001回复hid_44i441g5cgvlyhr:这个问题在cann toolkit 8.0.0.alpha001依然存在,不管x86还是鲲鹏920 的aarch64下,调用aclrtSetDevice之前500MB,之后直接8T,这很明显是个问题,但是华为这边不打算去解决,问题一直在外围支持人员这里转圈圈 2025-01-10 13:22:25 显示10 1 我...
aclrtPhysicalMemProp aclrtDrvMemHandle aclrtDeviceStatus aclrtMemGranularityOptions aclCannAttr aclDeviceInfo aclmdlExeOMDesc aclmdlAIPP aclopHandle aclDataBuffer aclmdlDataset aclmdlDesc aclTensorDesc aclCreateTensorDesc aclDestroyTensorDesc aclGetTensorDescType aclGetTensorDescFormat aclGe...
(),opAttr,stream_);ret=aclrtSynchronizeStream(stream_);if(ret!=ACL_ERROR_NONE){ERROR_LOG("execute singleOp conv2d failed, errorCode is %d",static_cast<int32_t>(ret));aclDestroyTensorDesc(inputDescCast[0]);aclDestroyTensorDesc(OutputDescCast[0]);returnFAILED;}INFO_LOG("execute conv2d ...
SYSMGR_GET_NODE_STATE EM-317 %HA-LRD-2-SYSMGR_REGISTER EM-317 %HA-LRD-3-BAG_REGISTRATION EM-317 %HA-LRD-3-MEM_ALLOC_FAIL EM-317 %HA-LRD-3-MSG_CERR_REGISTER_DLL EM-317 %HA-LRD-3-MSG_INVENTORY_FWD EM-317 %HA-LRD-3-REDUNDANCY_STATE EM-318 %HA-LRD-3-SYSDB_ITEM_ERROR EM-318...
error =acl_get_entry(acl, ACL_NEXT_ENTRY, &entry); }if(!error) error = acl_set_file(path, ACL_TYPE_ACCESS, acl); }elseerror = acl_delete_def_file(path);return(error); } 开发者ID:SanDisk-Open-Source,项目名称:SSD_Dashboard,代码行数:35,代码来源:chacl.c ...
aclrtFloatOverflowMode acldvppJpegdPrecisionMode aclmdlExecConfigAttr aclrtStreamConfigAttr aclSysParamOpt aclrtUtilizationInfo aclrtStreamStatus aclrtMemHandleType aclrtMemAllocationType aclrtMemAttr aclrtMemLocationType aclrtMemLocation aclrtPhysicalMemProp aclrtDrvMemHandle aclrtDeviceStatus ac...