Processors
Intel® Processors, Tools, and Utilities
14399 Discussions

How to change from Nvidia GPU to Intel GPU

advanchip
Novice
1,272 Views

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.

Labels (1)
0 Kudos
2 Replies
Rizal_Intel
Moderator
1,238 Views

Hi Alice,

 

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.

 

Regards,

Rizal


0 Kudos
Rizal_Intel
Moderator
1,189 Views

Hi Alice,


Thank you for your question. If you need any additional information from Intel, please submit a new question as Intel is no longer monitoring this thread.


Regards,

Rizal


0 Kudos
Reply