1.安装文档
官方文档,
https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/compile/windows-compile.html
安装模式
2.遇到的问题
```c
D:\Paddle\build>cmake .. -GNinja -DWITH_GPU=OFF -DWITH_UNITY_BUILD=ON
CMake Deprecation Warning at CMakeLists.txt:25 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Found Paddle host system: win32, version:
-- Found Paddle host system's CPU: 16 cores
-- CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe, version: MSVC 19.16.27051.0
-- C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/cl.exe, version: MSVC 19.16.27051.0
-- AR tools:
Build static library of PHI
-- Use static C runtime time, refer to https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features?view=vs-2019
-- Check submodules of paddle, and run 'git submodule update --init --recursive'
Cloning into 'D:/Paddle/third_party/cccl'...
Cloning into 'D:/Paddle/third_party/mkldnn'...
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502
fatal: error reading section header 'shallow-info'
fatal: clone of 'https://github.com/oneapi-src/oneDNN.git' into submodule path 'D:/Paddle/third_party/mkldnn' failed
Failed to clone 'third_party/mkldnn'. Retry scheduled
Cloning into 'D:/Paddle/third_party/mkldnn'...
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502
fatal: error reading section header 'shallow-info'
fatal: clone of 'https://github.com/oneapi-src/oneDNN.git' into submodule path 'D:/Paddle/third_party/mkldnn' failed
Failed to clone 'third_party/mkldnn' a second time, aborting
CMake Error at cmake/third_party.cmake:43 (message):
Failed to get submodule, please check your network !
Call Stack (most recent call first):
CMakeLists.txt:580 (include)
-- Configuring incomplete, errors occurred!
See also "D:/Paddle/build/CMakeFiles/CMakeOutput.log".
See also "D:/Paddle/build/CMakeFiles/CMakeError.log".
D:\Paddle\build>ninja
ninja: error: loading 'build.ninja': 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?
``
3.我用了Watt Toolkit,但是下载还是很慢,又啥方法能快速下载和编译?