Got it

aclInit() fails

Latest reply: Sep 7, 2021 07:21:29 526 4 0 0 0

When calling aclInit() I get a 507000 return code, and the following log:

call drvMngGetConsoleLogLevel failed , g_conLogLevel = 3
[EVENT] PROFILING(17,main):2021-08-30-06:51:27.576.683 [msprof_callback_impl.cpp:151] >>> (tid:17) Started to register profiling callbacks to acl
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.576.944 [acl_prof_api.cpp:64]17 _aclprofRegisterCtrlCallback: start to register ctrl callback
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.577.008 [acl_prof_api.cpp:75]17 _aclprofRegisterCtrlCallback: successfully register ctrl callback
[Info ][2021-08-30 14:51:27:578861][main.cpp GetDeviceID:49] The device ID is got successfully, deviceId = 0
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.579.633 [acl.cpp:44]17 aclInit: start to execute aclInit
[WARNING] ASCENDCL(17,main):2021-08-30-06:51:27.580.407 [acl.cpp:51]17 aclInit: init device's log failed
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.477 [acl.cpp:57]17 aclInit: set DumpConfig in aclInit
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.515 [dump.cpp:363]17 HandleDumpConfig: start to execute HandleDumpConfig
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.553 [json_parser.cpp:176]17 ParseJsonFromFile: before ParseJsonFromFile in ParseJsonFromFile
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.741 [json_parser.cpp:189]17 ParseJsonFromFile: parsefile is null
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.811 [dump.cpp:381]17 HandleDumpConfig: no dump item, no need to do dump!
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.853 [dump.cpp:387]17 HandleDumpConfig: HandleDumpConfig end in HandleDumpConfig
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.894 [acl.cpp:63]17 aclInit: set HandleDumpConfig success in aclInit
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.931 [acl.cpp:65]17 aclInit: set max_opqueue_num in aclInit
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.580.968 [op_model_manager.cpp:41]17 HandleMaxOpQueueConfig: start to execute HandleMaxOpQueueConfig
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.002 [json_parser.cpp:176]17 ParseJsonFromFile: before ParseJsonFromFile in ParseJsonFromFile
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.099 [json_parser.cpp:189]17 ParseJsonFromFile: parsefile is null
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.149 [op_model_manager.cpp:67]17 HandleMaxOpQueueConfig: no max_opqueue_num found, set default DEFAULT_MAX_OPQUEUE_NUM[10000].
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.189 [op_model_manager.cpp:73]17 HandleMaxOpQueueConfig: HandleMaxOpQueueConfig end in HandleMaxOpQueueConfig
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.225 [acl.cpp:71]17 aclInit: set HandleMaxOpQueueConfig success in aclInit
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.258 [acl.cpp:74]17 aclInit: set ProfilingConfig in aclInit
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.291 [profiling.cpp:61]17 HandleProfilingConfig: start to execute HandleProfilingConfig
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.329 [profiling.cpp:55]17 GetProfilingConfigFile: no profiling config file.
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.362 [json_parser.cpp:176]17 ParseJsonFromFile: before ParseJsonFromFile in ParseJsonFromFile
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.462 [json_parser.cpp:189]17 ParseJsonFromFile: parsefile is null
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.514 [profiling.cpp:87]17 HandleProfilingConfig: profiling config file[./data/config/acl.json] is empty
[INFO] ASCENDCL(17,main):2021-08-30-06:51:27.581.555 [acl.cpp:84]17 aclInit: call ge interface executor.Initialize
[INFO] GE(17,main):2021-08-30-06:51:27.581.593 [ge_executor.cc:234]17 Initialize:Init GeExecutor begin.
[WARNING] GE(17,main):2021-08-30-06:51:27.581.772 [op_tiling_manager.cc:76]17 LoadSo:Failed to dlopen /usr/local/Ascend/opp/op_impl/built-in/ai_core/tbe/op_tiling/liboptiling.so: cannot open shared object file: No such file or directory!
[WARNING] GE(17,main):2021-08-30-06:51:27.581.862 [op_tiling_manager.cc:85]17 LoadSo:Failed to dlopen /usr/local/Ascend/opp/op_impl/custom/ai_core/tbe/op_tiling/liboptiling.so: cannot open shared object file: No such file or directory!
[INFO] GE(17,main):2021-08-30-06:51:27.581.926 [host_cpu_engine.cc:254]17 GetLibPath:Start to get host cpu lib path
[INFO] GE(17,main):2021-08-30-06:51:27.582.106 [host_cpu_engine.cc:266]17 GetLibPath:path_base is /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/lib64/
[INFO] GE(17,main):2021-08-30-06:51:27.582.164 [host_cpu_engine.cc:272]17 GetLibPath:Get host cpu so path from PluginManager::GetPath: /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/opp/op_impl/built-in/host_cpu
[WARNING] GE(17,main):2021-08-30-06:51:27.582.253 [host_cpu_engine.cc:347]17 GetRealPath:File path /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/opp/op_impl/built-in/host_cpu is invalid.
[INFO] GE(17,main):2021-08-30-06:51:27.582.391 [ge_executor.cc:219]17 InitOpsProtoManager:path_base is /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/lib64/
[INFO] GE(17,main):2021-08-30-06:51:27.582.446 [ge_executor.cc:224]17 InitOpsProtoManager:Get opsproto path is /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/custom/:/usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/built-in/
[WARNING] GE(17,main):2021-08-30-06:51:27.582.606 [opsproto_manager.cc:119]17 FindParserSo:the path [/usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/custom/] not exsit.
[INFO] GE(17,main):2021-08-30-06:51:27.582.661 [opsproto_manager.cc:161]17 GetPluginSoFileList:OpsProtoManager full name = /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/custom/
[WARNING] GE(17,main):2021-08-30-06:51:27.582.726 [opsproto_manager.cc:119]17 FindParserSo:the path [/usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/built-in/] not exsit.
[INFO] GE(17,main):2021-08-30-06:51:27.582.763 [opsproto_manager.cc:161]17 GetPluginSoFileList:OpsProtoManager full name = /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/built-in/
[WARNING] GE(17,main):2021-08-30-06:51:27.582.799 [opsproto_manager.cc:177]17 LoadOpsProtoPluginSo:OpsProtoManager can not find any plugin file in pluginPath: /usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/custom/:/usr/local/Ascend/nnrt/3.3.0.alpha006/arm64-linux/acllib/ops/op_proto/built-in/
[INFO] GE(17,main):2021-08-30-06:51:27.582.842 [graph_mem_allocator.cc:177]17 Initialize:Create MemoryAllocator memory type[2] success.
[INFO] GE(17,main):2021-08-30-06:51:27.582.878 [graph_mem_allocator.cc:25]17 Initialize:MemoryAllocator::Initialize
[INFO] GE(17,main):2021-08-30-06:51:27.582.915 [graph_mem_allocator.cc:177]17 Initialize:Create MemoryAllocator memory type[17] success.
[INFO] GE(17,main):2021-08-30-06:51:27.582.949 [graph_mem_allocator.cc:25]17 Initialize:MemoryAllocator::Initialize
[INFO] GE(17,main):2021-08-30-06:51:27.582.983 [graph_mem_allocator.cc:193]17 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(17,main):2021-08-30-06:51:27.583.016 [graph_caching_allocator.cc:104]17 Initialize:Device id 0
[INFO] GE(17,main):2021-08-30-06:51:27.583.050 [graph_caching_allocator.cc:364]17 FreeBlocks:Free blocks.
[INFO] GE(17,main):2021-08-30-06:51:27.583.080 [graph_caching_allocator.cc:331]17 FreeCachedBlocks:Free cached blocks
[INFO] GE(17,main):2021-08-30-06:51:27.583.118 [graph_mem_allocator.cc:193]17 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(17,main):2021-08-30-06:51:27.583.153 [graph_caching_allocator.cc:104]17 Initialize:Device id 0
[INFO] GE(17,main):2021-08-30-06:51:27.583.190 [graph_caching_allocator.cc:364]17 FreeBlocks:Free blocks.
[INFO] GE(17,main):2021-08-30-06:51:27.583.225 [graph_caching_allocator.cc:331]17 FreeCachedBlocks:Free cached blocks
[INFO] GE(17,main):2021-08-30-06:51:27.583.280 [graph_mem_allocator.cc:193]17 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(17,main):2021-08-30-06:51:27.583.322 [graph_mem_allocator.cc:193]17 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(17,main):2021-08-30-06:51:27.583.359 [graph_mem_allocator.cc:193]17 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(17,main):2021-08-30-06:51:27.583.391 [graph_mem_allocator.cc:193]17 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(17,main):2021-08-30-06:51:27.583.432 [ops_kernel_builder_manager.cc:58]17 Initialize:[Show][OpsKernelBuilderNum]Number of OpBuild = 0
[INFO] GE(17,main):2021-08-30-06:51:27.583.485 [profiling_manager.cc:85]17 Init:ProfilingManager::Init  job_id:1
[INFO] GE(17,main):2021-08-30-06:51:27.583.531 [profiling_manager.cc:109]17 Init:The profiling is off, skip the initialization
[INFO] GE(17,main):2021-08-30-06:51:27.583.569 [ge_executor.cc:269]17 Initialize:Init GeExecutor over.
[INFO] RUNTIME(17,main):2021-08-30-06:51:27.583.672 [runtime.cc:825]17 BootRuntime:Boot runtime:new Runtime ok, Runtime_alloc_size 3264
[ERROR] RUNTIME(17,main):2021-08-30-06:51:27.585.376 [runtime.cc:626]17 InitSocType:Call halGetDeviceInfo failed: drvRetCode=2, module type=0, info type=1.
[ERROR] RUNTIME(17,main):2021-08-30-06:51:27.585.665 [runtime.cc:704]17 Init:Init SocType failed.
[ERROR] RUNTIME(17,main):2021-08-30-06:51:27.585.780 [api_c.cc:2317]17 rtGetSocVersion:rtInstance is NULL!
[ERROR] RUNTIME(17,main):2021-08-30-06:51:27.585.884 [api_c.cc:2317]17 rtGetSocVersion:ErrCode=507000, desc=[null instance pointer], InnerCode=0x70b0001
[ERROR] ASCENDCL(17,main):2021-08-30-06:51:27.585.955 [acl.cpp:159]17 InitSocVersion: get soc version failed, runtime result is 507000
[ERROR] ASCENDCL(17,main):2021-08-30-06:51:27.586.004 [acl.cpp:93]17 aclInit: init soc version failed, ret = 507000
[Error][2021-08-30 14:51:27:586049][main.cpp InitAscend:64] Failed to initialize the ACL, ret = 507000
[Error][2021-08-30 14:51:27:586267][main.cpp main:223] Failed to initialize the Ascend, ret = 507000
[INFO] GE(17,main):2021-08-30-06:51:27.586.448 [graph_mem_allocator.cc:227]17 Finalize:Finalize.
[INFO] GE(17,main):2021-08-30-06:51:27.586.556 [graph_caching_allocator.cc:128]17 Finalize:Device id 0
[INFO] GE(17,main):2021-08-30-06:51:27.586.601 [graph_caching_allocator.cc:394]17 PrintCount:Malloc total[size:         0 count:         0].
[INFO] GE(17,main):2021-08-30-06:51:27.586.641 [graph_caching_allocator.cc:394]17 PrintCount: Using total[size:         0 count:         0].
[INFO] GE(17,main):2021-08-30-06:51:27.586.678 [graph_caching_allocator.cc:394]17 PrintCount:  Free total[size:         0 count:         0].
[INFO] GE(17,main):2021-08-30-06:51:27.586.713 [graph_caching_allocator.cc:364]17 FreeBlocks:Free blocks.
[INFO] GE(17,main):2021-08-30-06:51:27.586.747 [graph_caching_allocator.cc:331]17 FreeCachedBlocks:Free cached blocks
[INFO] GE(17,main):2021-08-30-06:51:27.586.782 [graph_caching_allocator.cc:383]17 FreeBlockBins:Free block bins.
[INFO] GE(17,main):2021-08-30-06:51:27.586.819 [graph_caching_allocator.cc:128]17 Finalize:Device id 0
[INFO] GE(17,main):2021-08-30-06:51:27.586.858 [graph_caching_allocator.cc:394]17 PrintCount:Malloc total[size:         0 count:         0].
[INFO] GE(17,main):2021-08-30-06:51:27.586.896 [graph_caching_allocator.cc:394]17 PrintCount: Using total[size:         0 count:         0].
[INFO] GE(17,main):2021-08-30-06:51:27.586.932 [graph_caching_allocator.cc:394]17 PrintCount:  Free total[size:         0 count:         0].
[INFO] GE(17,main):2021-08-30-06:51:27.586.971 [graph_caching_allocator.cc:364]17 FreeBlocks:Free blocks.
[INFO] GE(17,main):2021-08-30-06:51:27.587.003 [graph_caching_allocator.cc:331]17 FreeCachedBlocks:Free cached blocks
[INFO] GE(17,main):2021-08-30-06:51:27.587.037 [graph_caching_allocator.cc:383]17 FreeBlockBins:Free block bins.
[INFO] GE(17,main):2021-08-30-06:51:27.587.078 [graph_mem_allocator.cc:37]17 Finalize:MemoryAllocator::Finalize
[INFO] GE(17,main):2021-08-30-06:51:27.587.116 [graph_mem_allocator.cc:37]17 Finalize:MemoryAllocator::Finalize
[EVENT] IDEDH(17,main):2021-08-30-06:51:27.590.748 [adx_server_manager.cpp:27][tid:17]>>> start to deconstruct adx server manager
[INFO] IDEDH(17,main):2021-08-30-06:51:27.590.904 [adx_server_manager.cpp:331][tid:17]>>> waitOver is 1


