Can we manually link `cc.create_shared` generated .so file?


#1

Hi TVM community,

I went through the tensor expression tutorial and generated a .so file with cc.create_shared.

I was trying to link it with dlsym and -ldl -Wl --export-dynamic compile flag but failed with segment fault.

Then I found cpp_deploy.cc, should I go with tvm::runtime? Is that the only way to load .so file now?

thanks


#2

The shared lib just contain the kernels for the operations and some TVM init stuff.
TVM runtime is required to call any functions in this lib.

Can you share your objective of linking it manually ?


#3

I found that I could go with the tvm::runtime solution. Thanks!