First, you can check the devices that is available for inference.
import openvino as ov
core = ov.Core()
core.available_devices
Note that GPU devices are numbered starting at 0, where the integrated GPU always takes the id 0 if the system has one. For instance, if the system has a CPU, an integrated and discrete GPU, we should expect to see a list like this: ['CPU', 'GPU.0', 'GPU.1'].
If the GPU doesn't appear on the list, we would need to follow the steps below to configure your GPU drivers to work with OpenVINO.
The steps you can refer to this links in order to get the latest update.
https://docs.openvino.ai/2024/get-started/configurations/configurations-intel-gpu.html