mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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 <xu.han@outlook.com> Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
This commit is contained in:
committed by
PyTorch MergeBot
parent
f104ef1248
commit
ea5d40db73
14
README.md
14
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
|
||||
|
Reference in New Issue
Block a user