You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/14 16:55:57 UTC
[GitHub] [tvm] mehrdadh opened a new issue #8049: AOT C Codegen lib0.c tvm__run_func function
mehrdadh opened a new issue #8049:
URL: https://github.com/apache/tvm/issues/8049
Using AOT runtime with C codegen generates two library files: `lib0.c` and `lib1.c`
`lib0.c` includes function declarations for aot runtime. When I use AOT with micro target it generates `tvm__run_func` function signature twice as shown below:
```
...
TVM_DLL int32_t tvm__run_func(TVMValue* args, int* type_code, int num_args, TVMValue* out_value, int* out_type_code);
static TVMBackendPackedCFunc _tvm_func_array[] = {
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast_s_9959535092109263429__1,
(TVMBackendPackedCFunc)fused_reshape_cast_subtract,
(TVMBackendPackedCFunc)fused_nn_contrib_dense_pack_add_fixed_point_multiply_add_clip_cast_cast_subtract_14669711146056581479_,
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast_s_9959535092109263429_,
(TVMBackendPackedCFunc)fused_cast_subtract,
(TVMBackendPackedCFunc)fused_nn_avg_pool2d_cast,
(TVMBackendPackedCFunc)fused_nn_softmax,
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast,
(TVMBackendPackedCFunc)fused_divide_add_round_cast_clip_cast,
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast_s_9959535092109263429__2,
(TVMBackendPackedCFunc)_lookup_linked_param,
(TVMBackendPackedCFunc)tvm__run_func,
};
...
TVM_DLL int32_t tvm__run_func(void* args, void* type_code, int num_args, void* out_value, void* out_type_code, void* resource_handle);
...
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] mehrdadh commented on issue #8049: AOT C Codegen lib0.c tvm__run_func function
Posted by GitBox <gi...@apache.org>.
mehrdadh commented on issue #8049:
URL: https://github.com/apache/tvm/issues/8049#issuecomment-841384121
Here is the target:
tvm.target.target.micro("host", options=["-link-params=1", "--executor=aot"])
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] mehrdadh closed issue #8049: AOT C Codegen lib0.c tvm__run_func function
Posted by GitBox <gi...@apache.org>.
mehrdadh closed issue #8049:
URL: https://github.com/apache/tvm/issues/8049
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] mehrdadh commented on issue #8049: AOT C Codegen lib0.c tvm__run_func function
Posted by GitBox <gi...@apache.org>.
mehrdadh commented on issue #8049:
URL: https://github.com/apache/tvm/issues/8049#issuecomment-841372455
cc @areusch @gromero @Mousius @giuseros
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] mehrdadh commented on issue #8049: AOT C Codegen lib0.c tvm__run_func function
Posted by GitBox <gi...@apache.org>.
mehrdadh commented on issue #8049:
URL: https://github.com/apache/tvm/issues/8049#issuecomment-842674669
This is because the micro target returns `-system-lib=1` by default.
Thanks @Mousius for pointing out!
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org