Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] demo_static error #17043

Open
2448900355 opened this issue May 29, 2024 · 2 comments
Open

[Bug] demo_static error #17043

2448900355 opened this issue May 29, 2024 · 2 comments
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug

Comments

@2448900355
Copy link

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

@2448900355 2448900355 added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug labels May 29, 2024
@2448900355 2448900355 changed the title [Bug] [Bug] demo_static error May 29, 2024
@oleggolev
Copy link

I'm also trying to compile demo_static as part of figuring out how to convert AI models into executables with little success. Did you figure out what the issues was? Does anyone have any idea what's happening with CRT? I just posted what seems like a related issue.

@2448900355
Copy link
Author

I'm also trying to compile demo_static as part of figuring out how to convert AI models into executables with little success. Did you figure out what the issues was? Does anyone have any idea what's happening with CRT? I just posted what seems like a related issue.

I am still looking for the problem. The essence of this problem is a memory allocation error, which may be a limitation on process memory allocation by the computer, but the specific problem has not been found yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type: bug
Projects
None yet
Development

No branches or pull requests

2 participants