参考https://ascend.github.io/docs/sources/whisper_cpp/quick_start.html 编译了CANN版Whisper,执行./build/bin/whisper-cli -f samples/jfk.wav -m models/ggml-base.bin -t 8 时报错
通过export ASCEND_SLOG_PRINT_TO_STDOUT=1 与export ASCEND_GLOBAL_LOG_LEVEL=0 打印log发现可能是/usr/local/Ascend/ascend-toolkit/8.1.RC1/opp/built-in/op_impl/ai_core/tbe//kernel/config/ascend310b/im_2col.json 该文件不存在,但是正常安装后路径下确实没有这个json文件
参考https://ascend.github.io/docs/sources/whisper_cpp/quick_start.html 编译了CANN版Whisper,执行./build/bin/whisper-cli -f samples/jfk.wav -m models/ggml-base.bin -t 8 时报错
aclrtGetDevice [INFO] RUNTIME(589296,whisper-cli):2025-05-13-11:19:51.967.352 [runtime.cc:5042] 589296 isNeedChangeDeviceId: userDevId=0, isSetVisibleDev=0 isDeviceSetResetOp=0 curCtx=0xaaaad5a61590 ContextMode=0. [INFO] RUNTIME(589296,whisper-cli):2025-05-13-11:19:51.967.361 [runtime.cc:5042] 589296 isNeedChangeDeviceId: userDevId=0, isSetVisibleDev=0 isDeviceSetResetOp=0 curCtx=0xaaaad5a61590 ContextMode=0. [INFO] RUNTIME(589296,whisper-cli):2025-05-13-11:19:51.967.368 [runtime.cc:5079] 589296 GetUserDevIdByDeviceId: isNeedChangeDeviceId=0, userDevId=0, deviceId=0 [DEBUG] ASCENDCL(589296,whisper-cli):2025-05-13-11:19:51.967.386 [device.cpp:239]589296 aclrtGetDevice: successfully execute aclrtGetDevice, get device id is 0. CANN error: EH9999: Inner Error! EH9999: [PID: 589296] 2025-05-13-11:19:51.410.267 Get Allocation Granularity failed, runtime result = 207000[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161] TraceBack (most recent call last): Parse dynamic kernel config fail. AclOpKernelInit failed opType Im2col ADD_TO_LAUNCHER_LIST_AICORE failed. current device: 0, in function ggml_cann_im2col at /root/whisper.cpp/ggml/src/ggml-cann/aclnn_ops.cpp:1075 aclnnIm2colGetWorkspaceSize(acl_src1, kernel_size, dilations, paddings, strides, tmp_im2col_tensor, &workspaceSize, &executor) /root/whisper.cpp/ggml/src/ggml-cann/ggml-cann.cpp:65: CANN error通过export ASCEND_SLOG_PRINT_TO_STDOUT=1 与export ASCEND_GLOBAL_LOG_LEVEL=0 打印log发现可能是/usr/local/Ascend/ascend-toolkit/8.1.RC1/opp/built-in/op_impl/ai_core/tbe//kernel/config/ascend310b/im_2col.json 该文件不存在,但是正常安装后路径下确实没有这个json文件