Dear contributors,
I’d like to generate C code from tvm and found a related issue:
https://github.com/dmlc/tvm/issues/141
Follow me, the tvm::codegen::CodeGenC function may provide the C source code from TVM program but it is not currently enabled .
My question is that there are any ways to enable this feature or another method to generate C code from TVM program?
Regards
masahi
2
no, it is not possible. tvm::codegen::CodeGenC is only meant to be used internally by other C-like code generators such as cuda and opencl.
2 Likes
Thanks you for your response,
Is there another way to generate C code from TVM program or work-around, follow you?
tqchen
5
1 Like
Any update on this topic?
This might actually be an interesting use case if one wants to use TVM as a source-to-source compiler.
algoton
8
Is there example to generate C code from host?
tico
9
I have the same question.
I would like to generate the code C out of a given input model. Is there any example available? I have not been able to find it.
Thanks
haruhi
10
Hello, did you solve this question? I’m also confused with this problem.
Shreya
11
hey did you find out a way how to do this
Thanks