2448900355 opened a new issue, #17043: URL: https://github.com/apache/tvm/issues/17043
How should the following issues be resolved when running demo_static? demo_static.c: In function ‘main’: demo_static.c:52:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] (void)fread(input_storage, 3 * 224 * 224, 4, fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TVM_NUM_THREADS=1 build/demo_static build/cat.bin src/runtime/crt/common/crt_backend_api.c:44: Check failed: err == kTvmErrorNoError: TVMBackendAllocWorkspace(1, 0, 2359296, 2, 32) -> 1283 TVMPlatformAbort: 1280 backtrace: 10 build/demo_static(+0x1fa96)[0x555bfb998a96] build/demo_static(+0x1868)[0x555bfb97a868] build/demo_static(+0x1f6ec)[0x555bfb9986ec] build/demo_static(+0x1f2ed)[0x555bfb9982ed] build/demo_static(+0x1c70e)[0x555bfb99570e] build/demo_static(+0x1cedc)[0x555bfb995edc] build/demo_static(+0x1979)[0x555bfb97a979] build/demo_static(+0x1278)[0x555bfb97a278] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f7056ead083] build/demo_static(+0x161e)[0x555bfb97a61e] symbol 0: (null) build/demo_static 0x555bfb979000 (0x1fa96) 0x000000000001fa96: tvm_platform_abort_backtrace 于 /home/sm/TVM/apache-tvm-src-v0.9.0/apps/bundle_deploy/backtrace.c:34 symbol 1: (null) build/demo_static 0x555bfb979000 (0x1868) 0x0000000000001868: TVMPlatformAbort 于 /home/sm/TVM/apache-tvm-src-v0.9.0/apps/bundle_deploy/bundle_static.c:119 symbol 2: (null) build/demo_static 0x555bfb979000 (0x1f6ec) 0x000000000001f6ec: TVMBackendAllocWorkspace 于 /home/sm/TVM/apache-tvm-src-v0.9.0/build/standalone_crt/src/runtime/crt/common/crt_backend_api.c:42 (discriminator 2) symbol 3: (null) build/demo_static 0x555bfb979000 (0x1f2ed) 0x000000000001f2ed: memset 于 /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71 (已内连入) TVMNDArray_Empty 于 /home/sm/TVM/apache-tvm-src-v0.9.0/build/standalone_crt/src/runtime/crt/common/ndarray.c:68 symbol 4: (null) build/demo_static 0x555bfb979000 (0x1c70e) 0x000000000001c70e: TVMGraphExecutor_SetupStorage 于 /home/sm/TVM/apache-tvm-src-v0.9.0/build/standalone_crt/src/runtime/crt/graph_executor/graph_executor.c:1012 symbol 5: (null) build/demo_static 0x555bfb979000 (0x1cedc) 0x000000000001cedc: TVMGraphExecutor_Init 于 /home/sm/TVM/apache-tvm-src-v0.9.0/build/standalone_crt/src/runtime/crt/graph_executor/graph_executor.c:1182 symbol 6: (null) build/demo_static 0x555bfb979000 (0x1979) 0x0000000000001979: tvm_runtime_create 于 /home/sm/TVM/apache-tvm-src-v0.9.0/apps/bundle_deploy/bundle_static.c:79 symbol 7: (null) build/demo_static 0x555bfb979000 (0x1278) 0x0000000000001278: main 于 /home/sm/TVM/apache-tvm-src-v0.9.0/apps/bundle_deploy/demo_static.c:48 symbol 8: __libc_start_main /lib/x86_64-linux-gnu/libc.so.6 0x7f7056e89000 (0x24083) 0x0000000000024083: ?? ??:0 symbol 9: (null) build/demo_static 0x555bfb979000 (0x161e) 0x000000000000161e: _start 于 ??:? make: *** [Makefile:79:demo_static] 错误 255 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org