Install pytorch 2.5 using intel GPU (XPU)

I got error bellow errors when I was run command:
the commands:

export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
python setup.py develop

the error:

CMake Error at third_party/kineto/libkineto/src/plugin/xpupti/CMakeLists.txt:23 (find_package):
  By not providing "FindPti.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Pti", but
  CMake did not find one.

  Could not find a package configuration file provided by "Pti" with any of
  the following names:

    PtiConfig.cmake
    pti-config.cmake

  Add the installation prefix of "Pti" to CMAKE_PREFIX_PATH or set "Pti_DIR"
  to a directory containing one of the above files.  If "Pti" provides a
  separate development package or SDK, be sure it has been installed.

I have installed “Pti” in WSL2. the path is on “/opt/intel/oneapi/pti/…”

link for the installation tutorial:

Hi,

Could you try

source /opt/intel/oneapi/pti/latest/env/vars.sh

before python setup.py develop?

Here is a detailed instruction for building pytorch with intel xpu.