You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/en/install/source_windows.md
+66-35Lines changed: 66 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ environment.
13
13
### Install Python and the TensorFlow package dependencies
14
14
15
15
Install a
16
-
[Python 3.8+ 64-bit release for Windows](https://www.python.org/downloads/windows/){:.external}.
16
+
[Python 3.9+ 64-bit release for Windows](https://www.python.org/downloads/windows/){:.external}.
17
17
Select *pip* as an optional feature and add it to your `%PATH%` environmental
18
18
variable.
19
19
@@ -69,6 +69,8 @@ Note: TensorFlow is tested against the *Visual Studio 2019*.
69
69
See the Windows [GPU support](./gpu.md) guide to install the drivers and
70
70
additional software required to run TensorFlow on a GPU.
71
71
72
+
Note: GPU support on native-Windows is only available for 2.10 or earlier versions, starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin
73
+
72
74
### Download the TensorFlow source code
73
75
74
76
Use [Git](https://git-scm.com/){:.external} to clone the
Key Point: If you're having build problems on the latest development branch, try
92
94
a release branch that is known to work.
93
95
96
+
## Optional: Environmental Variable Set Up
97
+
Run following commands before running build command to avoid issue with package creation:
98
+
(If the below commands were set up while installing the packages, please ignore them). Run `set` check if all the paths were set correctly, run `echo %Environmental Variable%` e.g. `echo %BAZEL_VC%` to check path set up for a specific Environmental Variable
99
+
100
+
Python path set up issue [tensorflow:issue#59943](https://github.com/tensorflow/tensorflow/issues/59943),[tensorflow:issue#9436](https://github.com/tensorflow/tensorflow/issues/9436),[tensorflow:issue#60083](https://github.com/tensorflow/tensorflow/issues/60083)
Starting local Bazel server and connecting to it...
118
-
................
119
-
You have bazel 0.15.0 installed.
120
-
Please specify the location of python. [Default is C:\python36\python.exe]:
121
-
141
+
You have bazel 5.3.0 installed.
142
+
Please specify the location of python. [Default is C:\Python310\python.exe]:
122
143
Found possible Python library paths:
123
-
C:\python36\lib\site-packages
124
-
Please input the desired Python library path to use. Default is [C:\python36\lib\site-packages]
125
-
126
-
Do you wish to build TensorFlow with CUDA support? [y/N]: <b>Y</b>
127
-
CUDA support will be enabled for TensorFlow.
128
-
129
-
Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]:
130
-
131
-
Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0]:
144
+
C:\Python310\lib\site-packages
145
+
Please input the desired Python library path to use. Default is [C:\Python310\lib\site-packages]
132
146
133
-
Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: <b>7.0</b>
147
+
Do you wish to build TensorFlow with ROCm support? [y/N]:
148
+
No ROCm support will be enabled for TensorFlow.
134
149
135
-
Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0]: <b>C:\tools\cuda</b>
136
150
137
-
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
138
-
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
139
-
Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: <b>3.7</b>
151
+
WARNING: Cannot build with CUDA support on Windows.
152
+
Starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2.
140
153
141
154
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]:
142
155
156
+
143
157
Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:
144
158
Eigen strong inline overridden.
145
159
146
-
Configuration finished
147
-
</pre>
148
-
</section>
149
-
150
-
### Configuration options
160
+
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
161
+
Not configuring the WORKSPACE for Android builds.
151
162
152
-
For [GPU support](./gpu.md), specify the versions of CUDA and cuDNN. If your
153
-
system has multiple versions of CUDA or cuDNN installed, explicitly set the
154
-
version instead of relying on the default. `./configure.py` creates symbolic
155
-
links to your system's CUDA libraries—so if you update your CUDA library paths,
156
-
this configuration step must be run again before building.
163
+
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
164
+
--config=mkl # Build with MKL support.
165
+
--config=mkl_aarch64 # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
166
+
--config=monolithic # Config for mostly static monolithic build.
167
+
--config=numa # Build with NUMA support.
168
+
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.
169
+
--config=v1 # Build with TensorFlow 1 API instead of TF 2 API.
170
+
Preconfigured Bazel build configs to DISABLE default on features:
171
+
--config=nogcp # Disable GCP support.
172
+
--config=nonccl # Disable NVIDIA NCCL support.
157
173
158
-
Warning: TF-TRT Windows support is provided experimentally. No guarantee is made
159
-
regarding functionality or engineering support. Use at your own risk.
Note: GPU support on native-Windows is only available for 2.10 or earlier versions, starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin
204
+
187
205
To make the TensorFlow package builder with GPU support:
Note: Starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin
304
+
275
305
<aname="tested_build_configurations"></a>
276
306
## Tested build configurations
277
307
@@ -311,6 +341,7 @@ For GPU support, add the CUDA and cuDNN bin directories to your `$PATH`:
311
341
</table>
312
342
313
343
### GPU
344
+
Note: GPU support on native-Windows is only available for 2.10 or earlier versions, starting in TF 2.11, CUDA build is not supported for Windows. For using TensorFlow GPU on Windows, you will need to build/install TensorFlow in WSL2 or use tensorflow-cpu with TensorFlow-DirectML-Plugin
0 commit comments