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

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

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 ?

1 Like

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