refer to:
1. https://github.com/intel/intel-extension-for-pytorch
2. https://pytorch.org/tutorials/recipes/recipes/intel_extension_for_pytorch.html
3. https://blog.csdn.net/m0_63007797/article/details/136606591
################## install step ##################
1. install xpu driver for arc
https://dgpu-docs.intel.com/driver/client/overview.html
if you buy Flex Series or Max Series try this
https://dgpu-docs.intel.com/driver/installation.html
2. oneapi toolkit
https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html
3. environment vars
https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2023-0/use-the-setvars-script-with-linux-or-macos.html
source /opt/intel/oneapi/setvars.sh
4. pip3 install package
https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu
click [GPU]
click [v2.1.40+xpu]
click [Linux/WSL2]
~get command
python -m pip install torch==2.1.0.post3 torchvision==0.16.0.post3 torchaudio==2.1.0.post3 intel-extension-for-pytorch==2.1.40+xpu oneccl_bind_pt==2.1.400+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
python -m pip install numpy==1.26.4
沒有留言:
張貼留言