pwd
ls -ld build/release/config
rg -n --hidden -g '!/.git/' 'HOST_RUNTIME_COMMON_TARGETS' .


grep -RInI
--exclude-dir=.git
--include='*.cmake'
--include='CMakeLists.txt'
'HOST_RUNTIME_COMMON_TARGETS' .


int ret = aclrtMalloc(&userBuffer, userBufferSize *1024 * 1024, ACL_MEM_MALLOC_HUGE_FIRST);
我使用这个接口申请了一个内存,但是内存的起始地址没有对齐,需要4K对齐。 请问一下要加什么参数 能对齐呀?


ldd -r libruntime_v100.so
linux-vdso.so.1 (0x00007ffc0cad4000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9e1fa79000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9e1fa6f000)
libxpu_tprt.so => not found
libruntime_common.so => not found
libprofapi.so => not found
liberror_manager.so => not found
libascend_hal.so => /usr/local/Ascend/driver/lib64/driver/libascend_hal.so (0x00007f9e1f3c3000)
libplatform.so => not found
libunified_dlog.so => not found
libmmpa.so => /usr/local/Ascend/driver/lib64/common/libmmpa.so (0x00007f9e1f3af000)
libc_sec.so => /usr/local/Ascend/driver/lib64/common/libc_sec.so (0x00007f9e1f39b000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9e1f1b9000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9e1f068000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9e1f04d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9e1f02a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9e1ee38000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9e2014e000)
undefined symbol: _ZN3cce4tprt10TprtManage5tprt_E (./libruntime_v100.so)
undefined symbol: MsprofReportData (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer14eventWorkMutexE (./libruntime_v100.so)
undefined symbol: TprtSqCqDestroy (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage18GetDevInfoProcFuncENS0_13tagRtChipTypeERNS0_18DevDynInfoProcFuncE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer13GetSocVersionEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager13StateToStringE14rtProcessState (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage17GetChipFeatureSetENS0_13tagRtChipTypeERSt5arrayIbLm190EE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime16RtIsHeterogenousEv (./libruntime_v100.so)
undefined symbol: _ZNK3cce7runtime18GlobalStateManager15GetCurrentStateEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer21GetHardwareSocVersionEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer20GetEventModeRefCountEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager11GetInstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime11GetFileNameERKSs (./libruntime_v100.so)
undefined symbol: _ZN2fe19PlatformInfoManager31GetRuntimePlatformInfosByDeviceERKjRNS_13PlatFormInfosEb (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime16GetTsErrCodeDescEj (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23GetChipTypeFromPlatformEPKcRNS0_13tagRtChipTypeE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage20IsSupportChipFeatureENS0_13tagRtChipTypeENS0_21RtOptionalFeatureTypeE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15ErrorcodeManage15TransExtErrCodeEi (./libruntime_v100.so)
undefined symbol: ZN3cce7runtime17ErrorMessageUtils19RuntimeErrorMessageEiRKSt6vectorISsSaISsEES6 (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ProcessErrorCodeImplENS0_9ErrorCodeEPKciS3_RKSt6vectorISsSaISsEE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15ErrorcodeManage13GetDrvErrCodeE11tagDrvError (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime17EraseMappedMemoryEPKv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime16IsProcessTimeoutERK10mmTimespeciPi (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer21SetHardwareSocVersionERKSs (./libruntime_v100.so)
undefined symbol: _ZN3cce4tprt10TprtManageC1Ev (./libruntime_v100.so)
undefined symbol: _ZN12ErrorManager22GetErrorManagerContextEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15IsStringNumericERKSs (./libruntime_v100.so)
undefined symbol: MsprofRegisterCallback (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime22ProfilerGetProfApiDataEv (./libruntime_v100.so)
undefined symbol: _ZN2fe13PlatFormInfos22GetPlatformResWithLockERKSsRSt3mapISsSsSt4lessISsESaISt4pairIS1_SsEEE (./libruntime_v100.so)
undefined symbol: _ZN12ErrorManager19GetRawErrorMessagesEv (./libruntime_v100.so)
undefined symbol: _ZN2fe19PlatformInfoManager10GeInstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager13ForceUnlockedEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23ProfCtrlCallbackManager8InstanceEv (./libruntime_v100.so)
undefined symbol: _ZN2fe13PlatFormInfos22GetPlatformResWithLockERKSsS2_RSs (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GetTsErrCodeMapEjPi (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage19GetAllDevPropertiesERSt13unordered_mapINS0_13tagRtChipTypeENS0_13DevPropertiesESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S4_EEE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime14ProfilingAgent8InstanceEv (./libruntime_v100.so)
undefined symbol: TprtSqPushTask (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager8UnlockedEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18InsertPinnedMemoryEPKvm (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime12GetQuickHashEPKvm (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage8InstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime28ProfilerGetProfTaskTrackDataEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager24DecBackgroundThreadCountEPKc (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime12ReportErrMsgESsRKSt6vectorIcSaIcEE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23ProfCtrlCallbackManager6NotifyEjPvj (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime9RecordLogEiPKciS2_S2_z (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage18RegDevInfoProcFuncENS0_13tagRtChipTypeERKNS0_18DevDynInfoProcFuncE (./libruntime_v100.so)
undefined symbol: _ZN17PlatformManagerV28InstanceEv (./libruntime_v100.so)
undefined symbol: TprtDeviceClose (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer16DeleteMemUceInfoEj (./libruntime_v100.so)
undefined symbol: _ZNK3cce7runtime14ProfilingAgent13ReportProfApiEjRNS0_18RuntimeProfApiDataE (./libruntime_v100.so)
undefined symbol: TprtProfilingEnable (./libruntime_v100.so)
undefined symbol: ZN3cce7runtime18InsertMappedMemoryEPKvmS2 (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer14FindMemUceInfoEj (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer13IsHostCpuFuncEm (./libruntime_v100.so)
undefined symbol: _ZNK3cce7runtime14ProfilingAgent6UnInitEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage16GetDevPropertiesENS0_13tagRtChipTypeERNS0_13DevPropertiesE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime26XpuTaskFailCallBackManager8InstanceEv (./libruntime_v100.so)
undefined symbol: DlogFlush (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime14RecordErrorLogEPKciS2_S2_z (./libruntime_v100.so)
undefined symbol: _ZN2fe19PlatformInfoManager34UpdateRuntimePlatformInfosByDeviceERKjRNS_13PlatFormInfosE (./libruntime_v100.so)
undefined symbol: MsprofReportCompactInfo (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer11GetEnvFlagsEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime8RealPathERKSs (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime25ProfilerPopProfApiContextERNS0_14ProfApiContextE (./libruntime_v100.so)
undefined symbol: MsprofNotifySetDevice (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23TaskFailCallBackManager19RegTaskFailCallbackEPKcPvS4_NS0_20TaskFailCallbackTypeE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime16ResetInnerObjectERNS0_13rtInnerObjectE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23ProfCtrlCallbackManager19RegProfCtrlCallbackEjPFijPvjE (./libruntime_v100.so)
undefined symbol: TprtSqCqCreate (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23TaskFailCallBackManager6NotifyEP15rtExceptionInfo (./libruntime_v100.so)
undefined symbol: MsprofSysCycleTime (./libruntime_v100.so)
undefined symbol: TprtCqReportRecv (./libruntime_v100.so)
undefined symbol: _ZN13error_message16ReportInnerErrorEPKcS1_jSsS1_z (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer15GetArgsSizeInfoEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15ErrorcodeManage12GetErrorDescEi (./libruntime_v100.so)
undefined symbol: _ZN3cce4tprt10TprtManageD1Ev (./libruntime_v100.so)
undefined symbol: _ZNK3cce7runtime14ProfilingAgent4InitEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime26XpuTaskFailCallBackManager22RegXpuTaskFailCallbackEPKcPv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer10GetTaskTagERSs (./libruntime_v100.so)
undefined symbol: _ZN17PlatformManagerV210GetSocSpecERKSsS1_S1_RSs (./libruntime_v100.so)
undefined symbol: _ZNK3cce7runtime15ErrorcodeManage13GetModuleNameEt (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13GetParamNamesENS0_9ErrorCodeE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer12UceMutexLockEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer12ResetTaskTagEv (./libruntime_v100.so)
undefined symbol: CheckLogLevel (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime28ProfilerGetTopProfApiContextEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager11GetStateMtxEv (./libruntime_v100.so)
undefined symbol: _ZN12ErrorManager11GetInstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer19RegisterHostCpuFuncEm (./libruntime_v100.so)
undefined symbol: _ZN2fe19PlatformInfoManager24InitRuntimePlatformInfosERKSs (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime17ContextDataManage8InstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18IsMappedMemoryBaseEPKv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer21GetOrCreateArgsBufferEm (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager15SetCurrentStateE14rtProcessState (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer12GetLaunchArgEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18IsPinnedMemoryBaseEPKv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime16GetNpuArchByNameEPKcPi (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer16InsertMemUceInfoEjPK12rtMemUceInfo (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18IsRegisteredMemoryEPKv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime19GetTsErrDescByRtErrEi (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime22GetMappedDevicePointerEPKv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime22GetConfigIniValueInt32ERKSsS2_Ri (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer16SetEventWorkModeEh (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer13GetMemUceInfoEj (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer13GetRtChipTypeEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime24RealPathForFileNotExistsERKSs (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager28BackgroundThreadWaitIfLockedEPKc (./libruntime_v100.so)
undefined symbol: _ZN12ErrorManager15SetErrorContextEN13error_message7ContextE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime16EscapeJsonStringERKSs (./libruntime_v100.so)
undefined symbol: _ZN13error_message18FormatErrorMessageEPcmPKcz (./libruntime_v100.so)
undefined symbol: ZN12ErrorManager19ATCReportErrMessageESsRKSt6vectorISsSaISsEES4 (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13DevInfoManage16SetDevPropertiesENS0_13tagRtChipTypeERKNS0_13DevPropertiesE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime20ThreadLocalContainer14IsTaskTagValidEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer20SetEventModeRefCountEh (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer13SetSocVersionERKSs (./libruntime_v100.so)
undefined symbol: MsprofReportAdditionalInfo (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager24IncBackgroundThreadCountEPKc (./libruntime_v100.so)
undefined symbol: TprtOpSqCqInfo (./libruntime_v100.so)
undefined symbol: MsprofStr2Id (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15ErrorcodeManage8InstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime22GetValidatedObjectImplEPKvmRPv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23TaskFailCallBackManager8InstanceEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime23GetConfigIniValueDoubleERKSsS2_Rd (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer14UceMutexUnlockEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime18GlobalStateManager6LockedEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime26CheckMemoryRangeRegisteredEPKvm (./libruntime_v100.so)
undefined symbol: _ZN12ErrorManager19SetRawErrorMessagesERKSt6vectorIN13error_message9ErrorItemESaIS2_EE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer13SetRtChipTypeENS0_13tagRtChipTypeE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer16GetEventWorkModeEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime26XpuTaskFailCallBackManager9XpuNotifyEP15rtExceptionInfo (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime17ErasePinnedMemoryEPKv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime14ProfilingAgent25SetMsprofReporterCallbackEPFijjPvjE (./libruntime_v100.so)
undefined symbol: _ZN2fe13PlatFormInfos22SetPlatformResWithLockERKSsRSt3mapISsSsSt4lessISsESaISt4pairIS1_SsEEE (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime13GetDriverPathERSs (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime26ProfilerPushProfApiContextEv (./libruntime_v100.so)
undefined symbol: TprtDeviceOpen (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime22GetFilePathByExtensionERKSsSs (./libruntime_v100.so)
undefined symbol: _ZNK3cce7runtime23ProfCtrlCallbackManager13GetSwitchDataEv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime21InitializeInnerObjectERNS0_13rtInnerObjectEmPv (./libruntime_v100.so)
undefined symbol: _ZN3cce7runtime15GlobalContainer17GetUserSocVersionEv (./libruntime_v100.so)
undefined symbol: ZN3cce7runtime17ErrorMessageUtils19RuntimeErrorMessageERKSsRKSt6vectorISsSaISsEES8 (./libruntime_v100.so)


fa08cf0f90e1445ebce73688b8a1119f.md