I tried gpu_selector DeviceSelector; and I have this error
But if I select the CPU, it's working, if I select the default selector, it chooses the CPU and not the GPU.
If I build the program in exe format, the GPU selector is working and the default selector is choosing the GPU.
Assuming that your working environment has an integrated GPU card, it probably could be a driver related issue since the integrated GPU is not getting detected. I'd suggest you upgrade your integrated GPU drivers to the latest version and let me know if it helps.
I'd request you to give it a try with the latest oneAPI stable release and let me know if you notice the same issue.
Meanwhile, I will also check with the stable release and get back to you with my findings.
I have also observed a similar issue using gpu_selector(in DLL) with the latest oneAPI base toolkit version.
I have escalated this issue to the concerned team. Thanks for reporting this.
What driver version do you use? To check version, please navigate Start menu -> Device Manager -> Display Adapters -> Intel (R) HD Graphics 630 (right click) -> Properties -> Driver -> Driver version.