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
Add the script for building MegEngine, you can use this script to build the MegEngine for windows.
Steps
Setup the 7-Zip (Install the program to C:/Program Files (x86) or other position. If you install it to other position, please copy the path and change the path in llvm_install.py and cuda_cudnn_install.py. The 7-zip can be downloaded at https://www.7-zip.org/).
Replace scripts/whl/windows/windows_build_whl.shthird_party/install_mkl.sh, and scripts/cmake-build/host-build.sh by the file in this repository.
Install the python by the script (Note: Please make sure the python tool:"3.6.8", "3.7.7", "3.8.3", "3.9.4" and "3.10.1" not installed in your PC.). You may get the error:FullyQualifiedErrorId : UnauthorizedAccess., you can follow this link to deal with it.
.\scripts\whl\windows\python_install.ps1
Install the Visual Studio Build Tool by the script.
./scripts/whl/windows/vs_buildtool_install.sh
Modify the TensorRT root path in build_whl.sh, or you can download the TensorRT 7.2.3.4 and extract it to C:/tools (PS: You can change the TRT_ROOT_DIR defined in build_whl.sh, so you can change the position of the TensorRT).