You need to use tvm.cl(0) for opencl target. Or better: tvm.context(target, 0)
tvm.cl(0)
tvm.context(target, 0)