From ea5d40db73ce7124e78967adbb5ac3a8f9d65cba Mon Sep 17 00:00:00 2001 From: Zaili Wang <109502517+ZailiWang@users.noreply.github.com> Date: Thu, 27 Feb 2025 01:07:40 +0000 Subject: [PATCH] Address source code building command for Intel GPU support (#143476) As the title Pull Request resolved: https://github.com/pytorch/pytorch/pull/143476 Approved by: https://github.com/EikanWang, https://github.com/malfet Co-authored-by: Xu Han Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com> --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9d9d8bcd622..4315e3207264 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ If you want to build legacy python code, please refer to [Building on legacy cod **CPU-only builds** -In this mode PyTorch computations will run on your CPU, not your GPU +In this mode PyTorch computations will run on your CPU, not your GPU. ```cmd python setup.py develop @@ -353,6 +353,18 @@ python setup.py develop ``` +**Intel GPU builds** + +In this mode PyTorch with Intel GPU support will be built. + +Please make sure [the common prerequisites](#prerequisites) as well as [the prerequisites for Intel GPU](#intel-gpu-support) are properly installed and the environment variables are configured prior to starting the build. For build tool support, `Visual Studio 2022` is required. + +Then PyTorch can be built with the command: + +```cmd +python setup.py develop +``` + ##### Adjust Build Options (Optional) You can adjust the configuration of cmake variables optionally (without building first), by doing