I am using the latest TVM version 0.5
I’m trying to follow the autotuning tutorial for mobile gpus using Mali GPU on my firefly rk3399 board, but every time I set target=‘opencl -device=mali’,
“TVMError: Not all Vars are passed in api_args: ‘threadIdx.x’ does not appear in api_args” shows up
However when I follows the autituning tutorial for arm it runs fine on my board
I built tvm using opencl and llvm enabeled
If it matters my host machine have linux 16 and gtx 1080 gpu
I’ve been hitting this issue too. It looks to be a problem with using tophub during task discovery, so I’ve currently worked around it by disabling tophub during this step. This suggests there’s probably a bad fallback config somewhere on tophub for Mali.
Thank you very much for the quick replay.
Could you please give me more info about tophub, what is it’s role and how could i disable it?
Will it effect the performance of tuning after disabiling it?
As I understand it, TopHub is collection of pretuned configurations for various devices which you can fall back on if you don’t perform autotuning yourself. Disabling it is a bit of a hack in this case, so I’ve raised an issue here to see if there’s a more permanent fix: tvm/issues/3980