I downloaded some codes from GitHub which used Nvidia GPU and I want to use Intel GPU instead. I am using Python 3 (OpenVINO 2021.1) with Jupyter Notebook in DevCloud and got the followwing error messages:
File "/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py", line 196, in _lazy_init _check_driver() File "/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py", line 101, in _check_driver http://www.nvidia.com/Download/index.aspx""") AssertionError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx
Please let me know how to change the codes to use Intel GPU. Thanks.
Changing the usage from CUDA to Intel Graphic requires more process than just changing a few lines of code.
You would need to use the Model Optimizer to convert the model to an Intermediate Representation (IR) before you can use the OpenVINO GPU plugin.
You can read more about the concept here.