The problem is in
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.