I'm using the following container image: https://support.huawei.com/enterprise/en/doc/EDOC1100133162/5b594d56/creating-a-container-image#en-us_topic_0278749692_en-us_topic_0274582565_en-us_topic_0257888644_li6191726183013 and starting the container on the Atlas 500 with: 

docker run -it --device=/dev/davinci0 --device=/dev/davinci_manager --device=/dev/hisi_hdc --device /dev/devmm_svm --rm -v /home/data/miniD/driver/lib64:/home/data/miniD/driver/lib64 -v /root/device:/root/host test /bin/bash


The C++ code is compiled with aarch64-linux-gnu-g++-7:

#include <acl/acl.h>

int main(int argc, char *argv[])
{
    const char *aclConfigPath = "acl.json";
    aclInit(aclConfigPath );
}


Hi,
Kindly wait for a second.
View more
  • x
  • convention:

your cmd is different from the document. try the full cmd below:
docker run --device=/dev/davinci0 --device=/dev/davinci_manager --device=/dev/hisi_hdc --device /dev/devmm_svm \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /home/data/miniD/driver/lib64:/home/data/miniD/driver/lib64 \
-v /home/data/miniD/driver/add-ons:/home/data/miniD/driver/add-ons \
-v /var/log/npu/conf/slog/slog.conf:/var/log/npu/conf/slog/slog.conf \
-v /home/data/miniD/driver/tools:/home/data/miniD/driver/tools \
-it workload-image:v1.0
View more
  • x
  • convention:

reyoda
reyoda Created Sep 7, 2021 07:05:12 (0) (0)
That gives the same result  
Apparently, I just needed to restart the Atlas 500. It now works as before
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.