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

F3 model init failed #44

Open
0312birdzhang opened this issue Aug 17, 2023 · 5 comments
Open

F3 model init failed #44

0312birdzhang opened this issue Aug 17, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@0312birdzhang
Copy link
Contributor

Describe the bug
When lauching flowpilot, model init failed with errors:

E/tnn: BuildProgram [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/device/opencl/opencl_runtime.cc][Line 478] Program build log: <source>:78:18: error: use of undeclared identifier 'inff'
    FLOAT4 out = OPERATOR;
                 ^
<built-in>:8:59: note: expanded from here
#define OPERATOR clamp(in,(FLOAT4)(1.00000e-12f),(FLOAT4)(inff))
                                                          ^

error: Compiler frontend failed (error code 63)
 
E/tnn: BuildProgram [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/device/opencl/opencl_runtime.cc][Line 480] Build program failed ! 
E/tnn: BuildKernel [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/device/opencl/opencl_runtime.cc][Line 333] unary build failed!
E/tnn: CreateExecuteUnit [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/device/opencl/opencl_utils.cc][Line 522] kernel (Unary) build failed!
E/tnn: Init [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/device/opencl/acc/opencl_unary_layer_acc.cc][Line 34] create execute unit failed!
E/tnn: Init [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/device/opencl/acc/opencl_clip_layer_acc.cc][Line 26] code: 0xA006 msg: build program falied
E/tnn: InitLayers [File /home/orangepi/others/tnn-v0.3.0-full-source/source/tnn/core/default_network.cc][Line 319] Error Init layer Clip_296 (err: 40966 or 0xA006)
E/tnn: check_status [File /home/orangepi/flowpilot/selfdrive/modeld/tnn/src/tnn_api.cc][Line 24] model init failed 40966

To Reproduce
launch flowpilot

Expected behavior
No errors

Platform Details
Desktop:

  • Ubuntu 22.04
  • using gpu

Additional context
F2 model is working well

@0312birdzhang
Copy link
Contributor Author

@0312birdzhang
Copy link
Contributor Author

Okay, fixed with recently TNN version.

@MankaranSingh
Copy link
Contributor

Great you fixed it!
Shall we update libTNN to newer versions?

@0312birdzhang
Copy link
Contributor Author

It's better to update, some phones use Mali GPU

@0312birdzhang
Copy link
Contributor Author

BTW, i was using tnn-v0.3.0-full-source from Release before, and now using the latest master branch.

@MankaranSingh MankaranSingh self-assigned this Sep 14, 2023
@MankaranSingh MankaranSingh added the enhancement New feature or request label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants