[BYOC]symbol lookup:error /tmp/...../lib.so undefined symbol

Blockquote 2022-07-27T16:00:00Z

Hello, I use BYOC to add XPU to my TVM, link the handwritten network with the dynamic link library generated by tvm, and run the network training, this problem occurs, my configuration is TVM0.8dev.

/home/qwe/anaconda3/envs/torch/bin/python: symbol lookup error: /tmp/tvm-debug-mode-tempdirs/2022-07-24T13-18-44___jp3n0owg/00000/lib.so: undefined symbol: _ZN5baidu3xpu3api3tvm7shapeofEiiPiRKSt6vectorIiSaIiEE

maybe you could read the code about how invocation external api

tvm support using external library like cudnn.

I think it’s helpful for you if you are using baidu xpu.