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, should I go with tvm::runtime? Is that the only way to load .so file now?



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 ?


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