The problem is in
```cpp
  void Init(const std::string& type_key, const std::string& device_type,
            const std::string& platform_name = "");
  virtual void Init() { Init("opencl", "gpu"); } // gpu is the device type
``` 

Inside `Init`, we will only try to match the `gpu` device type, if no, we will 
use opencl cpu.

For your case, I would suggest we create one new DeviceType (although you are 
using OpenCL, but you are an accelerator), you could refer how `AOCL` (Intel 
FPGA which uses OpenCL) to do, your case is almost the same as them.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/tvm-opencl-context-how-to-choose-device-type-as-accelerator/7821/7)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/cd6a368c0d65f2151849406537839eb6726ff1e492b4200d449af9e990fd6881).

Reply via email to