This is the Intel's guide:
https://intel.github.io/intel-extension-for-pytorch/xpu/latest/tutorials/installations/linux.html#install-via-compiling-from-source
This is another guide:
https://github.com/intel/intel-extension-for-pytorch/issues/390#issuecomment-1642897738