[Apache TVM Discuss] [Questions] Generate native C code from TVM IR

2021-12-30 Thread Andrew Reusch via Apache TVM Discuss
There are a couple of different targets that output something so similar to C (e.g. CUDA, OpenCL) that some some of the functionality was extracted into a common superclass, `CodeGenC`. When you specify `target="c"`, it uses `CodeGenCHost` in `codegen_c_host.cc`. You might look at that for mor

[Apache TVM Discuss] [Questions] Generate native C code from TVM IR

2021-12-28 Thread mh via Apache TVM Discuss
try target="c". dont know if the code generated would work though --- [Visit Topic](https://discuss.tvm.apache.org/t/generate-native-c-code-from-tvm-ir/11792/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https

[Apache TVM Discuss] [Questions] Generate native C code from TVM IR

2021-12-27 Thread masahi via Apache TVM Discuss
I think "native C-code generation" is used for more niche use cases like micro-TVM / embedded, but yes, we don't typically emit native C code for convolution kernels etc. --- [Visit Topic](https://discuss.tvm.apache.org/t/generate-native-c-code-from-tvm-ir/11792/2) to respond. You are r

[Apache TVM Discuss] [Questions] Generate native C code from TVM IR

2021-12-26 Thread yimmmin via Apache TVM Discuss
Hi All, When I approach the class `CodeGenC` in `src/target/source/codegen_c.h` I notice it could not generate native C code as it is noted. > CodeGenC does not aim at generating C codes consumed by MSVC or GCC, Rather, > it's providing infrastructural abstraction for C variants like CUDA and