mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01: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:
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**
|
**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
|
```cmd
|
||||||
python setup.py develop
|
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)
|
##### Adjust Build Options (Optional)
|
||||||
|
|
||||||
You can adjust the configuration of cmake variables optionally (without building first), by doing
|
You can adjust the configuration of cmake variables optionally (without building first), by doing
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user