Cannot find OpenCL device_api in registry

Hello,

I have run RPC server with OpenCL support on android phone. (I have cloned official OpenCL header, and downloaded libOpenCL.so from target device). When I run tune command:

TVM_LIBRARY_PATH=/tvm/build-llvm12 python3 \
    -m tvm.driver.tvmc tune \
    --number 10 \
    --repeat 10 \
    --rpc-key austin \
    --rpc-tracker 0.0.0.0:9191 \
    --output output_plex.log \
    --target "opencl" \
    --timeout 60 \
    --trials 47 \
    resnet50-v2-7.onnx

I’m getting following error:

  Check failed: (func != nullptr) is false: Cannot find OpenCL device_api in registry

How can I debug it?

Same error. Do you know how to solve it now?

Hi, I think I haven’t solved the problem. But recently I came back to TVM. And I think this problem may be connected with wrongly compiled tvm_runtime.so, which I uploaded to device.