Closed sun1lach closed 10 months ago
Thank you trying this. We officially do not support igpu. I can support you personally.
Could you give more installation details?
I can't install like this in my notebook:
$ pip install intel-extension-for-tensorflow[gpu]
Sure.
Any specific error or exception you get while trying to install through pip --timeout=1000 install intel-extension-for-tensorflow[gpu]
?
I could install itex with the above command.
In case if the above doesnt work, please also try intel-extension-for-tensorflow[xpu]
Could you show your $ pip list to check intel-extension-for-tensorflow version ?
Here's the version information from pip list
intel-extension-for-tensorflow 2.13.0.1
intel-extension-for-tensorflow-lib 2.13.0.1.1
tensorflow 2.13.0
OneAPI base toolkit packages needs to be installed to target iGPU as an XPU device. https://intel.github.io/intel-extension-for-tensorflow/latest/docs/install/install_for_xpu.html#install-oneapi-base-toolkit-packages
I can install "intel-extension-for-tensorflow 0.0.0.dev1", but not 2.13.0.1. Anyway, the error is "Cast op uses fp64 data type, while fp64 instructions are not supported on the platform. [Op:Cast] name: " Could you set these and try:
$ export OverrideDefaultFP64Setting=1 $ export IGC_EnableDPEmulation=1
Thanks @feng-intel Above 2 flags did the trick. Although custom platform optimisation is slow and takes a while on iGPU/XPU platform, it works.
ITEX release is not compiled with AOT for iGPU. That will make the startup take more time. The running speed won't be impacted.
If you want to speed up the startup, you could build ITEX with AOT for iGPU from source code. Please refer to the source build guide of ITEX.
Thank you @NeoZhangJianyu for the suggestion. I will try this approach.
SW & HW configuration:
Steps to Reproduce:
Run the below tensorflow code
Exception
I was expecting the conversion to supported floating-point (fp16/fp32) precision implicitly but instead it raises this error. Works fine if ITEX is targeted to CPU but fails with XPU.